Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JSPG0047E: Unable to locate tag library for uri http://java.sun.com/portlet

49 views
Skip to first unread message

j.oy...@us.ibm.com

unread,
Jun 25, 2008, 4:39:55 PM6/25/08
to
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.TagFileDependencyVisitor.visitCustomTagStart(TagFileDependencyVisitor.java:76)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:253)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:286)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(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().getAttributeNames();
 
while (enu.hasMoreElements()) {
String tempString=(String)enu.nextElement();
System.out.println( " +tempString);
}


Any suggestion would be appreciated

Jim Barnes

unread,
Jun 25, 2008, 9:13:26 PM6/25/08
to
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

nger...@googlemail.com

unread,
Jul 30, 2008, 4:41:25 AM7/30/08
to
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:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/
ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
RZSPortletProject</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<jsp-config>
<taglib id="PortletTLD">
<taglib-uri>http://java.sun.com/portlet</taglib-uri>
<taglib-location>/WEB-INF/tld/std-portlet.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>

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"%>
<portlet:defineObjects />
<p>My Text</p>

I wonder why this isn't working. Would be greate if someone could help
me.

0 new messages