加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

CXF启动报错org.slf4j.spi.LocationAwareLogger.log

发布时间:2020-12-16 22:45:42 所属栏目:安全 来源:网络整理
导读:?? ?? 错误信息: web?service?start 2012-9-20?17:19:07?org.apache.cxf.service.factory.ReflectionServiceFactoryBean?buildServiceFromClass 信息:?Creating?Service?{http://impl.dao.cxf.com/}HelloWorld?from?class?com.cxf.dao.HelloWorld 2012-9-20
??
??

错误信息:

web?service?start
2012-9-20?17:19:07?org.apache.cxf.service.factory.ReflectionServiceFactoryBean?buildServiceFromClass
信息:?Creating?Service?{http://impl.dao.cxf.com/}HelloWorld?from?class?com.cxf.dao.HelloWorld
2012-9-20?17:19:07?org.apache.cxf.endpoint.ServerImpl?initDestination
信息:?Setting?the?server's?publish?address?to?be?http://localhost:8080/webServiceTest
Exception?in?thread?"main"?java.lang.NoSuchMethodError:?org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
at?org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:601)
at?org.eclipse.jetty.util.log.JettyAwareLogger.warn(JettyAwareLogger.java:425)
at?org.eclipse.jetty.util.log.Slf4jLog.warn(Slf4jLog.java:74)
at?org.eclipse.jetty.util.component.AbstractLifeCycle.setFailed(AbstractLifeCycle.java:199)
at?org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
at?org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:375)
at?org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:172)
at?org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)
at?org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)
at?org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836)
at?org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)
at?org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:348)
at?org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:246)
at?org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:151)
at?javax.xml.ws.Endpoint.publish(Endpoint.java:170)
at?com.cxf.app.WebServiceApp.main(WebServiceApp.java:14)


解决方法:

而我遇到的是JavaEE里的有个几包进行冲突,把JavaEE6.0换成5.0就OK了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读