Glassfish Error [closed]

asked 2016-11-30 07:07:17 +0800

Keenan gravatar image Keenan
1 1


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

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by cor3000
close date 2016-12-06 08:23:24

2 Answers

Sort by ยป oldest newest most voted

answered 2016-12-01 02:26:17 +0800

cor3000 gravatar image cor3000
4366 2 7
ZK Team

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

link publish delete flag offensive edit

answered 2016-12-06 06:42:08 +0800

Keenan gravatar image Keenan
1 1

The problem resolved itself after a restart.

Thank you for the assistance though.

link publish delete flag offensive edit

Question tools

1 follower



Asked: 2016-11-30 07:07:17 +0800

Seen: 19 times

Last updated: Dec 06 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More