Tag:java
Article From:https://segmentfault.com/q/1010000012145325
Question:

WEB.xmlThe configuration is as follows

<display-name>eking-framework</display-name>
    <listener>        <listenerclass>org.eking.framework.web.system.listener.SysInitListener</listener-class>
    </listener>

The listener is also available in the project, but Tomcat is wrong.

Serious: Error configuring application listener of class org.eking.framework.web.system.listener.SysInitLIstenerJava.lang.ClassNotFoundException: org.eking.framework.web.system.listener.SysInitListenerAt org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase.java:1339)At org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase.java:1167)At org.apache.catalina.core.DefaultInstanceManager.loadClass (DefaultInstanceManager.java:509)AtOrg.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged (DefaultInstanceManager.jav)A:490)At org.apache.catalina.core.DefaultInstanceManager.newInstance (DefaultInstanceManager.jav)A:118)At org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java:4775)At org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5314)At org.apacHe.catalina.util.LifecycleBase.start (LifecycleBase.java:145)At org.apache.catalina.core.ContainErBase$StartChild.call (ContainerBase.java:1408)At org.apache.catalina.core.ContainerBase$StartCHild.call (ContainerBase.java:1398)At java.util.concurrent.FutureTask.run (FutureTask.java:262)At java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)At java.utIl.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)At java.lang.Thread.run(Thread.java:745)

Ask the great God to help solve the next ~

Answer 0:

What kind of IDE do you use? I had a similar situation before because ide chose the wrong installation when eclipse chose Java instead of Javaee.

Answer 1:

When compiled, did the listener class compile to the build path?

Leave a Reply

Your email address will not be published. Required fields are marked *