java NetBeans/Tomcat部署问题
当我尝试在NetBeans 6.9中运行我的项目时,出现以下错误:
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
Incrementally deploying localhost:8084/hastaneBilgiSistemi
Completed incremental distribution of localhost:8084/hastaneBilgiSistemi
Incrementally redeploying localhost:8084/hastaneBilgiSistemi
Deploy is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2FyakUP%2FAppData%2FLocal%2FTemp% 2Fcontext1397063015253659398.xml&path=/hastaneBilgiSistemi
Connection refused: connectC:\Users\yakUP\Documents\NetBeansProjects\hastaneBilgiSistemi\nbproject\build-impl.xml:688: The module has not been deployed. BUILD FAILED (total time: 40 seconds)
我怎样才能解决这个问题
今天我犯了同样的错误
Incrementally deploying http://localhost:8084/hastaneBilgiSistemi
Completed incremental distribution of http://localhost:8084/hastaneBilgiSistemi
Incrementally redeploying http://localhost:8084/hastaneBilgiSistemi
Deploy is in progress...
deploy?config=file%3A%2FC%3A%2FUsers%2FyakUP%2FAppData%2FLocal%2FTemp%2Fcontext163067119208813391.xml&path=/hastaneBilgiSistemi
FAIL - Deployed application at context path /hastaneBilgiSistemi but context failed to start
C:\Users\yakUP\Documents\NetBeansProjects\hastaneBilgiSistemi\nbproject\build-impl.xml:688: The module has not been deployed.
BUILD FAILED (total time: 1 second)
我重新启动了Nb和pc。问题没有解决。请帮帮我
# 1 楼答案
要具体说明究竟是什么导致NetBeans失败并不容易,可能会有很多
在任何情况下,构建应用程序后,您都可以通过执行启动脚本自己启动Tomcat
<apache_tomcat_directory>/bin/startup.sh
,并且当Tomcat启动并运行时,通过粘贴。向…宣战
<apache_tomcat_directory>/webapps
这样一来,首先,您可以继续工作,其次,确认错误来自NetBeans,而不是Tomcat实例本身
< P.S.NETBeaS 6.9是相当旧的,尤其是如果你认为NETBeCes现在已经达到了版本11。我还建议升级NetBeans# 2 楼答案
重新启动netbeans。我也有类似的问题,为我工作
# 3 楼答案
在我的例子中,库中存在冲突,我使用了2个版本的slf4j。如果同时使用,则两个版本会发生冲突。因此,我删除了旧的一个,做了清理和建设,并再次运行该项目。它工作正常。无需重新启动netbeans或tomcat