Meaningless Drivel is fun!*
The moose likes Struts and the fly likes New to Struts 2 and jsp's - doubt regarding uri Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New to Struts 2 and jsp Watch "New to Struts 2 and jsp New topic
Author

New to Struts 2 and jsp's - doubt regarding uri

namrata suri
Ranch Hand

Joined: Oct 22, 2009
Posts: 31
Hi,
I followed the following tutorial step by step and on running encountered the following error.

http://viralpatel.net/blogs/2008/12/tutorial-creating-struts-application-in-eclipse.html


org.apache.jasper.JasperException: The absolute uri: http://jakarta.apache.org/struts/tags-html cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Even in the file 'index.jsp' where the actual uri is used, there is an error message : Cannot find the tag library descriptor for "http://jakarta.apache.org/struts/tags-html"

I tried opening the url on the browser and could not do it. So i am guessing thats the problem. Any alternative url's that can be used.

Thank You.
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
Have you added the required struts jars to WEB-INF/lib?


OCJP 6 (93%)
namrata suri
Ranch Hand

Joined: Oct 22, 2009
Posts: 31
Yes I have.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Following a Struts 1 tutorial is a sub-optimal way to get started with Struts 2.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New to Struts 2 and jsp's - doubt regarding uri
 
Similar Threads
struts 1.2 problem
Sturts-taglib doubt
Error related to struts-html.tld and struts-bean.tld
Problem with taglib declaration.
What o put in URI to make taglibrary functionalities work