在tomcat服务器上部署应用程序失败



当我尝试在netbeans中使用tomcat服务器运行我的war文件时,我得到这个错误。

Tomcat server started.
In-place deployment at C:UserssaeedDocumentsNetBeansProjectsGomrokProjectPoliceSmsCentertargetPoliceSmsCenter-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)

原因是什么?

尝试在您的pom文件中包含以下依赖项。使用<scope>provided</scope>来指示您需要编译工件,但不要在您的war中使用它。

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

相关内容

  • 没有找到相关文章

最新更新