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

    Missing module

    samwun9988

      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

        • 1. Re: Missing module
          nickarls

          It looks like the server-side cxf module classloader is looking for spring stuff, which is a bit strange. You are not bundling another CXF with your application, are you?

          1 of 1 people found this helpful
          • 2. Re: Missing module
            samwun9988

            I am not sure.

            Where should I look in to? pom.xml or web.xml or in ejb module or on web module?

            My client application is an ear project.

             

            Thanks

            Sam

            • 3. Re: Missing module
              nickarls

              Scary if you don't know what your own applicaton contains ;-)

               

              start by checking the ear root, ear \lib folder and all web modules WEB-INF\lib folders

              1 of 1 people found this helpful
              • 4. Re: Missing module
                samwun9988

                there is no sight of *cxf* files in my project:

                 

                I use the following command for searching my Client project:

                 

                 

                sam@sam-Dell-Laptop ~

                $ cd /cygdrive/c/work/NetBeansProjects/Client/

                 

                 

                sam@sam-Dell-Laptop /cygdrive/c/work/NetBeansProjects/Client

                $ find . -name "*cxf*"

                 

                 

                sam@sam-Dell-Laptop /cygdrive/c/work/NetBeansProjects/Client

                $ find . -name "*CXF*"

                 

                I think I need to re-start it from scratch.

                Thanks

                Sam

                • 5. Re: Missing module
                  nickarls

                  Easiest to look at what actually gets deployed (the EAR file) and look at the jar files in there.

                  • 6. Re: Missing module
                    samwun9988

                    I 've got it solved by recreating the project.

                    There might be some "rubbish" when I copied the other poject over to the new project.

                     

                    Thanks for you help anyway.

                    Sam

                    • 7. Re: Missing module
                      ymartin

                      This CXF / Spring issue exists since JBoss 6. It occurs when Spring jars are available in application archives.

                       

                      Please refer to this thread for details:

                      https://community.jboss.org/thread/194685