严重: Exception starting filter struts2
严重:Exceptionstartingfilters2java.lang.IllegalArgumentException:Wrongtypeatconstantpoo...
严重: Exception starting filter s2
java.lang.IllegalArgumentException: Wrong type at constant pool index
at sun.reflect.ConstantPool.getClassAt0(Native Method)
at sun.reflect.ConstantPool.getClassAt(ConstantPool.java:19)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:104)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:36)
at java.lang.reflect.Method.declaredAnnotations(Method.java:582)
at java.lang.reflect.Method.getAnnotation(Method.java:569)
at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:175)
at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:161)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)
at java.lang.Thread.run(Thread.java:566)
2009-8-5 14:42:19 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-8-5 14:42:19 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
<filter>
<filter-name>s2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>s2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我用的是 struts2-core-2.0.14.jar 已经在lib目录下了 展开
java.lang.IllegalArgumentException: Wrong type at constant pool index
at sun.reflect.ConstantPool.getClassAt0(Native Method)
at sun.reflect.ConstantPool.getClassAt(ConstantPool.java:19)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:104)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:36)
at java.lang.reflect.Method.declaredAnnotations(Method.java:582)
at java.lang.reflect.Method.getAnnotation(Method.java:569)
at java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:175)
at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:161)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1307)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1580)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1560)
at java.lang.Thread.run(Thread.java:566)
2009-8-5 14:42:19 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2009-8-5 14:42:19 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
<filter>
<filter-name>s2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>s2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
我用的是 struts2-core-2.0.14.jar 已经在lib目录下了 展开
7个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询