JFinal部署到tomcat 报错

18-Jan-2017 16:17:34.664 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processServletContainerInitializers Failed to process JAR found at URL [] for ServletContainerInitializers for context with name [{1}]

 java.io.IOException: java.lang.ClassCastException: Cannot cast org.apache.jasper.runtime.TldScanner to javax.servlet.ServletContainerInitializer

at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:185)

at org.apache.catalina.startup.WebappServiceLoader.load(WebappServiceLoader.java:151)

at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1597)

at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1125)

at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

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

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

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

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

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.ClassCastException: Cannot cast org.apache.jasper.runtime.TldScanner to javax.servlet.ServletContainerInitializer

at java.lang.Class.cast(Class.java:3369)

at org.apache.catalina.startup.WebappServiceLoader.loadServices(WebappServiceLoader.java:182)

... 15 more


评论区

绿色的小苹果

2017-01-18 16:55

软件攻城狮

2017-01-18 16:55

本地正常的程序导出war包部署tomcat失败???

kassadin

2017-01-19 19:30

1175238059

2017-01-23 14:56

@kassadin 项目部署到tomcat后运行报这个错

1175238059

2017-01-23 14:58

@软件攻城狮 导出war包部署到tomcat执行也报这个,项目在eclipse本地配置到tomcat执行也报这个

1175238059

2017-01-23 15:06

@绿色的小苹果 这个不太好用 ,不想用这个

软件攻城狮

2017-01-23 22:28

你有没有跟着官方文档做过demo?

fmpoffice

2018-02-27 09:24

解决了吗?是什么问题呢?

热门反馈

扫码入社