0

Error configuring application listener of class [org.zkoss.zk.ui.http.HttpSessionListener] when updating zk version

asked 2024-03-28 15:32:55 +0800

LongCat gravatar image LongCat
1

Hi everyone,

I have a project using ZK 7.0.0 and I need to update it to current version 10.0.0. So I download ZK 10 and copy all library from dist/lib to my project library. But after I did this, I got an exception Error configuring application listener of class [org.zkoss.zk.ui.http.HttpSessionListener]. Im using Eclipse IDE and Tomcat 8.5 server.

The exception :

INFO: Starting Servlet engine: [Apache Tomcat/8.5.78] Mar 28, 2024 2:08:37 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [172] milliseconds. Mar 28, 2024 2:08:45 PM org.apache.jasper.servlet.TldScanner scanJars INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. Mar 28, 2024 2:08:45 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Mar 28, 2024 2:08:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class [org.zkoss.zk.ui.http.HttpSessionListener] java.lang.ClassNotFoundException: org.zkoss.zk.ui.http.HttpSessionListener at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1420) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1228) at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:533) at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:149) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4686) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) 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)

log4j:ERROR Could not find value for key log4j.appender.fileAppender log4j:ERROR Could not instantiate appender named "fileAppender". Mar 28, 2024 2:08:45 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Skipped installing application listeners due to previous error(s) Mar 28, 2024 2:08:45 PM org.apache.catalina.core.StandardContext startInternal SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file

I understand there could be a conflict on my jar version. But how can I find which library that has problems. Or am I missing some step on updating my zk version?

Thanks in advance.

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2024-03-28 15:32:55 +0800

Seen: 3 times

Last updated: Mar 28

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