rmvprasad
asked on
jsp loading error
I am using was 6.0 as the applicationb server. I wrote an action class , action form, action mapping and a jsp file. As I try to deploy the jsp file I am getting blank screen. In the logs I am getting the following errors.
logParseErrorMessage Failed to parse Tag Library [/WEB-INF/struts.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib. EnumerateT ei]
loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts.tld]
The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib. EnumerateT ei]
org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib. EnumerateT ei]
logParseErrorMessage Failed to parse Tag Library [/WEB-INF/struts.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.
loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts.tld]
The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.
org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.
ASKER
JSP PAGE
<%@ taglib uri="/WEB-INF/struts-bean. tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html. tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic .tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Marsh | Edit Invoice Item</title>
<link href='../styles/marsh_glob al_styles. css' rel="styleSheet" type="text/css" />
<link href='../styles/popcalenda r.css' rel="styleSheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../styles/billingPol icyStyles. css" />
<link rel="stylesheet" type="text/css" href="../styles/button_sty les.css" />
<script type="text/javascript" src="../scripts/popcalenda r.js"></sc ript>
<script type="text/javascript" src="../scripts/global.js" ></script>
<script type="text/javascript" src="../scripts/prototype. js"></scri pt>
</head>
<body>
<!-- header -->
<div id="marshHeaderBackgroundP opup">
<img src="../images/marsh_logo. gif" alt="Marsh" id="MarshLogo" />
<div id="marshApplicationSiteNa me">Placem ent & Policy</div>
</div>
<!-- /header -->
<!-- MAIN CONTENT START -->
<div id="mainContentNoMin">
<p class="t12">Edit Invoice Item </p>
<form name="this form">
<table border="0" cellspacing="0" cellpadding="0" class="marginTop10px">
<tr>
<td class="labelCol">Class Code/Description</td>
<td class="valueCol">250 - General Liability</td>
</tr>
<tr>
<td class="labelCol">Policy Number<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><input name="text3" type="text" class="inputBoxes" value="RG2-631-004321036" size="30" /></td>
</tr>
<tr>
<td class="labelCol">Policy Inception Date</td>
<td class="valueCol">01 May 2006 </td>
</tr>
<tr>
<td class="labelCol">Billing/E ndorsement Effective Date<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><input name="endorsementDate" type="text" class="inputBoxes" value="01 May 2006" size="15" />
<img src="../images/icon_calend ar_select. gif" alt="Calendar" class="calendarIcon" onclick='popUpCalendar(thi s, document.forms[0].endorsem entDate, "dd mmm yyyy")' /></td>
</tr>
<tr>
<td class="labelCol">Issuing Paper </td>
<td class="valueCol">Liberty Mutual</td>
</tr>
<tr>
<td class="labelCol">Productio n Type<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><select name="select">
<option selected="selected">-- select --</option>
<option>New</option>
<option>Expanded</option>
<option selected="selected">Renewa l</option>
</select></td>
</tr>
<tr>
<td class="labelCol">Item Type<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><select name="select2">
<option>-- select --</option>
<option selected="selected">P - Premium</option>
<option>N - Inspection Fee</option>
<option>T - Premium Tax</option>
<option>Y - Policy Fee</option>
<option>U - Surplus Lines Tax</option>
<option>V - Supervision</option>
<option>R - Premium Finance</option>
</select></td>
</tr>
<tr>
<td class="labelCol">Amount<im g src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><input name="text2" type="text" class="inputBoxes" value="331,577.00 USD" size="20" /></td>
</tr>
<tr>
<td class="labelCol">Retail Commission<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><input type="radio" name="tradecredit2" />Percentage
<input name="tradecredit2" type="radio" checked="checked" />
Amount<br />
<input name="text23" type="text" class="inputBoxes" value="76,291.00" size="30" /></td>
</tr>
<tr>
<td class="labelCol">Payto Name/Code<img src="../images/required.gi f" alt="required" width="5" height="5" align="texttop" /></td>
<td class="valueCol"><input type="text" class="inputBoxes" value="Liberty Mutual (1197AA)" size="25" />
<input name="Input" type="button" value="Lookup" class="button secondary" onclick="window.location.h ref='../lo okups/look up_PaytoCo de.html'" /></td>
</tr>
<tr>
<td class="labelCol">Risk Number </td>
<td class="valueCol"><input name="text" type="text" class="inputBoxes" size="30" /><br />
<span class="ninePx">Applicable for Payto Code 0738 only</span></td>
</tr>
<tr>
<td class="labelCol">Surplus Lines </td>
<td class="valueCol"><input type="radio" name="tradecredit" />
Yes  
<input type="radio" name="tradecredit" checked="checked" />
No</td>
</tr>
</table>
<!-- BUTTONS BUTTONS BUTTONS -->
<div class="buttonContainer topSpaceTen borderTop">
<input name="" type="button" value="Save" class="button primary default" onclick="javascript:window .close()" />
<input name="" type="button" value="Cancel" class="button primary cancel" onclick="javascript:window .close()" />
</div>
</form>
</div>
</body>
</html>
////////////////////////// ////////// ////////// /////////w eb.xml//// ////////// ////////// /////
<?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>
BillingCardWeb</display-na me>
<servlet>
<servlet-name>BillingCardA ction</ser vlet-name>
<servlet-class>org.apache. struts.act ion.Action Servlet</s ervlet-cla ss>
<init-param>
<param-name>LabelResources </param-na me>
<param-value>LabelResource s</param-v alue>
</init-param>
<init-param>
<param-name>config</param- name>
<param-value>/WEB-INF/stru ts-config. xml</param -value>
</init-param>
<init-param>
<param-name>debug</param-n ame>
<param-value>2</param-valu e>
</init-param>
<init-param>
<param-name>detail</param- name>
<param-value>2</param-valu e>
</init-param>
<init-param>
<param-name>validate</para m-name>
<param-value>true</param-v alue>
</init-param>
<load-on-startup>-1</load- on-startup >
</servlet>
<servlet-mapping>
<servlet-name>BillingCardA ction</ser vlet-name>
<url-pattern>*.do</url-pat tern>
</servlet-mapping>
<session-config>
<session-timeout>60</sessi on-timeout >
</session-config>
<welcome-file-list>
<welcome-file>index.html</ welcome-fi le>
<welcome-file>index.htm</w elcome-fil e>
<welcome-file>index.jsp</w elcome-fil e>
<welcome-file>default.html </welcome- file>
<welcome-file>default.htm< /welcome-f ile>
<welcome-file>default.jsp< /welcome-f ile>
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/strut s-bean.tld </taglib-u ri>
<taglib-location>/WEB-INF/ struts-bea n.tld</tag lib-locati on>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut s-html.tld </taglib-u ri>
<taglib-location>/WEB-INF/ struts-htm l.tld</tag lib-locati on>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut s-logic.tl d</taglib- uri>
<taglib-location>/WEB-INF/ struts-log ic.tld</ta glib-locat ion>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut s-nested.t ld</taglib -uri>
<taglib-location>/WEB-INF/ struts-nes ted.tld</t aglib-loca tion>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut s-template .tld</tagl ib-uri>
<taglib-location>/WEB-INF/ struts-tem plate.tld< /taglib-lo cation>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut s-tiles.tl d</taglib- uri>
<taglib-location>/WEB-INF/ struts-til es.tld</ta glib-locat ion>
</taglib>
</jsp-config>
</web-app>
<%@ taglib uri="/WEB-INF/struts-bean.
<%@ taglib uri="/WEB-INF/struts-html.
<%@ taglib uri="/WEB-INF/struts-logic
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Marsh | Edit Invoice Item</title>
<link href='../styles/marsh_glob
<link href='../styles/popcalenda
<link rel="stylesheet" type="text/css" href="../styles/billingPol
<link rel="stylesheet" type="text/css" href="../styles/button_sty
<script type="text/javascript" src="../scripts/popcalenda
<script type="text/javascript" src="../scripts/global.js"
<script type="text/javascript" src="../scripts/prototype.
</head>
<body>
<!-- header -->
<div id="marshHeaderBackgroundP
<img src="../images/marsh_logo.
<div id="marshApplicationSiteNa
</div>
<!-- /header -->
<!-- MAIN CONTENT START -->
<div id="mainContentNoMin">
<p class="t12">Edit Invoice Item </p>
<form name="this form">
<table border="0" cellspacing="0" cellpadding="0" class="marginTop10px">
<tr>
<td class="labelCol">Class Code/Description</td>
<td class="valueCol">250 - General Liability</td>
</tr>
<tr>
<td class="labelCol">Policy Number<img src="../images/required.gi
<td class="valueCol"><input name="text3" type="text" class="inputBoxes" value="RG2-631-004321036" size="30" /></td>
</tr>
<tr>
<td class="labelCol">Policy Inception Date</td>
<td class="valueCol">01 May 2006 </td>
</tr>
<tr>
<td class="labelCol">Billing/E
<td class="valueCol"><input name="endorsementDate" type="text" class="inputBoxes" value="01 May 2006" size="15" />
<img src="../images/icon_calend
</tr>
<tr>
<td class="labelCol">Issuing Paper </td>
<td class="valueCol">Liberty Mutual</td>
</tr>
<tr>
<td class="labelCol">Productio
<td class="valueCol"><select name="select">
<option selected="selected">-- select --</option>
<option>New</option>
<option>Expanded</option>
<option selected="selected">Renewa
</select></td>
</tr>
<tr>
<td class="labelCol">Item Type<img src="../images/required.gi
<td class="valueCol"><select name="select2">
<option>-- select --</option>
<option selected="selected">P - Premium</option>
<option>N - Inspection Fee</option>
<option>T - Premium Tax</option>
<option>Y - Policy Fee</option>
<option>U - Surplus Lines Tax</option>
<option>V - Supervision</option>
<option>R - Premium Finance</option>
</select></td>
</tr>
<tr>
<td class="labelCol">Amount<im
<td class="valueCol"><input name="text2" type="text" class="inputBoxes" value="331,577.00 USD" size="20" /></td>
</tr>
<tr>
<td class="labelCol">Retail Commission<img src="../images/required.gi
<td class="valueCol"><input type="radio" name="tradecredit2" />Percentage
<input name="tradecredit2" type="radio" checked="checked" />
Amount<br />
<input name="text23" type="text" class="inputBoxes" value="76,291.00" size="30" /></td>
</tr>
<tr>
<td class="labelCol">Payto Name/Code<img src="../images/required.gi
<td class="valueCol"><input type="text" class="inputBoxes" value="Liberty Mutual (1197AA)" size="25" />
<input name="Input" type="button" value="Lookup" class="button secondary" onclick="window.location.h
</tr>
<tr>
<td class="labelCol">Risk Number </td>
<td class="valueCol"><input name="text" type="text" class="inputBoxes" size="30" /><br />
<span class="ninePx">Applicable for Payto Code 0738 only</span></td>
</tr>
<tr>
<td class="labelCol">Surplus Lines </td>
<td class="valueCol"><input type="radio" name="tradecredit" />
Yes  
<input type="radio" name="tradecredit" checked="checked" />
No</td>
</tr>
</table>
<!-- BUTTONS BUTTONS BUTTONS -->
<div class="buttonContainer topSpaceTen borderTop">
<input name="" type="button" value="Save" class="button primary default" onclick="javascript:window
<input name="" type="button" value="Cancel" class="button primary cancel" onclick="javascript:window
</div>
</form>
</div>
</body>
</html>
//////////////////////////
<?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>
BillingCardWeb</display-na
<servlet>
<servlet-name>BillingCardA
<servlet-class>org.apache.
<init-param>
<param-name>LabelResources
<param-value>LabelResource
</init-param>
<init-param>
<param-name>config</param-
<param-value>/WEB-INF/stru
</init-param>
<init-param>
<param-name>debug</param-n
<param-value>2</param-valu
</init-param>
<init-param>
<param-name>detail</param-
<param-value>2</param-valu
</init-param>
<init-param>
<param-name>validate</para
<param-value>true</param-v
</init-param>
<load-on-startup>-1</load-
</servlet>
<servlet-mapping>
<servlet-name>BillingCardA
<url-pattern>*.do</url-pat
</servlet-mapping>
<session-config>
<session-timeout>60</sessi
</session-config>
<welcome-file-list>
<welcome-file>index.html</
<welcome-file>index.htm</w
<welcome-file>index.jsp</w
<welcome-file>default.html
<welcome-file>default.htm<
<welcome-file>default.jsp<
</welcome-file-list>
<jsp-config>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
<taglib>
<taglib-uri>/WEB-INF/strut
<taglib-location>/WEB-INF/
</taglib>
</jsp-config>
</web-app>
Are all the tld files existed in your WEB-INF?
David
David
ASKER
I just checked. All are existing. Another intresting incident is earlier an other action class was working for me. I simply pasted this jsp name there in its action mapping tag. It is being displayed.
Ok,
Try one thing here.
Modify your web.xml to initialize the taglib as
<taglib>
<taglib-uri>struts-tiles.t ld</taglib -uri>
<taglib-location>/WEB-INF/ struts-til es.tld</ta glib-locat ion>
</taglib>
for every <taglib> that you have.
Then, modify your JSP accordingly.
<%@ taglib uri="struts-bean.tld" prefix="bean" %>
<%@ taglib uri="struts-html.tld" prefix="html" %>
<%@ taglib uri="struts-logic.tld" prefix="logic" %>
It may be caused by the path problem
David
Try one thing here.
Modify your web.xml to initialize the taglib as
<taglib>
<taglib-uri>struts-tiles.t
<taglib-location>/WEB-INF/
</taglib>
for every <taglib> that you have.
Then, modify your JSP accordingly.
<%@ taglib uri="struts-bean.tld" prefix="bean" %>
<%@ taglib uri="struts-html.tld" prefix="html" %>
<%@ taglib uri="struts-logic.tld" prefix="logic" %>
It may be caused by the path problem
David
ASKER
This is what it says
com.ibm.ws.jsp.taglib.TagL ibraryCach e loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts.tld]
com.ibm.ws.jsp.JspCoreExce ption: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib. EnumerateT ei]
Caused by: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib. EnumerateT ei]
com.ibm.ws.jsp.taglib.TagL
com.ibm.ws.jsp.JspCoreExce
Caused by: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is something intresting. I found struts.tld in and other workspace of the same project, but an earlier version. Both the folders of the earlier version and that of the present version are kept in the same projects folder. What should I do now?
ASKER
It is also present in the eclipse plugin folder, as websphere was built on eclipse. It is aslo present in the base_v6 folder of was. but under web-inf folder it is in the earlier version folder only
Can you explain more? Do you mean that you have more than one web applications?
David
David
ASKER
yes
just now I deleted that folder and uninstalled that application. Still the first page is being displayed but the other pages are not being displayed. But now it says an error message saying that the application solder is not found in the location. Still the first page is working
just now I deleted that folder and uninstalled that application. Still the first page is being displayed but the other pages are not being displayed. But now it says an error message saying that the application solder is not found in the location. Still the first page is working
Can you restore it back? If you have restored it, can you have a look at the way the other workspace declaring its taglib? Maybe there is something wrong in their web.xml.
Is your first jsp and the second jsp is in the same web application? Or are they in different workspaces but in one project?
David
Is your first jsp and the second jsp is in the same web application? Or are they in different workspaces but in one project?
David
ASKER
both are in the same work space. Do you want me to restore that other application back
Sorry,
I got to go for few hours
David
I got to go for few hours
David
Thanks for accepting.
Is your problem solved?
David
Is your problem solved?
David
Can you post your JSP as well as your web.xml?
David