Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-696

java.lang.NoClassDefFoundError: org/jboss/annotation/factory/AnnotationCreator

XMLWordPrintable

    • Hide

      1)clone the git repository http://github.com/weld/core.git
      2)configure glassfish server related information in core/tests-arquillian/src/test/resources/arquillian.xml file
      3)Start the glassfish domain
      4)Run the test AnnotatedTypeDecoratorTest
      5)You will see the test fails

      Show
      1)clone the git repository http://github.com/weld/core.git 2)configure glassfish server related information in core/tests-arquillian/src/test/resources/arquillian.xml file 3)Start the glassfish domain 4)Run the test AnnotatedTypeDecoratorTest 5)You will see the test fails

      While running tests fro core workspace, this particular test is failing.I see the below exception in the file org.jboss.weld.tests.annotatedType.decoration.AnnotatedTypeDecoratorTest.txt under surefire-reports directory.I guess some jar file containing the class AnnotationCreator is missing in the integration.

      -------------------------------------------------------------------------------
      Test set: org.jboss.weld.tests.annotatedType.decoration.AnnotatedTypeDecoratorTest
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 sec <<< FAILURE!
      testAnnotationDecorator(org.jboss.weld.tests.annotatedType.decoration.AnnotatedTypeDecoratorTest) Time elapsed: 0.002 sec <<< ERROR!
      java.lang.NoClassDefFoundError: org/jboss/annotation/factory/AnnotationCreator
      at org.jboss.weld.tests.annotatedType.decoration.MockAnnotatedCallable.<clinit>(MockAnnotatedCallable.java:44)
      at org.jboss.weld.tests.annotatedType.decoration.MockAnnotatedType.initialiseConstructors(MockAnnotatedType.java:70)
      at org.jboss.weld.tests.annotatedType.decoration.MockAnnotatedType.<init>(MockAnnotatedType.java:43)
      at org.jboss.weld.tests.annotatedType.decoration.AnnotatedTypeDecoratorTest.testAnnotationDecorator(AnnotatedTypeDecoratorTest.java:68)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      at org.jboss.arquillian.junit.Arquillian$6$1.invoke(Arquillian.java:251)
      at org.jboss.arquillian.impl.handler.TestEventExecuter.callback(TestEventExecuter.java:44)
      at org.jboss.arquillian.impl.handler.TestEventExecuter.callback(TestEventExecuter.java:34)
      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
      at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
      at org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:117)
      at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:244)
      at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:207)
      at org.jboss.arquillian.junit.Arquillian$5$1.evaluate(Arquillian.java:225)
      at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)
      at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:221)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:163)
      at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:186)
      at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:297)
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
      at org.jboss.arquillian.junit.JUnitTestRunner.execute(JUnitTestRunner.java:69)
      at org.jboss.arquillian.protocol.servlet_3.ServletTestRunner.doGet(ServletTestRunner.java:84)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:824)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: org.jboss.annotation.factory.AnnotationCreator
      at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1518)
      at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
      ... 66 more

              pmuiratbleepbleep Pete Muir (Inactive)
              msreekanth_jira sreekanth manga (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: