This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Java Products and Servers and the fly likes Can't get Struts to work with Resin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Can Watch "Can New topic
Author

Can't get Struts to work with Resin

Jim Johnson
Greenhorn

Joined: Feb 26, 2003
Posts: 2
I'm using Struts 1.0.2 and Resin 2.1.6 and JDK
1.4.
I dropped the struts-example.war file into <resin>/webapps

This is the error message I get when I tried http://localhost:8080/struts-example:
500 Servlet Exception
java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo V
at com.caucho.jsp.Taglib.fillTag(Taglib.java:450)
at com.caucho.jsp.Taglib.fillTagLibraryInfo(Taglib.java:377)
at com.caucho.jsp.Taglib.<init>(Taglib.java:165)
at com.caucho.jsp.JspParser.processTaglib(JspParser.java:1796)
at com.caucho.jsp.JspParser.parseTaglibDirective(JspParser.java:1765)
at com.caucho.jsp.JspParser.parseDirective(JspParser.java:1435)
at com.caucho.jsp.JspParser.parseScriptlet(JspParser.java:1293)
at com.caucho.jsp.JspParser.parseNode(JspParser.java:540)
at com.caucho.jsp.JspParser.parseJsp(JspParser.java:453)
at com.caucho.jsp.JspParser.parse(JspParser.java:284)
at com.caucho.jsp.JspParser.parse(JspParser.java:232)
at com.caucho.jsp.JspManager.createPage(JspManager.java:175)
at com.caucho.jsp.PageManager.getPage(PageManager.java:346)
at com.caucho.jsp.PageManager.getPage(PageManager.java:201)
at com.caucho.jsp.QServlet.getPage(QServlet.java:220)
at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:129)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I tried it with Resin 2.1.7 and it worked. Are the sample apps that are included with Resin working?


Matthew Phillips
Jim Johnson
Greenhorn

Joined: Feb 26, 2003
Posts: 2
Yes, the sample apps that came with Resin work fine. My apps that use MySQL work fine also. I just can't get Struts to work? Am I missing something? I suspect it has to do with the Resin servlet package.
BTW: I can get Tomcat 4.0 and struts to work fine out of the box.
Originally posted by Matthew Phillips:
I tried it with Resin 2.1.7 and it worked. Are the sample apps that are included with Resin working?
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Check resin/lib to see if struts.jar is in there. If it is, delete it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't get Struts to work with Resin