NutzCN Logo
问答 nutz集成cxf访问报错
发布于 2368天前 作者 qq_f55c6d47 2392 次浏览 复制 上一个帖子 下一个帖子
标签:

package com.zz.modules.webservice;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.Ok;
import com.zz.modules.webservice.restws.AbstractCxfModule;
@IocBean(create = "_init", depose = "depose")
@At("/ws")
public class CxfModule extends AbstractCxfModule {
private static final long serialVersionUID = 1L;
@At("/*")
@Ok("void")
@Fail("void")
public void service() throws Exception {
super.service();
}
}

package com.zz.modules.webservice.service;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
public interface HelloWorldService {
String sayHi(String text);
// 测试一下无参,有返回值的
String ping();
// 测试一下有参数,有返回值
String echo(@WebParam(name = "str") String str);
}

package com.zz.modules.webservice.impl;
import javax.jws.WebService;
import org.nutz.ioc.loader.annotation.IocBean;
import com.zz.modules.webservice.service.HelloWorldService;
@IocBean
@WebService(endpointInterface = "com.zz.modules.webservice.service.HelloWorldService", serviceName = "HelloWorld")
public class HelloWorldServiceImpl implements HelloWorldService {
@Override
public String sayHi(String text) {
return "Hello " + text;
}
public String ping() {
return "pong"; // ping --> pong 心跳回路
}
public String echo(String str) {
return str; // 简单回显
}
}

