aspose file tools*
The moose likes Struts and the fly likes struts exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts exception" Watch "struts exception" New topic
Author

struts exception

hesham katon
Ranch Hand

Joined: Dec 18, 2002
Posts: 82
Hello All,
I can't run any simple struts application .
I am working with : Struts1.1 , Jdk1.4.2 , & Tomcat 5.0
I try to run a siple struts application (Hello world) or (struts-blank)
but any test return this exception , and I don't know what should I do
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
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:460)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:525)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1616)
org.apache.jasper.compiler.Parser.parse(Parser.java:173)
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:243)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
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)

I wish any one can help me


Hesham Katon<br />SCJP 1.2<br />SCWCD 1.4<br />Better to light a candle than to curse the darkness
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Yikes. Did you try Tomcat 4.1?
Also try running this with Resin. I find that Resin gives helpful error messages. I use it for development even when I am deploying to other application servers (especially when things go wrong).
It looks like you have the wrong version of some Jar file. Make sure you are not deploying an older version of j2ee.jar file to Tomcat 5.0. In fact, make sure you are not deploying j2ee.jar to Tomcat at all.
I run Struts with Tomcat 5.0 all the time.


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,
You can run struts 1.1 in tomcat 5.0.x version . It doesnt have any problem. First you check the action specified on your JSP, Correponding mapping in the configuration file and action class.
path you are giving in your configuration file should match with what you are specifiying in your JSP as form action (action="/path").
And if you have more than one method in your action class you should specify related method in your jsp along with your form action and in the action mapping you should specify the parameter attribute of the action mapping.
The error what you have given always get when the method is not matching .
If you have only execute()method only then no need to specify the method name in the form action of the JSP.
I dont know this will solve your problem .After checking all these also if it is not working please post your JSP, Action mapping in the configuration and your action class
. It will be helpful to solve the problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts exception