0 Replies Latest reply on Jan 8, 2012 3:03 AM by hantsy bai

    no java.lang.ClassNotFoundException: org.jboss.jsfunit.jsfsession.JSFServerSessio

    hantsy bai Master

      Hi,

       

      I added jsfunit-core in maven test scope(of course there is no errors in Eclipse), it still complain there is no java.lang.ClassNotFoundException: org.jboss.jsfunit.jsfsession.JSFServerSessio?

       

      I found other dependencies modification( modified @Deployment method) are also not applied instantly. Is there something I omitted?

       

      Thanks.

       

      15:58:04,918 ERROR [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (RMI TCP Connection(9)-127.0.0.1) Failed: org.company.test.controller.JSFTest.testIndexPage: java.lang.NoClassDefFoundError: org/jboss/jsfunit/jsfsession/JSFServerSession
          at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_30]
          at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_30]
          at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_30]
          at org.junit.runners.model.TestClass.<init>(TestClass.java:41) [arquillian-service:]
          at org.junit.runners.ParentRunner.<init>(ParentRunner.java:73) [arquillian-service:]
          at org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:55) [arquillian-service:]
          at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:49) [arquillian-service:]
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_30]
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_30]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_30]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_30]
          at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31) [arquillian-service:]
          at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24) [arquillian-service:]
          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) [arquillian-service:]
          at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) [arquillian-service:]
          at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) [arquillian-service:]
          at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) [arquillian-service:]
          at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:33) [arquillian-service:]
          at org.junit.runner.JUnitCore.run(JUnitCore.java:136) [arquillian-service:]
          at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]
          at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:128) [arquillian-service:]
          at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:107) [arquillian-service:]
          at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:203) [arquillian-service:]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_30]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_30]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_30]
          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262) [:1.6.0_30]
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) [:1.6.0_30]
          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) [:1.6.0_30]
          at org.jboss.as.jmx.tcl.TcclMBeanServer.invoke(TcclMBeanServer.java:214)
          at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) [:1.6.0_30]
          at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) [:1.6.0_30]
          at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) [:1.6.0_30]
          at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360) [:1.6.0_30]
          at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) [:1.6.0_30]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_30]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_30]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_30]
          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_30]
          at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) [:1.6.0_30]
          at sun.rmi.transport.Transport$1.run(Transport.java:159) [:1.6.0_30]
          at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_30]
          at sun.rmi.transport.Transport.serviceCall(Transport.java:155) [:1.6.0_30]
          at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) [:1.6.0_30]
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) [:1.6.0_30]
          at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) [:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_30]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]
      Caused by: java.lang.ClassNotFoundException: org.jboss.jsfunit.jsfsession.JSFServerSession from [Module "deployment.test.war:main" from Service Module Loader]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310) [jboss-modules.jar:1.0.2.GA]
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103) [jboss-modules.jar:1.0.2.GA]
          ... 54 more