0 Replies Latest reply on Oct 5, 2011 12:16 PM by ard

    When running CXF2.4.2 WS client on Jboss AS7 getting ClassNotFoundException: org.apache.cxf.frontend.ClientProxy

    ard Newbie

      I am trying to run CXF client code embedded in WAR ( has Servelt/Jsp) on JBOSS AS 7.0.1  using Eclipse Indigo

      CXF client was generated using CXF2.4.2   ( and JBOSS AS 7 has CXF 2.4.1)

       

      Added all CXF2.4.2 jars on WAR build path

       

      At run time getting below error,

      will appreciate any pointers to resolve this

      =====================================================================

       

      11:54:40,225 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (http--0.0.0.0-7001-1) Creating Service {MyServiceV1}MyServiceOneV1from WSDL: https://www.org.com/myservice.wsdl

      11:54:40,959 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MyDataMaintenance].[MYAPPServiceServlet]] (http--0.0.0.0-7001-1) Servlet.service() for servlet MYAPPServiceServlet threw exception: java.lang.ClassNotFoundException: org.apache.cxf.frontend.ClientProxy from [Module "deployment.MyDataMaintenance.war:main" from Service Module Loader]

             at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

             at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

             at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

             at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

             at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

             at MyServiceV1.MyServiceOneV1Interface_MyServiceOneV1Port_Client.MyServiceMain(MyServiceOneV1Interface_MyServiceOneV1Port_Client.java:88) [LNKywrdService.jar:]

             at com.wsfs.MyApp.service.LNKywrdService.processMyRequest(LNKywrdService.java:80) [classes:]

             at com.wsfs.MyApp.util.MYAPPFileUtil.processUploadedStream(MYAPPFileUtil.java:317) [classes:]

             at com.wsfs.MyApp.util.MYAPPFileUtil.processDataFile(MYAPPFileUtil.java:294) [classes:]

             at com.wsfs.MyApp.servlet.MYAPPServiceServlet.doPost(MYAPPServiceServlet.java:47) [classes:]

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

             at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]

             at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]