`
codermouse
  • 浏览: 50643 次
  • 性别: Icon_minigender_1
  • 来自: 西柏利亚
社区版块
存档分类
最新评论

struts - Failed to load or instantiate TagExtraInfo

阅读更多
由于工作刚接触STRUTS(以前一直用JSF)。今天在搭建环境的时候从同事那边拷过来的工程。用到我的环境中,访问工程页面的时候报异常。
我的环境:myeclipse 8.5 + tomcat 6.0
异常如下:

严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /index.jsp(2,0) Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.bean.CookieTei
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:345)
at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:378)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:486)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
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.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ylsw.commons.web.EncodingFilter.doFilter(EncodingFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.chinaums.xm.filter.SessionVerifyFilter.doFilter(SessionVerifyFilter.java:105)
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.core.StandardHostValve.invoke(StandardHostValve.java:128)
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:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

从网上搜资料,发现解决的办法很多,有的说删除工程web-inf/lib下的jsp-api.jar,servlet-api.jar;有的说拷贝struts中的所有jar文件到工程的
web-inf/lib目录下;有的说是Jar包冲突(个人觉得这种的可能性比较大)。
这些方法我都一一试过了,可是还是一样的报异常。头疼的我啊,那个难受啊。
最后实在没法子了。来了个损招,把tomcat6换成了tomcat5.结果居然生效可以了。可以正常访问了!
这里贴出来,只是给自己提个醒,具体的原因我还是不知道,留待后续在研究。
也给对遇到这种问题的同志们提供一个解决方法建议,如果删除JAR包和添加JAR包都解决不了的话。不妨试试这个。
分享到:
评论

相关推荐

    解决MyEclipse下开发Struts异常:org.apache.struts.taglib.bean.CookieTei.doc 下载

    在本篇文章中,我们将深入探讨如何解决在MyEclipse环境下开发Struts应用时遇到的一个常见问题:“org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib...

    fabric网络踩坑记录

    {“success”:false,“message”:“Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid ...

    Learning Word Vectors for Sentiment Analysis

    We instantiate the model to utilize the document-level sentiment polarity annotations present in many online documents (e.g. star ratings). We evaluate the model using small, widely used sentiment and...

    yamaha-yxc-nodejs:适用于MusicCast的Yamaha扩展控制NodeJS库

    安装npm安装yamaha-yxc-nodejs先决条件要启动yamaha,必须启用网络待机方法var YamahaYXC = require ( 'yamaha-yxc-nodejs' )//------------Instantiate -------------------var yamaha = new YamahaYXC ( "192.168....

    yii2-deep-instantiate

    composer require bizley/deep-instantiate:^1.0 用法 直接-只需调用new \Bizley\DeepInstantiate\Container() 。全局-设置\Yii::$container = new \Bizley\DeepInstantiate\Container();在您的输入脚本中。 增强...

    burpsuite_v1.01

    On startup, burp searches its classpath for a class called BurpExtender, and attempts to dynamically load and instantiate this class. The IBurpExtender methods implemented will then be dynamically ...

    spring-amqp-java-8:在 Java 8 上运行的示例项目

    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.core.Queue]: Factory method 'clientQueue' threw exception; nested exception is org....

    MediaExtractor抽取视频->MediaMuxer产生视频文件

    在Android平台上,多媒体处理是应用开发中的重要组成部分。MediaExtractor和MediaMuxer是两个核心组件,用于处理和合成多媒体数据。本篇文章将深入探讨如何使用MediaExtractor从视频流中抽取数据,然后利用...

    api-client-js:drush.ioJavaScript API客户端

    // Instantiate the API client using an API token from an environment variable. var DrushIOClient = require ( '@drush-io/api-client' ) , client = new DrushIOClient ( process . env . DRUSHIO_API_TOKEN ...

    copy-github-labels:轻松将标签从一个GitHub存储库复制到另一个

    // Instantiate var copyGitHubLabels = require ( 'copy-github-labels' ) ( ) ; // Optionally use credentials copyGitHubLabels . authenticate ( { token : 'your-github-token' } ) ; // Copy labels from ...

    cookie-banner:欧盟Cookie政策的jQuery解决方案

    //instantiate cookie var cookieBanner = new namespace . CookieBanner ( { //configure options here - see below duration : 28 , } ) ; //when the close element of the cookie banner is clicke

    unity液体系统Obi Fluid 3.2.zip

    Fluids react to each other, can affect and be affected by rigid bodies (even make them float or sink!), and are capable of sticking to surfaces. Features: - Custom emitter shapes. - Two-way ...

    Unity3D入门 :Prefabs(预设)与 Instantiate(实例化)

    在Unity3D游戏开发中,Prefabs(预设)和Instantiate(实例化)是两个非常重要的概念,它们是构建游戏对象和动态管理游戏世界的基石。本文将深入探讨这两个概念,帮助初学者理解并掌握它们在实际项目中的应用。 ...

    解决SpringDataJPA报错:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null w

    问题描述 用SpringBoot + Spring Data JPA操作数据库 项目启动的时候 报了一个错 SpringBoot的版本是2.2.6.RELEASE org.springframework.beans.factory.BeanCreationException: Error creating bean with name '...

    Unity3D教程:Prefabs与Instantiate1

    Unity3D Prefabs 与 Instantiate 教程 Unity 3D 中的 Prefabs 是一种资源类型,可以被重复使用的游戏对象。它可以被置入多个场景中,又或者能够在一个场景中被多次置入。当你在一个场景中增加一个 Prefabs,你就...

    rgb2dvi.rar

    -- "MMCM" or "PLL" to instantiate, if kGenerateSerialClk true kClkRange : natural := 1; -- MULT_F = kClkRange*5 (choose >=120MHz=1, >=60MHz=2, >=40MHz=3) kRstActiveHigh : boolean := true); --...

    Unity Free FootStep System

    Features: - Quickly set up footstep for you character/creatures/animals - Play different audioclips based on the material/texture - Works on Terrains or Meshes - Instantiate Particles or leave step ...

    Unity Footstep System

    Advanced Footstep System for Humanoids or Generic models. Features: - Quickly set up footstep for you character/creatures/animals ...- Instantiate Particles or leave step marks on the ground.

    Obi Fluid 3.2

    Fluids react to each other, can affect and be affected by rigid bodies (even make them float or sink!), and are capable of sticking to surfaces. Please note that fluid simulation is a very intensive ...

Global site tag (gtag.js) - Google Analytics