aspose file tools*
The moose likes Struts and the fly likes getting java.lang.NoSuchMethodError when attempting to run strut eg Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "getting java.lang.NoSuchMethodError when attempting to run strut eg" Watch "getting java.lang.NoSuchMethodError when attempting to run strut eg" New topic
Author

getting java.lang.NoSuchMethodError when attempting to run strut eg

john mattucci
Ranch Hand

Joined: Nov 03, 2000
Posts: 331
I have been trying to run some struts examples on Tomcat 5.0.16 and I keep getting the following error. What am I missing?
javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.(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.(Ljava/lang/String;ZLjava/lang/String;ZZ)V
org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572)
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432)
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:290)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204)
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.parse(ParserController.java:247)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
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:552)
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)
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Hmmmmmmmmmm....
I am using Tomcat 5.0 and it seems to work fine with Struts.
I wonder.
Try putting jsp_api.jar in your WEB-INF/lib directory.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
Hi,
Struts 1.1 will work in tomcat 5.0.x. I have tried also. Just put all the tag lib file under WEB-INF as usual. If you are using DispatchAction class to create your Action class, you might have been using different methods to handle different functions.If it is like that specify the method name in the form action and in the action mapping give the parameter tag also

try
all the best
poornima
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting java.lang.NoSuchMethodError when attempting to run strut eg