切换到STS 3.8.3时ClassNotFoundException

时间:2017-01-26 15:51:26

标签: java tomcat

这可能是一个简单的问题,但它让我困扰了两天。因此,我在本地ClassNotFoundException部署应用程序时收到Tomcat Server。我从Parent ProjectMaven Install得到的大部分罐子都成功了。类StartupListsner存在于我尝试部署的应用程序内,但由于某种原因,编译器无法找到它。我已经完成了清理项目,更新Maven项目,重新启动IDE并清理tomcat目录但没有运气。有没有其他方法可以摆脱这个错误?

堆栈追踪:

SEVERE: Error configuring application listener of class mig.esign.admin.action.listener.StartupListener
java.lang.ClassNotFoundException: mig.esign.admin.action.listener.StartupListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:532)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:514)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:142)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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)

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
Jan 26, 2017 7:42:36 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Jan 26, 2017 7:42:36 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jan 26, 2017 7:42:36 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/ESignatureAdmin] startup failed due to previous errors
Jan 26, 2017 7:42:36 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 26, 2017 7:42:36 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 26, 2017 7:42:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8765 ms

1 个答案:

答案 0 :(得分:-1)

您父母的pom.xmlpom.xml是否有以下依赖关系?

<dependency>
    <groupId>org.echocat.jomon</groupId>
    <artifactId>process</artifactId>
    <version>1.6.3</version>
</dependency>