WebService项目问题

新手小白,运行WebService项目,报错如下

12月 05, 2023 4:24:01 下午 org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://demo.test/}ServerInterfaceImplService from class test.demo.ServerInterface
12月 05, 2023 4:24:01 下午 org.apache.cxf.endpoint.ServerImpl initDestination
信息: Setting the server's publish address to be http://192.168.52.1:1900/ServiceInterface?wsdl
Exception in thread "main" java.lang.IllegalAccessError: class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine tried to access protected method 'void org.eclipse.jetty.server.Handler$AbstractContainer.<init>()' (org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine and org.eclipse.jetty.server.Handler$AbstractContainer are in unnamed module of loader 'app')
        at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.initializeContexts(JettyHTTPServerEngine.java:565)
        at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:388)
        at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:187)
        at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:53)
        at org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
        at org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:894)
        at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:366)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:255)
        at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:134)
        at javax.xml.ws.Endpoint.publish(Endpoint.java:254)
        at test.demo.DemoApplication.main(DemoApplication.java:11)

Setting the server's publish address to 说明服务发布了,然后后面出错了

求大佬们帮帮忙

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值