IntelliJ Java IDE
The moose likes Tomcat and the fly likes Not able to start Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Not able to start Tomcat" Watch "Not able to start Tomcat" New topic
Author

Not able to start Tomcat

Shikha Dhawan
Greenhorn

Joined: Jun 07, 2011
Posts: 10
Hi,


I'm using Windows 7 64 bit machine & having Java 1.6.

I am not able to start tomcat. I just downloaded the tomcat, unzipped the file & set the environment variables.

When I run startup.bat from command prompt, it shows the following on my command prompt:


C:\apache-tomcat-7.0.23\bin>startup.bat
Using CATALINA_BASE: "C:\apache-tomcat-7.0.23\"
Using CATALINA_HOME: "C:\apache-tomcat-7.0.23\"
Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.23\\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_25\"
Using CLASSPATH: "C:\apache-tomcat-7.0.23\\bin\bootstrap.jar;C:\apache-tom
cat-7.0.23\\bin\tomcat-juli.jar"

The Tomcat window opens for a few milliseconds n get closed. No information is being logged.

Please guide me. I am not able to figure out whats missing. Let me know if any other information is required.

Best Regards,
Shikha
Mary Chellapa
Ranch Hand

Joined: Jul 26, 2011
Posts: 93
Hi Shikha,

this may help
http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html


Mary
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
The information you need is in the window that opened and then closed when an error was thrown.

Change the last executable line of startup bat to use "run" instead of "start" - this will execute the catalina.bat in the same window so you can see the error.

Bill

Java Resources at www.wbrogden.com
Shikha Dhawan
Greenhorn

Joined: Jun 07, 2011
Posts: 10
William Brogden wrote:The information you need is in the window that opened and then closed when an error was thrown.

Change the last executable line of startup bat to use "run" instead of "start" - this will execute the catalina.bat in the same window so you can see the error.

Bill


Hi Bill,

Thanks

I changed the exectable's last statement.

Got the following information:
java.util.logging.ErrorManager: 4: Unable to create [C:\apache-tomcat-7.0.23" -D
catalina.home=C:\apache-tomcat-7.0.23"\logs]
java.util.logging.ErrorManager: 4: Unable to create [C:\apache-tomcat-7.0.23" -D
catalina.home=C:\apache-tomcat-7.0.23"\logs]
java.util.logging.ErrorManager: 4: Unable to create [C:\apache-tomcat-7.0.23" -D
catalina.home=C:\apache-tomcat-7.0.23"\logs]
java.util.logging.ErrorManager: 4: Unable to create [C:\apache-tomcat-7.0.23" -D
catalina.home=C:\apache-tomcat-7.0.23"\logs]
Jan 21, 2012 11:09:59 AM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
at java.io.File.getCanonicalPath(File.java:559)
at java.io.File.getCanonicalFile(File.java:583)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
sLoaderFactory.java:171)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav
a:150)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:91)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:227)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

Issue was CATALINA_HOME was set to C:\apache-tomcat-7.0.23\bin & not to C:\apache-tomcat-7.0.23.

Thanks.

//Shikha
 
 
subject: Not able to start Tomcat
 
Threads others viewed
Setting Tomcat in Ubuntu 11.10
problem starting Tomcat.....pleae Advise
Need Help starting Tomcat
Start and Stop tomcat from Java Program
Eclipse of jee developer>> tomcat installation
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture