jsf 2 - JSF 2 OpenJPA 2 Glassfish 3.1 WEB9031 Error -
i got error according apache support issue relating glassfish rather openjpa:
java.lang.illegalstateexception: web9031: webappclassloader unable load resource [org.apache.openjpa.util.longid], because has not yet been started, or stopped the stacktrace is:
caused by: java.lang.illegalstateexception: web9031: webappclassloader unable load resource [org.apache.openjpa.util.longid], because has not yet been started, or stopped @ org.glassfish.web.loader.webappclassloader.loadclass(webappclassloader.java:1410) @ org.glassfish.web.loader.webappclassloader.loadclass(webappclassloader.java:1368) @ com.ckd.model.bookmodel.pcnewobjectidinstance(bookmodel.java) @ org.apache.openjpa.enhance.pcregistry.newobjectid(pcregistry.java:138) @ org.apache.openjpa.meta.metadatarepository.processregisteredclass(metadatarepository.java:1693) @ org.apache.openjpa.meta.metadatarepository.processregisteredclasses(metadatarepository.java:1643) ... 112 more has come across before , how resolve it? have been stuck on issue last several days.
another of post related issue can found here: jsf 2: h:link , getrowdata.
the above error relates problem openjpa enhancer. when execute sun's jdk openjpa's dynamic enhancer starts default. action, in turn, stuffs glassfish's classloader class - hence, web9031 error.
for experience same issue, simple workaround enhancement @ build time - did in ant org.apache.openjpa.ant.pcenhancertask - , add property persistence.xml shut off dynamic enhancer: <property name="openjpa.dynamicenhancementagent" value="false"/>.
also, wouldn't hurt throw in persistence.xml <property name="openjpa.runtimeunenhancedclasses" value="unsupported" />.
Comments
Post a Comment