0

当我尝试在 NetBeans 6.9 中运行我的项目时,我收到了这个错误:

启动Tomcat进程...

等待雄猫...

Tomcat 服务器启动。

增量部署 localhost:8084/hastaneBilgiSistemi

完成 localhost:8084/hastaneBilgiSistemi 的增量分发

增量重新部署 localhost:8084/hastaneBilgiSistemi

正在部署...

deploy?config=file%3A%2FC%3A%2FUsers%2FyakUP%2FAppData%2FLocal%2FTemp% 2Fcontext1397063015253659398.xml&path=/hastaneBilgiSistemi
连接被拒绝:连接

C:\Users\yakUP\Documents\NetBeansProjects\hastaneBilgiSistemi\nbproject\build-impl.xml:688:模块尚未部署。构建失败(总时间:40 秒)

我怎样才能解决这个问题?

今天我有同样的错误

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 。问题没有解决。请帮我

4

3 回答 3

1

就我而言,库中存在冲突,我使用了 2 个版本的 slf4j。如果一起使用,两个版本会发生冲突。所以我删除了旧的,清理并构建并再次运行该项目。它工作正常。无需重新启动 netbeans 或 tomcat。

于 2011-06-27T07:30:33.113 回答
1

重启网豆。我遇到了类似的问题并为我工作。

于 2010-10-30T11:28:36.983 回答
0

指定导致 NetBeans 失败的确切原因并不容易,可能很多。

无论如何,在构建应用程序后,您可以通过执行启动脚本自己启动 Tomcat,

<apache_tomcat_directory>/bin/startup.sh

,当 Tomcat 启动并运行时,通过将 .war 粘贴到来部署您的应用程序,

<apache_tomcat_directory>/webapps

这样,首先,您可以继续工作,其次,确认错误来自 NetBeans 而不是 Tomcat 实例本身。

ps NetBeans 6.9 已经很老了,特别是如果您认为 NetBeans 现在已经达到 11.0 版。我也建议升级 NetBeans。

于 2019-10-17T09:26:21.520 回答