0 Replies Latest reply on Dec 19, 2012 10:16 AM by mohan rao

    java.lang.NoClassDefFoundError: org/apache/camel/CamelContext

    mohan rao Newbie

      I Have one sar file , which is deploying into the Jboss AS7, while starting the server, i am gettin below error

       

      Failed to start service jboss.mbean.service."hrifconfig.service.InboundRequestProcessor:service=HRIFInboundRequestProcessServices".start: org.jboss.msc.service.StartException in service jboss.mbean.service."hrifconfig.service.InboundRequestProcessor:service=HRIFInboundRequestProcessServices".start: JBAS017222: Failed to execute legacy service start() method

                at org.jboss.as.service.StartStopService.start(StartStopService.java:56)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_35]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_35]

                at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_35]

      Caused by: java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [classes.jar:1.6.0_35]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [classes.jar:1.6.0_35]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [classes.jar:1.6.0_35]

                at java.lang.reflect.Method.invoke(Method.java:597) [classes.jar:1.6.0_35]

                at org.jboss.as.service.AbstractService.invokeLifecycleMethod(AbstractService.java:52)

                at org.jboss.as.service.StartStopService.start(StartStopService.java:54)

                ... 5 more

      Caused by: java.lang.NoClassDefFoundError: org/apache/camel/CamelContext

           ...class

        ... 11 more

      Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext from [Module "deployment.hrifconfig-inbound-request-processor.sar:main" from Service Module Loader]

                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)

                ... 12 more

       

       

      I have another sar called outbound.sar whcih is using the same camel context file, while deploying outbound.sar file, server is starting succesfully and applciaton is running.

       

      Thanks in advance.

       

      Sanjeevi.