严重: 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个回答
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
展开全部
从你的这个出错信息来看是没有找到org.apache.struts2.dispathcher.filterdispatcher这个类,你仔细检查一下你的classpath下面是否包含struts2这个包
看一下
我的电脑--》属性--》
高级--》环境变量
里的catalina_home有没有配置错误
把路径写对
。应该是你的tom猫没配置对!
如果自己检测,在网页中127.0.0.1中可以看到tom猫的操作页面,就要看你eclipse
中是不是把tom猫配置对了
看一下
我的电脑--》属性--》
高级--》环境变量
里的catalina_home有没有配置错误
把路径写对
。应该是你的tom猫没配置对!
如果自己检测,在网页中127.0.0.1中可以看到tom猫的操作页面,就要看你eclipse
中是不是把tom猫配置对了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
关键看着句话:caused
by:
unable
to
load
configuration.
大概翻译成:错误是由不能识别配置造成的
可能是你配置有问题。
by:
unable
to
load
configuration.
大概翻译成:错误是由不能识别配置造成的
可能是你配置有问题。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不是要5个包么 ?都有么?有些jar包就是不行,换了试试
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
java -version看一下你JDK的版本
换个高版本的JDK看行不行
换个高版本的JDK看行不行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询