File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1" Watch "Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1" New topic
Author

Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1

Jitendra Supe
Greenhorn

Joined: Aug 15, 2005
Posts: 5
Hi,

I am facing following issue while accessing Struts 1.3 application having Tag libraries, deploying on the Websphere Application Server 6.1.

While deploying the application I am not getting any error but when I try to access jsp file having tag libraries, I am getting following error:

[2/22/09 17:49:52:781 GMT] 00000030 WebApp E [Servlet Error]-[/testVWASSearchVehicle.jsp]: java.lang.NullPointerException
at org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1219)
at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226)
at com.ibm._jsp._testVWASSearchVehicle._jspx_meth_bean_message_0(_testVWASSearchVehicle.java:115)
at com.ibm._jsp._testVWASSearchVehicle._jspx_meth_html_html_0(_testVWASSearchVehicle.java:313)
at com.ibm._jsp._testVWASSearchVehicle._jspService(_testVWASSearchVehicle.java:91)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)

I have included taglibs as below:
=================================

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

I am using tags as below:
=========================

<!-- Get the tooltip messages to be displayed for the fields from the
Application.properties file. -->

<div id="myLable">VIN/Chassis</div>

<html:text property="vinChasis" title="Enter Vin/Chassis here" maxlength="17"/>
<!-- <td id="errorMessage"><html:errors property="vinChasis"/></td>-->

<div id="myLable">Registration Number</div>
<html:text property="regNumber" title="Enter Reg Num here" maxlength="8"/>
<html:errors property="regNumber" />

Tag Lib configuration in web.xml file is given as below:
========================================================

<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>

This code is working perfectly, when deployed on JBoss 4.2.2.
Please help me in resolving this issue.

Thanks
Jitendra
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you accessing the page via an action or attempting to get the JSP page directly?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error while invoking JSP page having Tag Libraries on Websphere Application Server 6.1