- This topic has 19 replies, 4 voices, and was last updated 18 years ago by Chandni.
-
AuthorPosts
-
xsunMemberThis time I added each jar file within the <jboss>lib directory. I am still getting the same error.
—————————————————————————
exceptionjavax.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
Riyad KallaMemberxsun,
This seems to be a known problem with newer versions of JBoss, see: http://www.junlu.com/msg/12296.htmlEssentially 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”/>
xsunMemberThank 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
Riyad KallaMemberHey that’s excellent news, I’m glad its working for you now!
ChandniMemberHi 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 -
AuthorPosts