2 Replies Latest reply on Jul 5, 2012 1:03 PM by Manolescu Sebastian

    Arquillian joda time problem

    Manolescu Sebastian Newbie

      Hello,

       

      I have a problem whit joda time only when I run the unit tests whit arquillian. There are no failures:(

       

       

       

      @Deployment

             public static WebArchive createTestArchive() {

               return ShrinkWrap.create( WebArchive.class,"test.war").addPackage("org.joda.time.tz.data.ZoneInfoMap").addPackages(true,"org.joda.time").addClasses().addPackage("org.slf4j").addPackage("org.slf4j.spi").addPackage("org.slf4j.helpers").addAsWebInfResource("test-persistence.xml", "classes/META-INF/persistence.xml").addAsWebInfResource("beans.xml", "META-INF/beans.xml");

       

      }

       

       

           @EJB

           private Pen pen;

       

       

           @Test

           public void savePen(){

                Tech tech = new Tech();

                pen.save(tech);

          

               assertEquals(....);

      }

       

       

      Joda time depenendecy:

       

           <dependency>

                  <groupId>joda-time</groupId>

                  <artifactId>joda-time</artifactId>

                  <version>2.1</version>

              </dependency>

       

       

       

       

       

       

      ERRORS:

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1) Exception in thread "http--127.0.0.1-8080-1" java.io.IOException: Resource not found: "org/joda/time/tz/data/ZoneInfoMap" ClassLoader: ModuleClassLoader for Module "deployment.test.war:main" from Service Module Loader

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.tz.ZoneInfoProvider.openResource(ZoneInfoProvider.java:211)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.tz.ZoneInfoProvider.<init>(ZoneInfoProvider.java:123)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.tz.ZoneInfoProvider.<init>(ZoneInfoProvider.java:82)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.DateTimeZone.getDefaultProvider(DateTimeZone.java:462)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.DateTimeZone.setProvider0(DateTimeZone.java:416)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.DateTimeZone.<clinit>(DateTimeZone.java:115)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.chrono.GregorianChronology.<clinit>(GregorianChronology.java:71)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.chrono.ISOChronology.<clinit>(ISOChronology.java:66)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:61)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.DateTime.<init>(DateTime.java:155)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.joda.time.DateTime.now(DateTime.java:89)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.dgf.scr.prj.model.BE.preCreate(BE.java:87)

       

      12:14:58,520 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:39)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:110)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:79)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:70)

       

      12:14:58,536 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:422)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.event.internal.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:342)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:304)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:259)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:86)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:781)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:766)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:770)

       

      12:14:58,552 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:867)

       

      12:14:58,614 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.jpa.container.AbstractEntityManager.merge(AbstractEntityManager.java:583)

       

      12:14:58,614 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.dgf..scr.prj.service.FS.saveCF(FS.java:86)

       

      12:14:58,614 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,614 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,630 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,630 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,630 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

       

      12:14:58,630 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:45)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,677 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

       

      12:14:58,692 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

       

      12:14:58,692 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,692 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

       

      12:14:58,692 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

       

      12:14:58,708 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,723 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

       

      12:14:58,723 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,723 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:57)

       

      12:14:58,723 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.dgf.scr.prj.service.FS$$$view20.saveCF(Unknown Source)

       

      12:14:58,739 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.dgf..scr.prj.service.CSTest.cDTOFill(CSTest.java:133)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.dgf..scr.prj.service.CSTest.cDTOTest(CSTest.java:292)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:169)

       

      12:14:58,770 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.testng.Arquillian$2.invoke(Arquillian.java:167)

       

      12:14:58,786 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)

       

      12:14:58,786 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,786 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,786 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,802 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,802 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

       

      12:14:58,802 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

       

      12:14:58,802 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

       

      12:14:58,817 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

       

      12:14:58,817 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)

       

      12:14:58,817 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

       

      12:14:58,817 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.container.test.impl.execution.ContainerTestExecuter.execute(ContainerTestExecuter.java:38)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

       

      12:14:58,833 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,880 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.testng.Arquillian.run(Arquillian.java:158)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:181)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.Invoker.invokeMethod(Invoker.java:684)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:883)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1208)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)

       

      12:14:58,911 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)

       

      12:14:58,942 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.TestRunner.privateRun(TestRunner.java:758)

       

      12:14:58,942 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.TestRunner.run(TestRunner.java:613)

       

      12:14:58,942 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)

       

      12:14:58,942 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)

       

      12:14:58,942 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)

       

      12:14:58,958 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunner.run(SuiteRunner.java:240)

       

      12:14:58,958 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)

       

      12:14:58,958 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:87)

       

      12:14:58,958 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1137)

       

      12:14:58,958 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.TestNG.runSuitesLocally(TestNG.java:1062)

       

      12:14:58,973 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.testng.TestNG.run(TestNG.java:974)

       

      12:14:58,973 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.testng.container.TestNGTestRunner.execute(TestNGTestRunner.java:53)

       

      12:14:58,973 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:160)

       

      12:14:58,973 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:126)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:90)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:155)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

       

      12:14:58,989 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

       

      12:14:59,005 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

       

      12:14:59,005 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

       

      12:14:59,005 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)

       

      12:14:59,005 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626)

       

      12:14:59,020 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033)

       

      12:14:59,020 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.Thread.run(Thread.java:662)

       

       

      Results :

       

      Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

       

       

      [INFO] BUILD SUCCESS

       

       

       

      Best Regards

        • 1. Re: Arquillian joda time problem
          Bartosz Majsak Master

          Hi Sebastian,

           

          I would rather try to add joda-time as library to your test WAR archive. To nail down the problem you can always print out content of the archive using following snippet:

          System.out.println(archive.toString(true));

          • 2. Re: Arquillian joda time problem
            Manolescu Sebastian Newbie

            Thank you for the helpful reply

             

            For those with the same problem as mine 

             

            First look here: https://community.jboss.org/thread/197941 where Mr. Bartosz already solve the problem

             

             

            <dependency>

                        <groupId>org.jboss.shrinkwrap.resolver</groupId>

                        <artifactId>shrinkwrap-resolver-api-maven</artifactId>

                        <version>1.1.0-alpha-2</version>

                        <scope>test</scope>

                    </dependency>

                    <dependency>

                           <groupId>org.jboss.shrinkwrap.resolver</groupId>

                          <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

                         <version>1.1.0-alpha-2</version>

                          <scope>test</scope>

                    </dependency>

             

            Version1.1.0-alpha-5  didnt worked well for me.

             

            then in your tests add:

             

            import org.jboss.shrinkwrap.resolver.api.*;

             

             

            @Deployment

                   public static WebArchive createTestArchive() {

                   

                   final MavenDependencyResolver resolver = DependencyResolvers.use(MavenDependencyResolver.class).loadMetadataFromPom("pom.xml").goOffline();

                   WebArchive archive = ShrinkWrap.create(WebArchive.class, "test.war").addAsLibraries(resolver.artifact("joda-time:joda-time").resolveAsFiles()).addClasses(....).addPackeages(...,....)

                   return archive;

            }

              

             

            This works 100%

             

             

            Best Regards