开发者社区> 问答> 正文

wildfly jboss发布项目时报错?报错

同样的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
}

展开
收起
爱吃鱼的程序员 2020-06-08 19:55:05 575 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这是jaxb-impl中的一个类,jdk1.6以后已经自带了jaxb的实现,jdk5以前需要自行引入相关jar包,确认正式环境的jdk版本。<divclass='ref'>

    引用来自“tonyEdison”的评论

    这是jaxb-impl中的一个类,jdk1.6以后已经自带了jaxb的实现,jdk5以前需要自行引入相关jar包,确认正式环境的jdk版本。

    2020-06-08 19:55:21
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云Elasticsearch2.0发布 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载