JBoss Operation WebService Error resolution

Source: Internet
Author: User
Tags jboss

Some certifications in the project require a third-party authentication interface, and the third party provides the WebService interface in the form of a WSDL. For ease of invocation, use the Apache CXF tool to generate the client code. Local development, with the Apache TOMCAT7 server, call WebService client no problem. When deployed to a test environment, the Jboss7.1.1 server is used. The problem arises and the error is run.

Error message:

4:20:49,987 info [stdout] (http--0.0.0.0-8080-2) java.lang.reflect.InvocationTargetException 14:20:49,992 INFO [ STDOUT] (http--0.0.0.0-8080-2) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) 14:20:49,995 INFO [

STDOUT] (http--0.0.0.0-8080-2) at Sun.reflect.NativeMethodAccessorImpl.invoke (nativemethodaccessorimpl.java:57) 14:20:49,998 INFO [stdout] (http--0.0.0.0-8080-2) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( delegatingmethodaccessorimpl.java:43) 14:20:50,001 INFO [stdout] (http--0.0.0.0-8080-2) at Java.lang.reflect.Method.invoke (method.java:606) 14:20:50,005 INFO [stdout] (http--0.0.0.0-8080-2) at Com.huxin.cd.servlet.ChaodaiServlet.processRequest (chaodaiservlet.java:149) 14:20:50,007 INFO [stdout] (

http--0.0.0.0-8080-2) at Com.huxin.base.servlet.AbstractBaseServlet.doPost (abstractbaseservlet.java:126)

14:20:50,014 INFO [stdout] (http--0.0.0.0-8080-2) at Javax.servlet.http.HttpServlet.service (httpservlet.java:754) 14:20:50,015 INFO [stdout] (Http--0.0.0.0-8080-2) at Javax.servlet.http.HttpServlet.service (httpservlet.java:847) 14:20:50,016 INFO [stdout] ( http--0.0.0.0-8080-2) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:329) 14:20:50,018 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:248) 14:20:50,021 INFO [ STDOUT] (http--0.0.0.0-8080-2) at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java : 275) 14:20:50,024 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.catalina.core.StandardContextValve.invoke ( standardcontextvalve.java:161) 14:20:50,026 INFO [stdout] (http--0.0.0.0-8080-2) at

Org.jboss.as.web.security.SecurityContextAssociationValve.invoke (securitycontextassociationvalve.java:153) 14:20:50,028 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.catalina.core.StandardHostValve.invoke ( standardhostvalve.java:155) 14:20:50,030 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:102) 14:20:50,031 INFO [stdout]

(http--0.0.0.0-8080-2) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:109) 14:20:50,033 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.catalina.connector.CoyoteAdapter.service ( coyoteadapter.java:368) 14:20:50,035 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.coyote.http11.Http11Processor.process (http11processor.java:877) 14:20:50,036 INFO [stdout] ( http--0.0.0.0-8080-2) at Org.apache.coyote.http11.http11protocol$http11connectionhandler.process ( http11protocol.java:671) 14:20:50,038 INFO [stdout] (http--0.0.0.0-8080-2) at Org.apache.tomcat.util.net.JIoEndpoint $Worker. Run (jioendpoint.java:930) 14:20:50,040 INFO [stdout] (http--0.0.0.0-8080-2) at Java.lang.Thread.run ( thread.java:745) 14:20:50,042 INFO [stdout] (http--0.0.0.0-8080-2) caused by:java.lang.noclassdeffounderror:org/ Springframework/beans/beansexception 14:20:50,045 INFO [stdout] (http--0.0.0.0-8080-2) at

Org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.getSpringBusFactory (jbosswsbusfactory.java:120) 14:20:50,047 INFO [stdout] (http--0.0.0.0-8080-2) at

Org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.createBus (jbosswsbusfactory.java:54) 14:20:50,050 INFO [stdout] (http--0.0.0.0-8080-2) at Org.jboss.wsf.stack.cxf.client.ProviderImpl.setValidThreadDefaultBus (providerimpl.java:213) 14:20:50,055 INFO [ STDOUT] (http--0.0.0.0-8080-2) at Org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate ( providerimpl.java:140) 14:20:50,058 INFO [stdout] (http--0.0.0.0-8080-2) at javax.xml.ws.service.<init> ( service.java:57) 14:20:50,059 INFO [stdout] (http--0.0.0.0-8080-2) at  Com.huxin.cd.webservice.client.junyu.ocr.jyocrwebservice.<init> (jyocrwebservice.java:47) 14:20:50,060 INFO [STDOUT] (http--0.0.0.0-8080-2) at COM.HUXIN.CD.SERVLET.HUXINCHAODAILOANSERVLETBLL.CDOCR (HUXINCHAODAILOANSERVLETBLL.Java:2283) 14:20:50,063 INFO [stdout] (http--0.0.0.0-8080-2) ... More 14:20:50,065 INFO [stdout] (http--0.0.0.0-8080-2) caused By:java.lang.ClassNotFoundException:org.springframew Ork.beans.BeansException from [module ' Org.apache.cxf:main ' from local Module loader @35481fbd (roots:f:\work\web_ Server\jboss-as-7.1.1.final\modules)] 14:20:50,070 INFO [stdout] (http--0.0.0.0-8080-2) at Org.jboss.modules.ModuleClassLoader.findClass (moduleclassloader.java:190) 14:20:50,072 INFO [stdout] ( http--0.0.0.0-8080-2) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked ( concurrentclassloader.java:468) 14:20:50,074 INFO [stdout] (http--0.0.0.0-8080-2) at Org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked (concurrentclassloader.java:456) 14:20:50,076 INFO [stdout] (http--0.0.0.0-8080-2) at Org.jboss.modules.ConcurrentClassLoader.performLoadClass ( concurrentclassloader.java:398) 14:20:50,078 INFO [stdout] (http--0.0.0.0-8080-2) at org.jboss.modules.ConcurrentClassloader.loadclass (concurrentclassloader.java:120) 14:20:50,080 INFO [stdout] (http--0.0.0.0-8080-2) ... More
Find Critical Error message:
caused by:java.lang.ClassNotFoundException:org.springframework.beans.BeansException from [Module] ORG.APACHE.CXF: Main "from local module loader @35481fbd

By the error message, it is possible to know that the Spring-beans-version.jar is missing, but there is a beans jar package in the project. Search the Internet a lot, said is not compatible with spring. Open the JBoss installation directory, JBOSS7 the jar package from modules in the CXF, and see Spring in the dependencies configured in Modules.xml, but optional. Tried a lot of ways, or not.

Helpless, the use of CXF generated client code does not work, then a different way. After using Apache axis to generate the client code, the problem is resolved.

There is still time to investigate why the client code generated using CXF is not available.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.