-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I have been running my application on Glassfish enterprise v2.1.1 for a while.
I am suddenly getting the following error. SEVERE: WebModule[/orm]PWC1220: Exception thrown by attributes event listener java.lang.NoClassDefFoundError: org/zkoss/util/resource/XMLResourcesLocator at org.zkoss.zk.ui.http.HttpSessionListener23.attributeRemoved(HttpSessionListener23.java:96) at org.apache.catalina.core.ApplicationContext.removeAttribute(ApplicationContext.java:884) at org.apache.catalina.core.ApplicationContext.clearAttributes(ApplicationContext.java:1034) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5540) at com.sun.enterprise.web.WebModule.stop(WebModule.java:376) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5391) at com.sun.enterprise.web.WebModule.start(WebModule.java:345) at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58) at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304) at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: org.zkoss.util.resource.XMLResourcesLocator at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1578) ... 15 more
I have not made any config changes to Glassfish itself, I have however made changes to my applications with regards to zk, I updated the zk .jar files in the pom.xml file. The problem persists even though I revert back to the old pom.xml
the class org.zkoss.util.resource.XMLResourcesLocator is part of the zcommon.jar with the given information all I can suggest for now is to check if this jar file is part of your dependencies (and check that it actually ends up in your war/ear file)
Besides that I can only try to help with additional information. - your pom.xml file - the ZK versions before and after your upgrade
Asked: 2016-11-30 07:07:17 +0800
Seen: 19 times
Last updated: Dec 06 '16