java build-impl.xml:1045: 部署错误:Tomcat 启动失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38150564/
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
build-impl.xml:1045: Deployment error: Starting of Tomcat failed
提问by Ahmed Magdy Ibrahim
I just installed apache tomcat 8 and this error appears with I try to start the server:
我刚刚安装了 apache tomcat 8,当我尝试启动服务器时出现此错误:
C:\Users\Ahmed\Documents\NetBeansProjects\TestWeb\nbproject\build-impl.xml:1045: Deployment error: Starting of Tomcat failed.
See the server log for details.
and the log file is empty.
并且日志文件是空的。
Here is the line 1045 in build-impl.xml that has the error:
这是 build-impl.xml 中出现错误的第 1045 行:
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
回答by Ahmed Magdy Ibrahim
I found the solution and I am sharing it so it can be useful for someone else:
我找到了解决方案,我正在分享它,以便对其他人有用:
If you were searching for a solution you probably found a solution saying to go toC:\apache-tomcat-8.0.36-windows-x64\apache-tomcat-8.0.36\bin
then open catalina.bat
on Notepad++ and search for set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
and set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"
and remove the double quotes.
如果你正在寻找一个解决方案,您可能找到了解决办法说去C:\apache-tomcat-8.0.36-windows-x64\apache-tomcat-8.0.36\bin
,然后打开catalina.bat
在记事本++和搜索set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"
和set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"
并去除双引号。
but for some of people this might not be enough you might also need to search for set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
and remove the double quotes from here two and the server will run probably.
但对于某些人来说,这可能还不够,您可能还需要搜索 set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS%"
并删除此处两个的双引号,服务器可能会运行。
回答by gustavospace
You need to change the owner of the Tomcat directory. On Linux or BSD do this:
您需要更改 Tomcat 目录的所有者。在 Linux 或 BSD 上执行以下操作:
chown -R username /usr/local/apache-tomcat-8.0/
Make sure to use the path to your Tomcat directory
确保使用 Tomcat 目录的路径