7 Replies Latest reply on May 17, 2013 6:15 AM by Yves Martin

    Missing module

    Sam W Expert

      HI with jboss 7.1.1 final and cxf, when I execute a remote web service call from a client module, jboss thrown the following exception:

       

       

      ....

      23:18:43,856 DEBUG [org.springframework.security.web.context.HttpSessionSecurityContextRepository] (http--192.168.1.20-8080-1) SecurityContext is empty or contents are anonymous - context will

      not be stored in HttpSession.

      23:18:43,857 DEBUG [org.springframework.security.web.context.SecurityContextPersistenceFilter] (http--192.168.1.20-8080-1) SecurityContextHolder now cleared, as request processing completed

      23:18:43,857 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ForestSurfWebClient-web].[dispatcherServlet]] (http--192.168.1.20-8080-1) Servlet.service() for servlet

      dispatcherServlet threw exception: java.lang.ClassNotFoundException: org.springframework.beans.BeansException from [Module "org.apache.cxf:main" from local module loader @744a6cbf (roots: /usr

      /local/users/jboss/jboss711Final/modules)]

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

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

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

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

              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [rt.jar:1.6.0_07]

              at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.getSpringBusFactory(JBossWSBusFactory.java:120)

              at org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.createBus(JBossWSBusFactory.java:54)

              at org.jboss.wsf.stack.cxf.client.serviceref.CXFServiceObjectFactoryJAXWS.createNewBus(CXFServiceObjectFactoryJAXWS.java:86)

              at org.jboss.wsf.stack.cxf.client.serviceref.CXFServiceObjectFactoryJAXWS.init(CXFServiceObjectFactoryJAXWS.java:53)

              at org.jboss.ws.common.serviceref.AbstractServiceObjectFactoryJAXWS.getObjectInstance(AbstractServiceObjectFactoryJAXWS.java:98)

              at org.jboss.as.webservices.webserviceref.WSRefValueSource.getValue(WSRefValueSource.java:75)

              at org.jboss.as.naming.ValueManagedReferenceFactory.getReference(ValueManagedReferenceFactory.java:49)

              at org.jboss.as.ee.component.ManagedReferenceFieldInjectionInterceptorFactory$ManagedReferenceFieldInjectionInterceptor.processInvocation(ManagedReferenceFieldInjectionInterceptorFacto

      ry.java:104) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.j

      ...

      at ForestSurfWebClient.manager.ProductCategoryAssociateManagerLocal$$$view49.findAll(Unknown Source) [ForestSurfWebClient-ejb-1.0.jar:]

              at ForestSurf.manager.service.ProductCategoryAssociateServiceImpl.findAll(ProductCategoryAssociateServiceImpl.java:37) [classes:]

              at ForestSurf.manager.service.ProductCategoryAssociateServiceImpl.findAavailableCategories(ProductCategoryAssociateServiceImpl.java:194) [classes:]

              at ForestSurf.controller.CategoryController.home(CategoryController.java:89) [classes:]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_07]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_07]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_07]

              at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_07]

              at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]

              at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) [spring-webmvc-3.0.7.RELEASE.jar:3.0.7.RELEASE]

       

       

       

      I have looking into the web service declaration, found nothing strange.

      From the above exception log, what would be the possible causes of error?

       

      Any suggestion is very much appreciated.

      Thanks

      Sam