Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Not able to start Tomcat

 
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Shikha,

this may help
http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html
 
Author and all-around good cowpoke
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic