File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes No tag library could be found with this URI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "No tag library could be found with this URI" Watch "No tag library could be found with this URI" New topic

No tag library could be found with this URI

Indu Sekhar

Joined: Dec 08, 2009
Posts: 2
Hello Friends,
I am using JSF for my project and I am still getting familiar with it. Meanwhile I am getting the following error in one of the examples [I am trying.
I have searched for solutions in google but surprisingly there were only questions but no answers.
I would really appreciate if someone takes time and shares the solution so not only me but many others would benefit from it.
Environment details:
Version: 3.4.2
Server: BEA Weblogic Server v10.0
Java version : JDK150_11
Maven : 2.0.7

Here is the Error:

javax.faces.FacesException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /pages/inputname.jsp
inputname.jsp:3:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib uri="" prefix="f"%>

at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
at org.apache.myfaces.lifecycle.LifecycleImpl.render(
at javax.faces.webapp.FacesServlet.service(
Truncated. see log file for complete stacktrace
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /pages/inputname.jsp

These are the following Jars I am using:

and some commons...*.jar...

I have tried few combinations of the version of the above jars too.
I am not using a weblogic.xml file.

The web.xml file is:

?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="" xmlns:xsi="" xsi:schemaLocation="" id="WebApp_ID">




<!-- Faces Servlet -->
<servlet-name>Faces Servlet</servlet-name>

<!-- Faces Servlet Mapping -->
<servlet-name>Faces Servlet</servlet-name>


I sincerely appreciate someone sharing their expertise on this.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Welcome to the JavaRanch, Indu. Your posting was colorful, but we have a "code" button on the editor that will wrap tags around your code samples and keep them from getting reformatted.

The URI in question should have been resolved in the faces-api.jar. I don't think the MyFaces-api.jar is the same thing, since the JSF faces-api is part of the Sun specs, not a per-vendor thing. So you may need to add that jar to your WAR's WEB-INF/lib collection.

An IDE is no substitute for an Intelligent Developer.
Indu Sekhar

Joined: Dec 08, 2009
Posts: 2
Thank you for the response.
I will keep the code button in mind for the new posts I would be doing.

You solution made me think and try few things.
Meanwhile I copied a sample project from my friend and it works great. The sample project is using the myfaces-api.jar and myfaces-impl.jar
I see everything is same with respect to my project and sample project and am I still getting the error. So I am not sure why mine isn't working. I have pretty much all the jars he is having...

I agree. Here's the link:
subject: No tag library could be found with this URI
It's not a secret anymore!