2017-07-16 70 views
0

看来,当我尝试部署我的JSP项目时,它突然删除整个项目。Netbeans:部署时删除我的项目

这里是我的调试日志:

ant -f D:\\tomcat\\webapps\\WebApplication1 -Dnb.internal.action.name=debug -Ddirectory.deployment.supported=true -DforceRedeploy=false -Dnb.wait.for.caches=true -Dis.debugged=true -Dbrowser.context=D:\\tomcat\\webapps\\WebApplication1 debug 
init: 
deps-module-jar: 
deps-ear-jar: 
deps-jar: 
library-inclusion-in-archive: 
library-inclusion-in-manifest: 
compile: 
compile-jsps: 
debug: 
connect-debugger: 
Undeploying ... 
undeploy?path=/WebApplication1 
OK - Undeployed application at context path [/WebApplication1] 
In-place deployment at D:\tomcat\webapps\WebApplication1\build\web 
D:\tomcat\webapps\WebApplication1\build\web\META-INF\context.xml (The system cannot find the path specified) 
D:\tomcat\webapps\WebApplication1\nbproject\build-impl.xml:1152: The module has not been deployed. 
See the server log for details. 
BUILD FAILED (total time: 0 seconds) 

我使用NetBeans 8.2,Tomcat的16年5月8日,jdk1.8.0_131。

谁能告诉我什么是错的?

谢谢!

回答

0

我是否正确解释了您在tomcat/webapps/WebApplication1中正在开发(例如在Netbeans中)?你不应该这样做,因为你正在观察。而是在别处创建项目,然后将Netbeans(或Ant或任何构建工具)部署到Tomcat。

这与为什么没有web应用程序应该将上载的数据保存在其自己的目录中的原因相同:它可能在重新部署/升级Web应用程序时消失,因为服务器假定取消部署意味着您不再需要这些文件。让他们在别处,一切都很好。