Hi,
I am new to Portal Development, I am using RAD 6.0 and its integrated Server Websphere Application 6.0. when I create a PortletProject(without JSR 168) the code appears as given below :
View.jsp
<%@ page session="false" contentType="text/html" import="java.util.*, ibmportlet.*"%>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
<portletAPI:init/>
<%
IBMPortletPortletSessionBean sessionBean = (IBMPortletPortletSessionBean)portletRequest.getPortletSession().getAttribute(IBMPortletPortlet.SESSION_BEAN);
%>
<DIV style="margin: 6px">
<H3 style="margin-bottom: 3px">Welcome!</H3>
This is a sample <B>view mode</B> page. You have to edit this page to customize it for your own use.<BR>
The source file for this page is "/Web Content/ibmportlet/jsp/html/IBMPortletPortletView.jsp".
<H3 style="margin-bottom: 3px">Form sample</H3>
This is a sample form to test action event handling.
<DIV style="margin: 12px; margin-bottom: 36px">
<% /******** Start of sample code ********/ %>
<%
String formText = sessionBean.getFormText();
if( formText.length()>0 ) {
%>Order details for order id '<%=formText%>' should be displayed here.<%
}
%>
<FORM method="POST" action="<portletAPI:createURI><portletAPI:URIAction name='<%=IBMPortletPortlet.FORM_ACTION%>'/></portletAPI:createURI>">
<LABEL class="wpsLabelText" for="<portletAPI:encodeNamespace value='<%=IBMPortletPortlet.TEXT%>'/>">Enter order id:</LABEL><BR>
<INPUT class="wpsEditField" name="<portletAPI:encodeNamespace value='<%=IBMPortletPortlet.TEXT%>'/>" type="text"/>
<INPUT class="wpsButtonText" name="<portletAPI:encodeNamespace value='<%=IBMPortletPortlet.SUBMIT%>'/>" value="Submit" type="submit"/>
</FORM>
<% /******** End of sample code *********/ %>
</DIV>
</DIV>
when I Run this page it says
Error Message:JSPG0047E: Unable to locate tag library for uri /WEB-INF/tld/portlet.tld
there was no tld folder in WEB-INF so I explicitily created it and put portlet.tld in the same folder with the mapping in web.xml. But after that when I Run the page I get the error as shown below :
com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [/WEB-INF/tld/portlet.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class
http://com.ibm.wps.pe.pc.legacy.tags.ClientTag$TEI
2/17/06 16:11:50:233 IST 00000045 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadWebXmlMap jsp warning failed to load tld at [/WEB-INF/tld/portlet.tld]
2/17/06 16:11:50:249 IST 00000045 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadWebXmlMap jsp warning failed to load tld at [/WEB-INF/tld/portlet.tld]
2/17/06 16:11:50:905 IST 00000045 jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [/WEB-INF/tld/portlet.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class
http://com.ibm.wps.pe.pc.legacy.tags.ClientTag$TEI
2/17/06 16:11:50:936 IST 00000045 jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/tld/portlet.tld]
com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class
http://com.ibm.wps.pe.pc.legacy.tags.ClientTag$TEI
at com.ibm.ws.jsp.taglib.TldParser.parseTLD(TldParser.java:236)
at com.ibm.ws.jsp.taglib.TagLibraryCache.loadWebInfMap(TagLibraryCache.java:277)
at com.ibm.ws.jsp.taglib.TagLibraryCache.loadWebInfMap(TagLibraryCache.java:298)
at com.ibm.ws.jsp.taglib.TagLibraryCache.<init>(TagLibraryCache.java:91)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.<init>(JSPExtensionProcessor.java:143)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionFactory.createExtensionProcessor(JSPExtensionFactory.java:96)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1068)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:363)
at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
I am unable to locate jar file for com.ibm.wps.pe.pc.legacy.tags.ClientTag$TEI its not there in wp.api.pc.pe.legacy.jar.
Please help me out. I just want to create a simple portlet using Wizard
Thanks and Regards
Anamika