+
 新版

wildfly jboss发布项目时报错

一米阳光1 发布于 2016/12/20 12:57
阅读 2K+
收藏 0

同样的war包,只有jdbc不一样,测试环境发布没有问题,正式环境发布报错

不同的服务器,提示类找不到,可是测试环境发布没有问题,为什么正式环境发布有这个问题,急求。。。Unexpected HTTP response: 500

Request
{
    "address" => [("deployment" => "web-1.3.5-SNAPSHOT-uk-production.war")],
    "operation" => "deploy"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./" =>
     "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./: Failed to start service
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService':
     Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: 
     Could not initialize class com.sun.xml.bind.v2.model.impl.Utils
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.Utils"}},
    "rolled-back" => true
}

加载中
0
tonyEdison
tonyEdison
这是jaxb-impl中的一个类,jdk1.6以后已经自带了jaxb的实现,jdk5以前需要自行引入相关jar包,确认正式环境的jdk版本。
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部