2013-03-11 223 views
0

當我嘗試在帶有tomcat服務器的netbeans中運行我的war文件時,出現此錯誤。在tomcat服務器上應用程序部署失敗

Tomcat server started. 
In-place deployment at C:\Users\saeed\Documents\NetBeansProjects\GomrokProject\PoliceSmsCenter\target\PoliceSmsCenter-2.0-SNAPSHOT deploy?config=file%3A%2FC%3A%2FUsers%2Fsaeed%2FAppData%2FLocal%2FTemp%2Fcontext6847039033559451727.xml&path=/PoliceSmsCenter<br> http://localhost:8084/manager/text/deploy?config=file%3A%2FC%3A%2FUsers%2Fsaeed%2FAppData%2FLocal%2FTemp%2Fcontext6847039033559451727.xml&path=/PoliceSmsCenter"<br> The module has not been deployed.<br> See the server log for details. 
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210) 
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:179) 
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131) 
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211) 
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) 

可能是什麼原因?

+0

你能發佈服務器日誌嗎? – crazylpfan 2013-03-11 05:56:08

+0

服務器日誌中可用的原因是什麼? – 2013-03-11 05:57:25

+0

它是空的!裏面沒有任何文字。 – 2013-03-11 05:59:52

回答

0

嘗試在您的pom文件中包含以下依賴項。使用<scope>provided</scope>來表明你需要這個神器來編譯,但是不要在你的戰爭中使用它。

<dependency> 
    <groupId>javax</groupId> 
    <artifactId>javaee-api</artifactId> 
    <version>6.0</version> 
    <scope>provided</scope> 
</dependency> 
+0

@saeed arash你嘗試添加上面的依賴關係還是你已經在那裏? – 2013-03-11 06:36:31

+0

是的,我補充一下。但不正確 – 2013-03-11 06:37:12

相關問題