JSPG0047E: Unable to locate tag library for uri - Websphere
This is a discussion on JSPG0047E: Unable to locate tag library for uri - Websphere ; I am trying to run an application on websphere Portal 6.0 whenever i load the page i always get this exception
[6/25/08 16:25:52:130 EDT] 00000079 WebApp E SRVE0026E: [Servlet Error]-[JSPG0047E: Unable to locate tag library for uri http: //java.sun.com/portlet ]: ...
-
JSPG0047E: Unable to locate tag library for uri
I am trying to run an application on websphere Portal 6.0 whenever i load the page i always get this exception
[6/25/08 16:25:52:130 EDT] 00000079 WebApp E SRVE0026E: [Servlet Error]-[JSPG0047E: Unable to locate tag library for uri http: //java.sun.com/portlet ]: com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate tag library for uri http://java.sun.com/portlet
at com.ibm.ws.jsp.translator.visitor.tagfiledep.TagFi leDependencyVisitor.visitCustomTagStart(TagFileDep endencyVisitor.java:76)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.proce ssJspElement(JspVisitor.java:253)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.proce ssChildren(JspVisitor.java:286)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.proce ssJspElement(JspVisitor.java:125)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit (JspVisitor.java:110)
And this is the Code that is contained in the JSP
%@page language= "java" contentType= "text/html; charset=ISO-8859-1"
pageEncoding= "ISO-8859-1" session= "false"
%@taglib uri= "http://java.sun.com/portlet" prefix= "portlet"
%@ page import= "java.util.Enumeration"
%
Enumeration enu=renderRequest.getPortletSession().getAttribute Names();
while (enu.hasMoreElements()) {
String tempString=(String)enu.nextElement();
System.out.println( " +tempString);
}
Any suggestion would be appreciated
-
Re: JSPG0047E: Unable to locate tag library for uri
is this taglib defined in your web.xml?
IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0
IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0
The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM
-
Re: JSPG0047E: Unable to locate tag library for uri
Hi
I get the same error, using the newes version of IBM RAD. Server is
WebSphere Application Server v6.0
I started from scratch creating a Struts Portlet-Project. Did nothing
except creating a new .jsp with autogenerated code.
WEB.xml looks like this:
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
RZSPortletProject
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
http://java.sun.com/portlet
/WEB-INF/tld/std-portlet.tld
and my jsp:
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
My Text
I wonder why this isn't working. Would be greate if someone could help
me.