[wildfly-dev] NoClassDefFoundError for WildFlyBatchMessages

Arun Gupta arun.gupta at gmail.com
Mon Nov 18 18:09:37 EST 2013


This is all from CLI, no IDE.

Trying with a clean check out of the workspace.

On Tue, Nov 19, 2013 at 12:06 AM, James R. Perkins <jperkins at redhat.com> wrote:
> Ah, okay. Sometimes building from an IDE doesn't invoke the annotation
> processor which generates the classes for the logging interfaces. I rarely
> build from an IDE, but I think there is a way to enable annotation
> processing when it's building.
>
>
> On 11/18/2013 03:03 PM, Arun Gupta wrote:
>>
>> I checked out the workspace a few days ago, updated it a few mins ago
>> and built it again. And running the tests on that.
>>
>> On Mon, Nov 18, 2013 at 11:57 PM, James R. Perkins <jperkins at redhat.com>
>> wrote:
>>>
>>> That seems odd. Are you running this on Beta1 or was it built of the
>>> upstream?
>>>
>>>
>>> On 11/18/2013 02:46 PM, Arun Gupta wrote:
>>>>
>>>> Running a test from
>>>>
>>>>
>>>> https://github.com/arun-gupta/javaee7-samples/tree/master/batch/batchlet-simple
>>>> gives the following error:
>>>>
>>>>
>>>> 14:41:34,818 INFO [org.jboss.as.server] (management-handler-thread -
>>>> 1) JBAS018559: Deployed "f3b403ce-26a3-4f80-be51-8bb46dccc819.war"
>>>> (runtime-name : "f3b403ce-26a3-4f80-be51-8bb46dccc819.war")
>>>> 14:41:35,067 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner]
>>>> (pool-1-thread-1) 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:]
>>>>
>>>> The workspace was updated a few mins ago.
>>>>
>>>> Arun
>>>>
>>>>
>>> --
>>> James R. Perkins
>>> Red Hat JBoss Middleware
>>>
>>
>>
>
> --
> James R. Perkins
> Red Hat JBoss Middleware
>



-- 
http://blog.arungupta.me
http://twitter.com/arungupta


More information about the wildfly-dev mailing list