Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Tomcat installation

 
mo sayed
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic