Java – Tomcat6 won’t start on Windows and Java6

javatomcatwindows

I just downloaded a fresh copy of Tomcat6 to install on a development server. The server is running Win2k3 SP2 and Java6.

When I go to start Tomcat6 it reports the following:

D:\>d:\tomcat\bin\tomcat6.exe //TS/Tomcat6
[2009-07-14 15:26:38] [427  prunsrv.c] [error] The operation completed successfully.
[2009-07-14 15:26:38] [1336 prunsrv.c] [error] Load configuration failed

It seems like Tomcat is having config issues, but I'm not sure where to start looking. It's a bit surprising that Tomcat had this problem right out of the box. Is there any compatability problem between Java6 and Tomcat6? Why might the default config be failing?

Best Answer

Just curious if your CATALINA_HOME and JAVA_HOME set? Those environment variables are prerequisite to run Tomcat. Go to Start-->My Computer (right click on it) -->Properties-->Advanced-->Environment Variables (button) and then set CATALINA_HOME to the path of your Tomcat and JAVA_HOME to the location of your JDK, also add JAVA_HOME\bin to your PATH variable.