This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem in starting tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem in starting tomcat" Watch "Problem in starting tomcat" New topic
Author

Problem in starting tomcat

Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
I am facing the following error when i write: 'tomcat run' at console.

Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Using classpath: D:\tomcat\classes;D:\tomcat\lib\webserver.jar;D:\tomcat\lib\xml.jar
Exception in Thread "main" java.lang.NoClassDefFound Error:
javax/servlet/ServletRequest
at org.apache.tomcat.startup.tomcat.execute(Tomcat.java:136)
at org.apache.tomcat.startup.tomcat.main(Tomcat.java:163)

I am running Win98 amd enen if i have set my enviornment space of DOS i am having this 'out of environment space' error. Also i have set the .bat setting of tomcat mean tomcat path and java home setting.
I think the other error is created by ServletRequest file.
Please help if you can sort out the problem.
Thanks in advance
Rashid Ali
rom chatterjee
Ranch Hand

Joined: Dec 11, 2001
Posts: 46
This is in the downloadable documentation on the Apache site. Briefly right click on the startup.bat and select properties. Select the memory tab and change the initial environment to something big like 4096 and click OK. Do the same for the shutdown.bat.
You will notice that there will be startup and shutdown DOS shortcuts in your directory. Use these to start/stop Tomcat.
Hope this helps


Rom Chatterjee<BR>Sun Certified Java Programmer
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
I am sorry but after doing so as per your instruction means setting the invironment variables, i could not be able to run the tomcat.
Please sort out the problem and help.
Rashid Ali
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Thanks I solved the tricky problem...
Actually I was setting my environment setting from my desktop shortcut of MS-DOS. I also set the setting of .bat files in tomcat/bin directory.
But when after changing this environment setting i used to start my MS DOS from start > programs > MS-DOS menu not from the desktop shortcut.
When I did change my environment setting from Program menu then i could be able to run my tomcat.
Just for your info.
Rashid Ali
 
GeeCON Prague 2014
 
subject: Problem in starting tomcat