新手初建jfinal tomcat启动报错

九月 18, 2018 9:47:02 下午 org.apache.catalina.startup.ContextConfig processServletContainerInitializers
严重: Failed to process JAR found at URL [/swh_jf] 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

九月 18, 2018 9:47:02 下午 org.apache.catalina.startup.ContextConfig configureStart
严重: Marking this application unavailable due to previous error(s)
九月 18, 2018 9:47:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
九月 18, 2018 9:47:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/swh_jf] startup failed due to previous errors
九月 18, 2018 9:47:02 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-80"]
九月 18, 2018 9:47:03 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
九月 18, 2018 9:47:03 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 477 ms



求大佬解决!!感谢!!!

依赖用的

javax.servlet.jsp.jstl-1.2.0.v201105211821

jetty-server-8.1.8

jfinal-3.4-bin-with-src

org.apache.taglibs.standard.glassfish-1.2.0.v201112081803


评论区

npc_pocky

2018-09-18 21:53

是web项目 显示依赖冲突???找了好久没出来结果

天朝子民

2018-09-18 23:04

删掉jetty的jar

热门反馈

扫码入社