3 Replies Latest reply on Sep 27, 2007 1:32 PM by shiva

    JSTL Exception runnint Tomcat 5.5 with Jboss 4.0.2

    Flush Newbie

      Hi, I'm running Windows XP SP2, With JDK 1.5.0_03, Jboss 4.0.2 (binaries) downloaded from SF.

      I've got the following JSP page:

      
      <?xml version="1.0" encoding="iso-8859-1"?>
      <%@ taglib prefix="jemos" uri="jemosStats" %>
      <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
      
      
      
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html>
       ....
       blabla
       </html>
      


      I deploy the above JSP in a WAR file. The deployment goes fine, but when I try to access the page I get the following exception:


      org.apache.jasper.JasperException: Unable to read TLD "META-INF/c-1_0-rt.tld" from JAR file "file:/D:/OPENSOURCES/jboss-4.0.2/server/ports-02/./tmp/deploy/tmp47906jemossite-ear-1.0.2.ear-contents/internal-1.0.2-exp.war/WEB-INF/lib/standard-1.1.2.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
      at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:179)
      at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:181)
      at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
      at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
      at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
      at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
      at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
      at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Unknown Source)



      I noticed that this is a problem only with Tomcat 5.5 (5.5 sar). Infact, I replaced the 5.5 sar with 5.0 and the page works fine.

      The WAR is deployed with the latest version of jstl and standard jars and it works perfectly fine with Tomcat 5.

      Did anyone incurred in the same problem?



        • 1. Re: JSTL Exception runnint Tomcat 5.5 with Jboss 4.0.2
          Francesco Benvegna Newbie

          I have same error on JBoss 4.0.2 with different library

          org.apache.jasper.JasperException: Unable to read TLD "META-INF/tlds/struts-tiles.tld" from JAR file "file:/D:/jboss-4.0.2/server/default/./deploy/e3.war/WEB-INF/lib/struts.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei
          at ..............

          • 2. Re: JSTL Exception runnint Tomcat 5.5 with Jboss 4.0.2
            Francesco Benvegna Newbie

            My problem was class loaders and MyFaces.
            I run JBoss in compliant J2EE 1.4 mode for many project and read MyFaces FAQ about Tomcat 5.5.

            It's OK.

            • 3. Re: JSTL Exception runnint Tomcat 5.5 with Jboss 4.0.2
              shiva Newbie

              I am getting problem with org.apache.struts.taglib.tiles.UseAttributeTei.
              Does anyone know the solution.
              java.lang.ClassCastException: org.apache.struts.taglib.tiles.UseAttributeTei
              at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
              at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
              at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162)
              at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
              at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
              at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
              at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
              at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
              at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
              at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
              at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
              13:00:05,113 WARN [FormAuthenticator] Unexpected error forwarding to login page
              org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttribu
              at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
              at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
              at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:279)
              at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:422)
              at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
              at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:162)
              at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
              at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
              at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
              at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
              at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
              at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
              at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
              at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)