Skip to main content

Eclipse:"Cannot find the tag library descriptor for http://jmaki/v1.0/jsp"

5 replies [Last post]
javamaniac2
Offline
Joined: 2005-04-29
Points: 0

Hello,

I installed jMaki plugin in Eclipse 3.3. I use Tomcat 5.5 as Web server.

I created a Dynamic Web Project with jMaki.
I created a index.jsp with the jMaki wizard as proposed by the tutorial : "https://ajax.dev.java.net/eclipse/index.html"

I ran the server and I see my page correctly.
I added a widget and the widget automatically add a taglib and Eclipse highlight this light and I get this error : "Cannot find the tag library descriptor for http://jmaki/v1.0/jsp"

If I run the page with this error I get this stacktrace:
org.apache.jasper.JasperException: The absolute uri: http://jmaki/v1.0/jsp 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:317)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

And this is my web.xml

<?xml version="1.0" encoding="UTF-8"?>

jMaki

jmaki-usecache
false

jMaki Servlet

jmaki.xhp.XmlHttpProxyServlet
1

jMaki Servlet
/xhp

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp

Have an idea?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
denma
Offline
Joined: 2009-03-06
Points: 0

I continue to get "Cannot find the tag library descriptor" errors when trying to compile with Eclipse.

Cannot find the tag library descriptor for "http://java.sun.com/jstl/core"

I am running JDK 1.4 / Tomcat 5.0 and Eclipse 3.4.2 EE, with Web Tools 2.2
I have made sure that the jstl.jar and the standard.jar are in the WEB-INF/lib. I even downloaded two new jars (JSTL 1.1) and Standard.jar and swapped them in.

These errors are at compile time. Not run time. Tomcat has nothing to do with it.

I have this exact configuration set up on my other machine and its working fine. The only difference is that this is Eclipse 3.4.2 EE version.

Any ideas how I can fix this?

deeprot
Offline
Joined: 2006-12-01
Points: 0

In case you use Eclipse Ganymede, do not forget to include the JSTL attribute in the DOCTYPE. I got the same error and this is my fix:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
[b]"http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"[/b]>

Btw, you must declare the taglib reference (for the "c" and "fmt" prefixes) and have the 2 jar files (standard.jar, jstl-1.1.2.jar)in the web-inf/lib folder also ...

Message was edited by: deeprot

carlavmott
Offline
Joined: 2005-02-10
Points: 0

Hi javamaniac2,

How did you create the project? Did you select jMaki Ajax on the Facets wizard? If not then you will not have the appropriate files copied. I will update the docs but I want to know what you did so I can verify the problem you are seeing.

Thanks,
Carla

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

Can you verify that the ajax-wrapper-comp-1.0.1.jar is in your WEB-INF/lib/ directory of the web application? This file relies on a JSON library org.json-0.0.1.jar which should also be available.

Normally Eclipse should copy these jars into your web application when you create a jMaki project.

If it is not you can get the jar files from the jmaki-java-1.0.1.zip distribution found on https://ajax.dev.java.net/downloads.html. The files are in the /jmaki/lib directory.

Let us know if this does not work.

-Greg

vikrantnawani2007
Offline
Joined: 2008-03-14
Points: 0

Hi Greg,

I've been experiencing the same problem with my jsp page. The error is :

org.apache.jasper.JasperException: The absolute uri: http://jmaki/v1.0/jsp cannot be resolved in either web.xml or the jar files deployed with this application

I do have ajax-wrapper-comp-1.0.0.jar and org.json-0.0.1.jar in my lib folder.
Still i get the same error. Do u have an another idea to sort this out.

- Vikrant