java Tomcat 8.0 64 位服务器未启动并从 Catalina.bat 获取错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26143894/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tomcat 8.0 64-bit server not starting and getting error from Catalina.bat
提问by Dev Null Fin
I am unable to start Tomcat 8.0 64-bit server. I have catalina.bat run also. I am getting the below message.
我无法启动 Tomcat 8.0 64 位服务器。我也有 catalina.bat 运行。我收到以下消息。
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?
您能否提一些建议?
回答by JSS
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\
"
Windows 8 上的 Tomcat 8 和 Java 8 也有类似的问题,在玩了一会儿之后,我注意到它CATALINA_HOME
被设置为“ 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!!!
我只是将其更改为CATA_HOME=c:\mydir\tomcat.8.0
" 并解决了所有问题。我从没想过以反斜杠结尾会导致问题,但您在那里...确实如此!!!
回答by Conor Pender
I managed to solve this problem by deleting the server and creating a new one. Much simpler than trying to diagnose what went wrong.
我设法通过删除服务器并创建一个新服务器来解决这个问题。比试图诊断出了什么问题要简单得多。
回答by Piotr Kepka
Check if you didn't miss any quotation mark(s) around commas in catalina.properties. In my case it was: ...,"${catalina.home}/lib/*.jar,${catalina.base}/../lib/*.jar"
instead of ...,"${catalina.home}/lib/*.jar
",
"${catalina.base}/../lib/*.jar"
.
检查 catalina.properties 中的逗号周围是否没有遗漏任何引号。就我而言,它是:...,"${catalina.home}/lib/*.jar,${catalina.base}/../lib/*.jar"
而不是...,"${catalina.home}/lib/*.jar
" ,
"${catalina.base}/../lib/*.jar"
。
回答by ihm017
Faced similar issue. Modified my CATALINA_HOME path as below: Previous: CATALINA_HOME=D:\Personal\Projects\Apache\apache-tomcat-7.0.37-windows-x64\apache-tomcat-7.0.37\
面临类似的问题。修改我的 CATALINA_HOME 路径如下: 上一个:CATALINA_HOME=D:\Personal\Projects\Apache\apache-tomcat-7.0.37-windows-x64\apache-tomcat-7.0.37\
Changed to: CATALINA_HOME=D:\Personal\Projects\Apache\apache-tomcat-7.0.37-windows-x64\apache-tomcat-7.0.37
改为:CATALINA_HOME=D:\Personal\Projects\Apache\apache-tomcat-7.0.37-windows-x64\apache-tomcat-7.0.37
VOILA! It worked.
瞧!有效。
回答by user1268890
Today I have faced the same issue. I have defined my sources files in catalina.properties near server.loader=C:\aaconfigs\appconfigs,C:\aaconfigs\appParams.
this caused the issue. When i changed it to following server.loader=C:/aaconfigs/appconfigs,C:/aaconfigs/appParams.
error got resolved.
今天我遇到了同样的问题。我已经在 catalina.properties 中定义了我的源文件,server.loader=C:\aaconfigs\appconfigs,C:\aaconfigs\appParams.
这导致了这个问题。当我将其更改为以下server.loader=C:/aaconfigs/appconfigs,C:/aaconfigs/appParams.
错误时得到解决。
I hope this will be helpful.
我希望这会有所帮助。
回答by viveksinghggits
I had the exact same issue and just deleted the server from my workspace and added a new one, didnt get the error again. Its working fine for now.
我遇到了完全相同的问题,只是从我的工作区中删除了服务器并添加了一个新服务器,但没有再次出现错误。它现在工作正常。