Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat 8.0 64-bit server not starting and getting error from Catalina.bat

Tags:

java

tomcat

I am unable to start Tomcat 8.0 64-bit server. I have catalina.bat run also. I am getting the below message.

01-Oct-2014 10:22:11.415 SEVERE [main] org.apache.catalina.startup.Bootstrap.ini
tClassLoaders Class loader creation threw exception
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:428)
    at java.io.File.getCanonicalPath(File.java:618)
    at java.io.File.getCanonicalFile(File.java:643)
    at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:165)
    at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:201)
    at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:146)
    at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:256)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

Could you please advise?

like image 412
Dev Null Fin Avatar asked Oct 01 '14 14:10

Dev Null Fin


People also ask

How to fix the error “starting of Tomcat failed”?

Solución al error "Starting of Tomcat failed" (Inicio de Tomcat fallido) en NetBeans. rem Change catalina.bat file in tomcat bin directory. rem Find the bellow configuration in your catalina.bat file. rem Now save and start your tomcat from NetBeans.

How to start Tomcat from NetBeans using Catalina?

rem Change catalina.bat file in tomcat bin directory. rem Find the bellow configuration in your catalina.bat file. rem Now save and start your tomcat from NetBeans.

How to start Tomcat from terminal?

In Run/Debug Configurations -> Startup/Connection, Startup script and Shutdown script are set to valid paths: When run from terminal, Tomcat starts correctly. I have replaced catalina.bat with some mock script (just echo sth) as Startup script in run configuration, got the same error.

What is error code 1 in Apache Tomcat?

Error code 1 Windows could not start the Apache Tomcat 8 on Local Computer. Error code 1 Unable to start Tomcat service for JasperSoft and receive the following popup error message: When checking Apache Tomcat logs (Apache Software Foundation\Tomcat 8.0\logs), the following error is seen:


1 Answers

Had a similar issue with Tomcat 8 and Java 8 on Windows 8, and after little bit of playing around, I noticed that CATALINA_HOME was set as "CATA_HOME=c:\mydir\tomcat.8.0\"

I just changed it to CATA_HOME=c:\mydir\tomcat.8.0" and it fixed all the issues. I never thought ending back slash would cause the issue but there you are...it did!!!

like image 182
JSS Avatar answered Oct 21 '22 10:10

JSS