facebook

"index_jsp.java" but not "index_jsp.class&quo

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

    xsun
    Member

    This time I added each jar file within the <jboss>lib directory. I am still getting the same error.

    —————————————————————————
    exception

    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:256)
    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:588)
    org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:435)
    org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:291)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:205)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
    org.apache.jasper.compiler.Parser.parse(Parser.java:171)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:155)
    org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:380)
    org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:417)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:515)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
    org.apache.jasper.compiler.Parser.parse(Parser.java:171)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:258)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:139)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    ———————————————————————————————————-

    “java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V”
    What is it telling me? Is it saying some tag is not supported, which can be caused by not having some jar file?
    Is there a way to debug this?

    Thanks,
    xsun

    #205895 Reply

    Riyad Kalla
    Member

    xsun,
    This seems to be a known problem with newer versions of JBoss, see: http://www.junlu.com/msg/12296.html

    Essentially it seems that the constructor you are trying to call that has the signature (String, String) is only available in JSP 2.0 spec, which is what you are developing with (jsp-api.jar). However, it seems when JBoss starts up, an older JAR files with the TagAttributeInfo class in it, is being added to the classpath prior to the jsp-api.jar file, so when your app tries to start, its finding the old version of the TagAttributeInfo class and throwing this exception.

    Per the link I sent, it said to search for, and remove any JARs that have the outdated version of that class in them. I would start looking at these two jars first as they seem the most likely to have this type of class in it:

    <classpathentry kind=”var” path=”JBOSS_ROOT/jboss-system.jar”/>
    <classpathentry kind=”var” path=”JBOSS_ROOT/jboss-common.jar”/>

    #205916 Reply

    xsun
    Member

    Thank you, Riyad, you just made my day! 😀

    The link you sent is very useful. I did a search for servlet.jar on my machine. It turns out there is a j2sdk1.4.1/jre/lib/ext/servlet.jar. That jar has TagAttributeInfo in it. So I downloaded j2sdk1.4.2, which doesn’t have servlet.jar in it. I pointed my MyEclipse JBoss3 setup to this newly downloaded jsdk. Now the problem is gone.

    This is wonderful, I can continue with my work now.

    Thanks,
    xsun

    #205921 Reply

    Riyad Kalla
    Member

    Hey that’s excellent news, I’m glad its working for you now!

    #261567 Reply

    Chandni
    Member

    Hi All, I’m using Tomcat 5 and j2sdk1.4.2. But even i get this error and it happens only at a particular click. Can anyone please help me.
    -Chandni

Viewing 5 posts - 16 through 20 (of 20 total)
Reply To: "index_jsp.java" but not "index_jsp.class&quo

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