You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Erwin Raets @ Realsoftware" <er...@realsoftware.be> on 2000/05/16 16:06:58 UTC

Problems starting tomcat

I still have the persisting problem that I cannot start Tomcat on my win98, I have set the JAVA_HOME and TOMCAT_HOME in my autoexec.bat, together with path=%path%;d:\tomcat\jakarta-tomcat\bin.
My tomcat is in d:\tomcat\jakarta-tomcat and my jdk1.2 is in d:\jdk.
When I do a tomcat startup it gives me 5 times out of environment space, starting tomcat in a new window and Using classpth:"d:\tomcat\jakarta-tomcat"\classes
A window pops up C\WINDOWS\JAVA containing 2 subdirectories, Classes and Packages.
When I then do a shutdown, it sais the 5 out of environment thing again and then bad command or file name. The browser, when asking localhost:8080 gives the page cannot be found error.

Can someone please help?
Thanks
Erwin


Re: Problems starting tomcat

Posted by Arion <ar...@talentinfo.com.hk>.
Hi!

The black magic is something like set STACK=1024 (I don't remember it well).

with the startup shell, tomcat would try to set a new classpath before startup, and
the command would make Windows95/98 gives "Environment Out of Space".

Anyway, if you are know Java, you should be able to set the classpath yourself and
run the server using java.

Arion

Sean McCauliff wrote:

> "Erwin Raets @ Realsoftware" wrote:
> >
> > I still have the persisting problem that I cannot start Tomcat on my
> > win98, I have set the JAVA_HOME and TOMCAT_HOME in my autoexec.bat,
> > together with path=%path%;d:\tomcat\jakarta-tomcat\bin.
>         Is it really necessary for you to use Windows 98??  This is a really
> bad OS for  Web servers.
>         That being said... There is some magic which can increase the amount of
> environment space dedicated to COMMAND.COM.  I don't remember what this
> is or even if it will work with Win9x  it did work with DOS.  You might
> try some old DOS manual, MS web site, etc. Or
> d:\tomcat\jakarta-tomcat\bin directly add it to the line which contains
> your PATH like
> set PATH=c:\blah;d:\tomcat\jakarta-tomcat\bin
> NOT
> set PATH=c:\blah
> set PATH=%PATH%;d:\tomcat\jakarta-tomcat\bin
>
> > My tomcat is in d:\tomcat\jakarta-tomcat and my jdk1.2 is in d:\jdk.
> > When I do a tomcat startup it gives me 5 times out of environment
> > space, starting tomcat in a new window and Using
> > classpth:"d:\tomcat\jakarta-tomcat"\classes
>         Try putting the CLASSPATH in the autoexec.bat and just run tomcat with
> the command line:
>
> java -Dtomcat.home=d:\tomcat\jakarta-tomcat
> org.apache.tomcat.startup.Tomcat
>
>         Finally, I wouldn't be surprised if Win98 does not correctly handle
> "long file names" in .bat files.  You might need to change things like
> d:\tomcat\jakarta-tomcat to the 8.3 version.
>         Note that I have not actually tried any of this on Win98 it just what I
> would try if I was in your position.
>
> Good luck.
>
> -Sean
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org


Re: Problems starting tomcat

Posted by Sean McCauliff <se...@narus.com>.
"Erwin Raets @ Realsoftware" wrote:
> 
> I still have the persisting problem that I cannot start Tomcat on my
> win98, I have set the JAVA_HOME and TOMCAT_HOME in my autoexec.bat,
> together with path=%path%;d:\tomcat\jakarta-tomcat\bin.
	Is it really necessary for you to use Windows 98??  This is a really
bad OS for  Web servers.
	That being said... There is some magic which can increase the amount of
environment space dedicated to COMMAND.COM.  I don't remember what this
is or even if it will work with Win9x  it did work with DOS.  You might
try some old DOS manual, MS web site, etc. Or 
d:\tomcat\jakarta-tomcat\bin directly add it to the line which contains
your PATH like
set PATH=c:\blah;d:\tomcat\jakarta-tomcat\bin
NOT
set PATH=c:\blah
set PATH=%PATH%;d:\tomcat\jakarta-tomcat\bin

> My tomcat is in d:\tomcat\jakarta-tomcat and my jdk1.2 is in d:\jdk.
> When I do a tomcat startup it gives me 5 times out of environment
> space, starting tomcat in a new window and Using
> classpth:"d:\tomcat\jakarta-tomcat"\classes
	Try putting the CLASSPATH in the autoexec.bat and just run tomcat with
the command line:

java -Dtomcat.home=d:\tomcat\jakarta-tomcat
org.apache.tomcat.startup.Tomcat 

	Finally, I wouldn't be surprised if Win98 does not correctly handle
"long file names" in .bat files.  You might need to change things like
d:\tomcat\jakarta-tomcat to the 8.3 version.
	Note that I have not actually tried any of this on Win98 it just what I
would try if I was in your position.

Good luck.

-Sean

Re: Problems starting tomcat

Posted by Christian Wenz <ch...@stud.tu-muenchen.de>.
Hi,

I had a similar problem once, try (after making environment space larger)
using "tomcat.bat run" instead of "tomcat.bat start", and start the batch
file from the command prompt and watch out for messages

Regards
Christian

> > "Erwin Raets @ Realsoftware" wrote:
> >
> > I still have the persisting problem that I cannot start Tomcat on my
> > win98, I have set the JAVA_HOME and TOMCAT_HOME in my autoexec.bat,
> > together with path=%path%;d:\tomcat\jakarta-tomcat\bin.
> > My tomcat is in d:\tomcat\jakarta-tomcat and my jdk1.2 is in d:\jdk.
> > When I do a tomcat startup it gives me 5 times out of environment
> > space, starting tomcat in a new window and Using
> > classpth:"d:\tomcat\jakarta-tomcat"\classes
> > A window pops up C\WINDOWS\JAVA containing 2 subdirectories, Classes
> > and Packages.



Re: Problems starting tomcat

Posted by Slawomir Tomaszek <sl...@debis.pl>.
> "Erwin Raets @ Realsoftware" wrote:
> 
> I still have the persisting problem that I cannot start Tomcat on my
> win98, I have set the JAVA_HOME and TOMCAT_HOME in my autoexec.bat,
> together with path=%path%;d:\tomcat\jakarta-tomcat\bin.
> My tomcat is in d:\tomcat\jakarta-tomcat and my jdk1.2 is in d:\jdk.
> When I do a tomcat startup it gives me 5 times out of environment
> space, starting tomcat in a new window and Using
> classpth:"d:\tomcat\jakarta-tomcat"\classes
> A window pops up C\WINDOWS\JAVA containing 2 subdirectories, Classes
> and Packages.
> When I then do a shutdown, it sais the 5 out of environment thing
> again and then bad command or file name. The browser, when asking
> localhost:8080 gives the page cannot be found error.

Look at your autoexec.bat, and config.sys
In Win 9x there is not so much space for enviroment. Maybe you have some
enviroment variables, that are you dont need. Remove them. Or give more
space for enviroment. Put line

SHELL=c:\PathToCommnadCom\command.com /e:size 

in your starting files (now I don't remember in with congig.sys, or
autoexec.bat). Size is space for enviroment in bytes. 2048 should be
enought. 

-- 
Slawomir Tomaszek