已经扫描到 这个类
2018-05-23 14:38:57,135 [INFO][org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
2018-05-23 14:38:57,988 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.r.61.r2 2017-04-18
2018-05-23 14:38:57,988 [INFO][org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
2018-05-23 14:38:59,126 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found 123 classes in 1 base-packages!
beans = [ "helloWorldServiceImpl", "baseService", "exportRyExcelService", "demoService", "logInterceptor"]
2018-05-23 14:38:59,139 [INFO][org.nutz.ioc.impl.NutIoc] - NutIoc init begin ...
2018-05-23 14:38:59,143 [INFO][org.nutz.ioc.impl.NutIoc] - ... NutIoc init complete

映射日志
/ws/*
com.hfits.modules.webservice.CxfModule
CxfModule.service(...) : void
OK:void

2018-05-23 14:42:31,441 [WARN][org.nutz.mvc.impl.processor.FailProcessor] - Error@/ws/HelloWorld :
org.nutz.ioc.IocException: IocBean[cxfModule] throw Exception when creating
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:209)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'com.hfits.modules.webservice.CxfModule'because: java.lang.NoClassDefFoundError: org/nutz/lang/reflect/FastMethod
at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:17)
at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
... 27 more
Caused by: java.lang.NoClassDefFoundError: org/nutz/lang/reflect/FastMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.nutz.lang.reflect.ReflectTool.defineClass(ReflectTool.java:70)
at org.nutz.lang.reflect.ReflectTool.defineClass(ReflectTool.java:56)
at org.nutz.aop.DefaultClassDefiner.define(DefaultClassDefiner.java:24)
at org.nutz.lang.reflect.FastMethodFactory.make(FastMethodFactory.java:50)
at org.nutz.lang.reflect.FastClassFactory.create(FastClassFactory.java:79)
at org.nutz.lang.reflect.FastClassFactory.get(FastClassFactory.java:45)
at org.nutz.lang.reflect.FastClassFactory.get(FastClassFactory.java:63)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:24)
at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:14)
... 29 more
Caused by: java.lang.ClassNotFoundException: org.nutz.lang.reflect.FastMethod
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 43 more

19 回复

nutz版本升级一下

ok
我现在用的是 nutz-1.r.61.r2.jar

换了nutz-1.r.65这个版本
第一次访问报同样的错误,在次访问就正常了

老的jar没删?

调用客户端报错
public class CxfClientTest {
public static void main(String[] args) throws Exception {
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(HelloWorldService.class);
factory.setAddress("http://localhost:8080/test/ws/HelloWorld");
HelloWorldService client = (HelloWorldService) factory.create();
String reply = client.echo("hi, cxf");
System.out.println("Server said: " + reply);
System.out.println("Server said: " + client.ping());
}

Exception in thread "main" java.lang.VerifyError: (class: com/zz/modules/webservice/service/jaxws_asm/PingResponse, method: setReturn signature: (Ljava/lang/String;)V) Illegal instruction found at offset 1
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
at java.lang.Class.getConstructor0(Class.java:2885)
at java.lang.Class.getDeclaredConstructor(Class.java:2058)
at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:105)
at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:102)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructor(ReflectionUtil.java:102)
at org.apache.cxf.common.jaxb.JAXBUtils.getValidClass(JAXBUtils.java:587)
at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:324)
at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:187)
at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:109)
at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:470)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:263)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103)
at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)
at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
at com.zz.modules.webservice.client.CxfClientTest.main(CxfClientTest.java:16)

Illegal instruction 编译问题

嗯 还是之前的错误org.nutz.ioc.IocException: IocBean[cxfModule] throw Exception when creating 这个服务还是不能访问

看到 插入代码或日志 这个按钮没?

贴一下当前报错信息

已经扫描到这个类
2018-05-23 16:21:51,171 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - > add 't_gg_zgxxjkAction ' - com.hfits.modules.sjfx.sjjk.web.T_gg_zgxxjkAction
2018-05-23 16:21:51,174 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - > add 'helloWorldServiceImpl ' - com.hfits.modules.webservice.impl.HelloWorldServiceImpl
2018-05-23 16:21:51,174 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - > add 'cxfModule ' - com.hfits.modules.webservice.restws.CxfModule
2018-05-23 16:21:51,192 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - > add 't_gg_xtrzService ' - com.hfits.modules.xtrz.service.T_gg_xtrzService
2018-05-23 16:21:51,193 [INFO][org.nutz.ioc.loader.annotation.AnnotationIocLoader] - > add 't_gg_xtrzAction
映射日志
/ws/*
com.zz.modules.webservice.restws.CxfModule
CxfModule.service(...) : void
OK:void

报错信息
2018-05-23 16:22:47,220 [WARN][org.nutz.mvc.impl.processor.FailProcessor] - Error@/ws/HelloWorld :
org.nutz.ioc.IocException: IocBean[cxfModule] throw Exception when creating
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15)
at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44)
at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67)
at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:209)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.VerifyError: (class: com/zz/modules/webservice/service/jaxws_asm/PingResponse, method: getReturn signature: ()Ljava/lang/String;) Falling off the end of the code
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)
at java.lang.Class.getConstructor0(Class.java:2885)
at java.lang.Class.getDeclaredConstructor(Class.java:2058)
at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:105)
at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:102)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructor(ReflectionUtil.java:102)
at org.apache.cxf.common.jaxb.JAXBUtils.getValidClass(JAXBUtils.java:587)
at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:324)
at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:187)
at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:109)
at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74)
at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315)
at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:470)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530)
at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:263)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at com.zz.modules.webservice.restws.AbstractCxfModule.loadBus(AbstractCxfModule.java:139)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:77)
at com.zz.modules.webservice.restws.AbstractCxfModule._init(AbstractCxfModule.java:86)
at com.zz.modules.webservice.restws.AbstractCxfModule$FM$_init$62febe830a4a6764c634d9e263964cee.invoke(AbstractCxfModule.java)
at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
... 27 more

看到 插入代码或日志 这个按钮没?


``` 2018-05-23 16:22:47,220 [WARN][org.nutz.mvc.impl.processor.FailProcessor] - Error@/ws/HelloWorld : org.nutz.ioc.IocException: IocBean[cxfModule] throw Exception when creating at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152) at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240) at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270) at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116) at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27) at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44) at org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor.process(UpdateRequestAttributesProcessor.java:15) at org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:44) at org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:67) at org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31) at org.nutz.mvc.NutFilter.doFilter(NutFilter.java:209) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.VerifyError: (class: com/zz/modules/webservice/service/jaxws_asm/PingResponse, method: getReturn signature: ()Ljava/lang/String;) Falling off the end of the code at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585) at java.lang.Class.getConstructor0(Class.java:2885) at java.lang.Class.getDeclaredConstructor(Class.java:2058) at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:105) at org.apache.cxf.common.util.ReflectionUtil$4.run(ReflectionUtil.java:102) at java.security.AccessController.doPrivileged(Native Method) at org.apache.cxf.common.util.ReflectionUtil.getDeclaredConstructor(ReflectionUtil.java:102) at org.apache.cxf.common.jaxb.JAXBUtils.getValidClass(JAXBUtils.java:587) at org.apache.cxf.jaxb.JAXBContextInitializer.addClass(JAXBContextInitializer.java:324) at org.apache.cxf.jaxb.JAXBContextInitializer.begin(JAXBContextInitializer.java:187) at org.apache.cxf.service.ServiceModelVisitor.visitOperation(ServiceModelVisitor.java:109) at org.apache.cxf.service.ServiceModelVisitor.walk(ServiceModelVisitor.java:74) at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:315) at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:470) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:696) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:263) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:103) at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:168) at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) at com.zz.modules.webservice.restws.AbstractCxfModule.loadBus(AbstractCxfModule.java:139) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:77) at com.zz.modules.webservice.restws.AbstractCxfModule._init(AbstractCxfModule.java:86) at com.zz.modules.webservice.restws.AbstractCxfModule$FM$_init$62febe830a4a6764c634d9e263964cee.invoke(AbstractCxfModule.java) at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180) at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89) at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141) ... 27 more

```

jdk版本多少

maven项目? 应该是多个版本的cxf存在

普通web

cxf-core-3.1.12.jar
cxf-rt-frontend-jaxws-3.1.12.jar
cxf-rt-transports-http-3.1.12.jar
cxf-rt-frontend-simple-3.1.12.jar
cxf-rt-bindings-soap-3.1.12.jar
cxf-rt-bindings-xml-3.1.12.jar
cxf-rt-wsdl-3.1.12.jar
cxf-rt-databinding-jaxb-3.1.12.jar
cxf-rt-ws-addr-3.1.12.jar
cxf-rt-ws-policy-3.1.12.jar
cxf-rt-ws-security-3.1.12.jar
neethi-3.0.3.jar
xmlschema-core-2.1.0.jar
wsdl4j-1.6.3.jar
nutz-1.r.65.jar
asm-3.1.jar

不是采用maven

asm-3.1.jar 换5以上

可以了 谢谢老板

添加回复
请先登陆
回到顶部