Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to start Tomcat

 
Shikha Dhawan
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mary Chellapa
Ranch Hand
Posts: 93
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Shikha Dhawan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic