Spring Integration-WebService

时间:2016-08-09 11:51:16

标签: spring-integration

我已经在apache cxf中实现了客户端webservice,它工作正常。 现在我一直在尝试使用spring集成来实现客户端Web服务。 在创建服务的过程中我遇到了异常,你能不能请任何人帮我解决这个问题。 也建议我任何网站学习这个春天整合的概念。

用于此服务的罐子:

spring-integration-core-3.0.0
spring-integration-ws-3.0.0.RELEASE
spring-oxm-3.2.6.RELEASE
spring-ws-core-2.1.1.RELEASE
wsdl4j-1.6.1
spring-xml-2.1.3.RELEASE
  

[org.jboss.modules](ServerService线程池 - 60)无法定义   class org.springframework.ws.client.support.WebServiceAccessor in   模块" deployment.TrailTest.war:main"来自服务模块加载器:   java.lang.NoClassDefFoundError:无法链接   org / springframework / ws / client / support / WebServiceAccessor(Module   " deployment.TrailTest.war:主"来自服务模块加载器):   org / springframework / xml / transform / TransformerObjectSupport at   sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(未知   来源)at   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(未知   来自java.lang.reflect.Constructor.newInstance(未知来源)     在   org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)     在   org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)     在   org.jboss.modules.ModuleClassLoader $ 1.loadClassLocal(ModuleClassLoader.java:78)     在org.jboss.modules.Module.loadModuleClass(Module.java:605)at   org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)     在   org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)     at java.lang.ClassLoader.defineClass1(Native Method)at   java.lang.ClassLoader.defineClass(未知来源)at   org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)     在   org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)     在   org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)     在   org.jboss.modules.ModuleClassLoader $ 1.loadClassLocal(ModuleClassLoader.java:78)     在org.jboss.modules.Module.loadModuleClass(Module.java:605)at   org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)     在   org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)     at java.lang.Class.getDeclaredMethods0(Native Method)at   java.lang.Class.privateGetDeclaredMethods(Unknown Source)at   java.lang.Class.getDeclaredMethods(未知来源)at   org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:571)     在   org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:490)     在   org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:503)     在   org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:474)     在   org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1057)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1030)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)     在   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)     在   org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:303)     在   org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)     在   org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)     在   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)     在   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)     在   org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)     在   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)     在   org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)     在   org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)     在   org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)     在   org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)     在   org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)     在   org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)     在javax.servlet.GenericServlet.init(GenericServlet.java:244)at   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)     在   org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)     在   io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)     在   io.undertow.servlet.core.ManagedServlet $ DefaultInstanceStrategy.start(ManagedServlet.java:231)     在   io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:132)     在   io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:526)     在   org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)     在   org.wildfly.extension.undertow.deployment.UndertowDeploymentService $ 1.run(UndertowDeploymentService.java:82)     在java.util.concurrent.Executors $ RunnableAdapter.call(未知   来自)java.util.concurrent.FutureTask.run(未知来源)at   java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)at   java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)at   java.lang.Thread.run(未知来源)at   org.jboss.threads.JBossThread.run(JBossThread.java:320)

1 个答案:

答案 0 :(得分:0)

  

java.lang.NoClassDefFoundError:无法链接org / springframework / ws / client / support / WebServiceAccessor

您必须确保spring-ws-core-2.1.1.RELEASE在CLASSPATH上。

如果它在WEB-INF/lib中并且我们看到了这个问题,请尝试将其移至JBOSS服务器库。