Tuesday, 15 January 2013

java - Google App Engine - NoClassDefFoundError: Could not initialize class org.jboss.errai.jaxrs.ErraiProvider -



java - Google App Engine - NoClassDefFoundError: Could not initialize class org.jboss.errai.jaxrs.ErraiProvider -

when checked gae logs google console can see error below. app works find gwt dev mode , when deployed in localhost, curious issue causing this:

uncaught exception servlet java.lang.noclassdeffounderror: not initialize class org.jboss.errai.jaxrs.erraiprovider @ com.google.appengine.runtime.request.process-0c118cfa1dca4123(request.java) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:33) @ org.jboss.resteasy.core.constructorinjectorimpl.construct(constructorinjectorimpl.java:132) @ org.jboss.resteasy.spi.resteasyproviderfactory.createproviderinstance(resteasyproviderfactory.java:1801) @ org.jboss.resteasy.spi.resteasyproviderfactory.addmessagebodyreader(resteasyproviderfactory.java:681) @ org.jboss.resteasy.spi.resteasyproviderfactory.registerprovider(resteasyproviderfactory.java:1128) @ org.jboss.resteasy.spi.resteasyproviderfactory.registerprovider(resteasyproviderfactory.java:1085) @ org.jboss.resteasy.spi.resteasyproviderfactory.registerprovider(resteasyproviderfactory.java:1029) @ org.jboss.resteasy.spi.resteasydeployment.registerprovider(resteasydeployment.java:508) @ org.jboss.resteasy.spi.resteasydeployment.registration(resteasydeployment.java:316) @ org.jboss.resteasy.spi.resteasydeployment.start(resteasydeployment.java:226) @ org.jboss.resteasy.plugins.server.servlet.resteasybootstrap.contextinitialized(resteasybootstrap.java:28) @

my config here: https://community.jboss.org/thread/232585

and pom.xml have this:

<dependency> <groupid>org.jboss.errai</groupid> <artifactid>errai-jaxrs-provider</artifactid> <version>${version.errai}</version> </dependency>

you error because did not include required jar /war/web-inf/lib/ folder. it's not plenty add together classpath.

if utilize eclipse, should see warning in problems tab resource beingness not available on server.

java google-app-engine maven gwt errai

No comments:

Post a Comment