2017-07-16 87 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應用程序時消失,因爲服務器假定取消部署意味着您不再需要這些文件。讓他們在別處,一切都很好。