activiti-5.16.4 ---activiti-5.17 暂不支持servlet 2.5 ;tomcat6

原创 2015年03月05日 14:40:54

刚想研究下 activiti 5.17,在tomcat6上部署activiti-explorer就报了如下错误:

严重: Error configuring application listener of class org.activiti.explorer.servlet.WebConfigurer
java.lang.NoClassDefFoundError: javax/servlet/ServletRegistration$Dynamic
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
	at java.lang.Class.getDeclaredMethods(Class.java:1793)
	at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:226)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4157)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:802)
	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.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	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:1068)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060)
	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:759)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRegistration$Dynamic
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	... 28 more
2015-3-5 13:56:20 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2015-3-5 13:56:21 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2015-3-5 13:56:21 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
 

百度找不到问题,最后google到这个网址:forums.activiti.org/content/activiti-explorer-5164-deployment-weblogic-java-6

看了主要意思是:

activiti-5.16.4 ---activiti-5.17 改为需要 Servlet 3.0 ;但是tomcat 6 是基于 servlet 2.5的。现在还没有补丁包出来。

所以只好使用5.16版本研究了。

Activiti Explorer 5.16.4 deployment to Weblogic Java 6

I ran into that very same problem. As far as i can see, this is because activity now requires Servlet 3.0. (Please see Stacktrace below) Tomcat 6 is Servlet 2.5 only. The new WebConfigurer-class uses ServletRegistration.Dynamic, which is not available in Servlet-API 2.5. I would have expected this to be clearly documented. Even worse: activity installation guide is referring to Tomcat 6 and requires quite a bit of changes for Tomcat 7. An installtion guide that can not possibly work really does give me second thougths about using activity.

SCHWERWIEGEND: Error configuring application listener of class org.activiti.explorer.servlet.WebConfigurer
java.lang.NoClassDefFoundError: javax/servlet/ServletRegistration$Dynamic
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2539)
at java.lang.Class.getDeclaredMethods(Class.java:1860)
at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:226)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4153)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:193)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRegistration$Dynamic
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 27 more



activiti-5.16.4 ---activiti-5.17 暂不支持servlet 2.5 ;tomcat6

刚想研究下 activiti 5.17,在tomcat6上部署activiti-explorer 就报了如下错误:严重: Error configuring application listener ...
  • zhaifengmin
  • zhaifengmin
  • 2015年03月05日 14:40
  • 3696

activiti-5.17 暂不支持servlet 2.5即tomcat6 .

1、今天开始学习activiti,网上下载最新版本activiti-5.17; 2、搭建tomcat环境,然后将activiti-5.17中wars文件夹下activiti-explorer.war...
  • liubowin
  • liubowin
  • 2015年05月26日 11:54
  • 791

Tomcat的版本、Servlet/JSP版本、JavaEE版本、JavaSE版本 四者之间的对应关系

首先JavaSE、JavaEE都是SUN公司自己定义的官方标准,Servlet/JSP是有自己的版本的,每次版本的升级都会带啦重大的更新,而Tomcat则是第三方的实现,由于它自身就是使用Java开发...
  • KevinwuwenboA
  • KevinwuwenboA
  • 2017年02月13日 15:47
  • 836

【servlet】servlet-api-2.5 温故知新

一 .  Servlet overview                                                                               ...
  • lihuapiao
  • lihuapiao
  • 2016年12月23日 10:50
  • 898

SpringMVC(2.5)_使用

SpringMVC(2.5)_使用 1.@RequestMapping  用法  SpringMVC中,@RequestMapping用来处理请求,比如XXX.do   ...
  • fishineye
  • fishineye
  • 2012年07月20日 18:49
  • 2244

servlet 2.5的web.xml

17 March 2007 sun从来不把servlet各个版本的web.xml的规格公布一下,即使上网查找,也很难发现。倒是跟随支援的servlet容器会发布一些范例程序,好运的话,里面将会有...
  • z69183787
  • z69183787
  • 2014年04月17日 12:53
  • 5414

linux服务器安装tomcat6实现支持servlet

怡然之乐 是求知欲和热忱令你为人瞩目并让你的生活多姿多彩 Linux|CentOS+Nginx+Apache+MySQL+PHP+Tomcat的配置教程,完美支持PHP、JAVA Posted...
  • u010752082
  • u010752082
  • 2016年04月03日 13:45
  • 657

Servlet2.5和 3.0区别(Servlet 3.0 新特性详解)

Servlet 3.0 新特性概述 Servlet 3.0 作为 Java EE 6 规范体系中一员,随着 Java EE 6 规范一起发布。该版本在前一版本(Servlet 2.5)的基础上提...
  • fuxiaohui
  • fuxiaohui
  • 2017年05月26日 02:14
  • 3454

Servlet2.5 规范 学习笔记(续一)

总结时间:2009-03-13  1     javax.servlet 包1.1      接口     该包下面一共有14个接口对象,11个类(其中有两个为异常处理类ServletExceptio...
  • jianglike18
  • jianglike18
  • 2009年03月14日 21:23
  • 1587

可关注外围物料

可关注外围物料 Wifi,蓝牙,FM: BC6888,CSR蓝牙芯片 RDA5802,FM KT0812g, KT,北京昆腾微电子 BCM4330,博通,集成Wifi,蓝牙4.0,FM R...
  • netman0000
  • netman0000
  • 2013年02月27日 18:05
  • 436
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:activiti-5.16.4 ---activiti-5.17 暂不支持servlet 2.5 ;tomcat6
举报原因:
原因补充:

(最多只允许输入30个字)