gpt4 book ai didi

java - Jboss 6 我试图在服务器上部署 Restful Web 服务,但遇到异常

转载 作者:行者123 更新时间:2023-12-01 12:32:53 25 4
gpt4 key购买 nike

我尝试在 jboss6 上部署 Restfull Webservices 但失败了。异常(exception)情况如下。

Unexpected HTTP response: 500

Request
{
"address" => [("deployment" => "copl.war")],
"operation" => "deploy"
}

Response

Internal Server Error
{
"outcome" => "failed",
"failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"copl.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"copl.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"copl.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer from [Module \"deployment.copl.war:main\" from Service Module Loader]
Caused by: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer from [Module \"deployment.copl.war:main\" from Service Module Loader]"}},
"rolled-back" => true
}

最佳答案

缺少

com.sun.jersey.spi.container.servlet.ServletContainer 类。请找到包含此类的 jar 并将其添加到 jboss6standalone/lib/ext 文件夹中。如果问题未解决,请将其添加到项目 lib 文件夹(运行时库)中。

关于java - Jboss 6 我试图在服务器上部署 Restful Web 服务,但遇到异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25807950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com