开发者

解决Tomcat启动报异常java.lang.ClassNotFoundException问题

开发者 https://www.devze.com 2023-01-09 10:45 出处:网络 作者: yongfeng.
目录Tomcat启动报异常Java.lang.ClassNotFoupythonndException解决方法总结Tomcat启动报异常java.lang.ClassNotFoundException
目录
  • Tomcat启动报异常Java.lang.ClassNotFoupythonndException
  • 解决方法
  • 总结

Tomcat启动报异常java.lang.ClassNotFoundException

Tomcat启动报异常:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener的处理

警告: Name = mysqlDataSource Property maxActive is not used in DBCP2, use maxTotal instead. maxTotal default value is 8. You have set value of "100" for "maxActive" property, which is being ignored.

六月 21, 2017 1:31:45 下午 org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory getObjectInstance

警告: Name = mysqlDataSource Property maxWait is not used in DBCP2 , use maxWaitMillis instead. maxWaitMillis default value is -1. You have set value of "10000" for "maxWait" property, which is being ignored.

六月 21, 2017 1:31:45 下午 org.apache.catalina.core.StandardContext listenerStart

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)

    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)

    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:518)

    at org.apache.catalina.core.Default开发者_开发培训InstanceMana编程客栈ger.loadClassMaybePrivileged(DefaultInstanceManager.java:499)

    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4764)

    at org.apache.catalina.core.StandardContext.startInternal(StanpythondardContext.java:5303)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)

    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)

    at java.util.concurrent.FutureTask.run(FutureTask.java:262)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

&nbs编程客栈p;   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(TheUcxtCbIJfread.java:745)

是没有导入maven依赖jar包。

解决方法

项目--》右键--》properties--》Deployment Assembly--》Add--》...

解决Tomcat启动报异常java.lang.ClassNotFoundException问题

解决Tomcat启动报异常java.lang.ClassNotFoundException问题

点击完成重新启动Tomcat即可

总结

以上为个人经验,希望能给大家一个参考,也希望大家多多支持我们。

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号