facebook

Problem with jsf project and tomcat 5.0.27

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #217546 Reply

    fit
    Member

    Hello,
    i have create a simple jsf project with myeclipse ide
    Version: 3.8.2
    Build id: 200409171200-3.8.2

    I deploy it to tomcat application server.

    If i try to execute it i have the problem under described

    Help !!!!

    Bye

    javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    
    root cause
    
    java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
        org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
        org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
        org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
        org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:179)
        org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
        org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
        org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
        org.apache.jasper.compiler.Parser.parse(Parser.java:126)
        org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
        org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
        org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
        org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:670)
        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:637)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    

    #217556 Reply

    Riyad Kalla
    Member

    You got something wrong with your jsp-api.jar file or the version of JSF you are using requires an older version of the TagAttributeInfo class.
    What version of JSF are you using? I would suggest redownloading Tomcat 5.0.28 and unzipping it to someplace temporary like C:\temp\tomcat5, then changing your Tomcat 5 connector and deploying you app to this and seeing if it works. Your Tomcat install may be mucked up.

    #217593 Reply

    fit
    Member

    I’m using 1.1 version of JSF.
    Jars and TLD in the project are put automatically from MyEclipse.

    I had try to reinstall tomcat 5.0.28 from scratch and redeploy the project but i don’t resolve the original problem.

    Bye

    #217594 Reply

    fit
    Member

    Correct the problem.
    For same reason i had used servlet.jar v2.3 . For jsf 1.0 all is ok.
    But MyEclipse 3.8.2 have JSF 1.1 jars and for this version is necessary servlet.jar V2.4.

    Thanks for all.

    Luca Becarelli

    #217598 Reply

    Riyad Kalla
    Member

    Luca,
    MyEclipse ships JSF 1.1 JARs (like you said), and Tomcat 5 supports JSP 2.0 and Servlet 2.4 spec, it works fine together. I completed a JSF tutorial for MyEclipse day before yesterday using MyEclipse 3.8.2 and Tomcat 5.0.28 and everything worked fine.

    I’m not sure why you were running into this problem.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Problem with jsf project and tomcat 5.0.27

You must be logged in to post in the forum log in