14 Replies Latest reply on Nov 20, 2013 9:35 AM by Arun Gupta

    NoClassDefFoundError on WildFly beta2-snapshot for Batch tets

    Arun Gupta Newbie

      Creating a WAR file out of javaee7-samples/batch/batchlet-simple at master · arun-gupta/javaee7-samples · GitHub  and deploying on WildFly trunk seems to work fine. However running the same in remote Arquillian seems to throw the following error:

       

      15:55:43,561 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-1-thread-5) Failed: org.javaee7.batch.batchlet.simple.MyBatchletTest.testBatchletProcess: java.util.ServiceConfigurationError: javax.batch.operations.JobOperator: Provider org.jberet.operations.JobOperatorImpl could not be instantiated: java.lang.NoClassDefFoundError: Could not initialize class org.wildfly.jberet._private.WildFlyBatchMessages

      at java.util.ServiceLoader.fail(ServiceLoader.java:224) [rt.jar:1.7.0_45]

      at java.util.ServiceLoader.access$100(ServiceLoader.java:181) [rt.jar:1.7.0_45]

      at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377) [rt.jar:1.7.0_45]

      at java.util.ServiceLoader$1.next(ServiceLoader.java:445) [rt.jar:1.7.0_45]

      at javax.batch.runtime.BatchRuntime.getJobOperator(BatchRuntime.java:57) [jboss-batch-api_1.0_spec-1.0.0.Final.jar:1.0.0.Final]

      at org.javaee7.batch.batchlet.simple.MyBatchletTest.testBatchletProcess(MyBatchletTest.java:37) [classes:]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]

       

      Any idea ?

       

      Arun