2012-01-16 106 views
0

我試圖運行該應用程序。只是我安裝了tomcat和netBeans。 它給出以下錯誤。如果我嘗試單獨構建,建立是成功的。但我無法在服務器部署...tomcat服務器提供運行應用程序的問題

Created dir: D:\Test\build\generated\src 
Created dir: D:\Test\build\generated\classes 
Compiling 1 source file to D:\Test\build\generated\classes 
Undeploying ... 
undeploy?path=/excelRD 
OK - Undeployed application at context path /excelRD 
In-place deployment at D:\Test\build\web 
D:\Test\build\web\META-INF\context.xml (The system cannot find the file specified) 
D:\Test\nbproject\build-impl.xml:686: The module has not been deployed. 

請不要要緊

回答

1

錯誤信息似乎很清楚,你需要在你的項目中的文件context.xml。 在用Netbeans創建的常規apache項目中,您在目錄Web Pages中有一個其他目錄名稱META-INF,並且在此目錄中的文件爲context.xml。 嘗試尊重這種架構。最小context.xml含量的不同是:

<?xml version="1.0" encoding="UTF-8"?> 
<Context antiJARLocking="true" path="/excelRD"/> 
0

他還可能會看到我見過的NetBeans多年的問題。您有一個完全有效的context.xml文件,NetBeans在部署期間無法找到它。如果你打開文件,無論如何都要觸摸它(鍵入一個字符,刪除該字符,然後保存),問題就會消失。我發生過這麼多次,以至於在部署之前總是碰到context.xml文件。

相關問題