GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Problem with Tomcat installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with Tomcat installation" Watch "Problem with Tomcat installation" New topic
Author

Problem with Tomcat installation

mo sayed
Ranch Hand

Joined: Jan 25, 2006
Posts: 88
Hi,

I recently downloaded tomcat-5.5.20 (standalone version) on to my
machine running Windows XP (Pro) with JDK1.5.
Both CATALINA_HOME AND JAVA_HOME have been specified correctly.

Unfortunately I simply cannot get it to run.
Executing it from the command line
generates the following (incomplete stack trace),


I've changed the port number in server.xml and even tried it with the
firewall (Zone alarm) switched off (obviously whilst disconnected from network).

I'd appreciate any suggestions that can help to resolve this issue.

kind regards,
Mo


<a href="http://moongrails.blogspot.com/" rel="nofollow">grails</a>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
C:\tomcat" -Dcatalina.home=C:\tomcat"\l


Exactly what are you typing on the command line? Are you typing those quotes?

Personally I always start Tomcat via the startup.bat

Bill
mo sayed
Ranch Hand

Joined: Jan 25, 2006
Posts: 88
Bill,

Initially I used startup.bat but the console window closed before I
could even see the stack trace. The logs folder does not contain any
files for inspection. Subseqeuently I switched to invoking tomcat
with the following command,

catalina run

This enabled me to run tomcat within the same window and examine the
stack trace, part of which I included within the original post.

I have run this version of tomcat before, albeit on a different machine (similar spec). I'm puzzled as to why I'm having problems. Installation's never been an issue before.
regards,
Mo
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
You can change the last executable line in startup.bat to say:

call "%EXECUTABLE%" run %CMD_LINE_ARGS%
instead of
call "%EXECUTABLE%" start %CMD_LINE_ARGS%

This will let startup.bat do its thing with the environment variables AND leave the window open so you can see why tomcat dies.

That FileNotFoundException message points to a messed up environment variable somehow. You can modify catalina.bat to echo the environment variables before it tries to start Tomcat.
Bill
[ February 10, 2007: Message edited by: William Brogden ]
mo sayed
Ranch Hand

Joined: Jan 25, 2006
Posts: 88
Bill,

Thanks for taking the time to answer my query.

It turned out to be a simple problem. Actually I feel rather
sheepish (baa baa baa).

When I checked the path, I noticed that my system variable for TOMCAT
had a / at the end. Therefore the actual path was tomcat//bin. Eeeks.

Such a silly error. I feel so silly that I'm wearing a paper bag over
my head with holes cut out for my eyes and mouth.

Don't worry I'm using recyclable paper.

Thanks once again,

regards,

Mo
 
GeeCON Prague 2014
 
subject: Problem with Tomcat installation