2015-06-04 60 views
0

上的Activiti的休息5.16.4我們得到以下錯誤,我們的舊的實例15.4正在啓動的啓動沒有問題:錯誤對Activiti的休息

SEVERE: Error configuring application listener of class org.activiti.rest.servlet.WebConfigurer 
java.lang.NoClassDefFoundError: javax/servlet/DispatcherType 
    at java.lang.Class.getDeclaredConstructors0(Native Method) 
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) 
    at java.lang.Class.getConstructor0(Class.java:2842) 
    at java.lang.Class.newInstance(Class.java:345) 
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4154) 
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) 
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) 
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) 
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) 
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) 
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) 
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) 
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) 
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) 
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) 
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) 
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) 
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) 
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) 
    at org.apache.catalina.core.StandardService.start(StandardService.java:525) 
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) 
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243) 
Caused by: java.lang.ClassNotFoundException: javax.servlet.DispatcherType 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) 
    ... 32 more 

我們使用Tomcat 6.0.39和JRE 1.7 .0_65-b32在我們的託管服務器上。

我們想念圖書館或有配置問題嗎?或者它與Spring 4有關?或者activiti 5.16與tomcat 6不兼容?

回答

1

DispatcherType是在Servlet規範3.0中引入的,就我而言。 如果你看看這裏的Tomcat版本支持表:http://tomcat.apache.org/whichversion.html

你會看到Tomcat 6支持servlet spec 2.5,所以這很可能是你的類未找到錯誤的原因。

升級到Tomcat 7,我估計你會變成金色的。

乾杯, Greg

+0

感謝您的比較矩陣。我們將聯繫我們的isp :) – benno