Link to home
Start Free TrialLog in
Avatar of rmvprasad
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.EnumerateTei]

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.EnumerateTei]

org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.EnumerateTei]
Avatar of suprapto45
suprapto45
Flag of Singapore image

Seems like you are using tag in your JSP which is not accessible.

Can you post your JSP as well as your web.xml?

David
Avatar of rmvprasad
rmvprasad

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_global_styles.css' rel="styleSheet" type="text/css" />
<link href='../styles/popcalendar.css' rel="styleSheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../styles/billingPolicyStyles.css" />
<link rel="stylesheet" type="text/css" href="../styles/button_styles.css" />
<script type="text/javascript" src="../scripts/popcalendar.js"></script>
<script type="text/javascript" src="../scripts/global.js"></script>
<script type="text/javascript" src="../scripts/prototype.js"></script>

</head>

<body>
<!-- header -->

      <div id="marshHeaderBackgroundPopup">
            <img src="../images/marsh_logo.gif" alt="Marsh" id="MarshLogo" />
            <div id="marshApplicationSiteName">Placement &amp; 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.gif" 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/Endorsement Effective Date<img src="../images/required.gif" 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_calendar_select.gif" alt="Calendar" class="calendarIcon" onclick='popUpCalendar(this, document.forms[0].endorsementDate, "dd mmm yyyy")' /></td>
            </tr>
            <tr>
                  <td class="labelCol">Issuing Paper </td>
                  <td class="valueCol">Liberty Mutual</td>
            </tr>
            <tr>
                  <td class="labelCol">Production Type<img src="../images/required.gif" 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">Renewal</option>
                  </select></td>
            </tr>
            <tr>
                  <td class="labelCol">Item Type<img src="../images/required.gif" 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<img src="../images/required.gif" 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.gif" 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.gif" 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.href='../lookups/lookup_PaytoCode.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 &#160;
                        <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>

///////////////////////////////////////////////////////web.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-name>
      <servlet>
            <servlet-name>BillingCardAction</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
            <param-name>LabelResources</param-name>
            <param-value>LabelResources</param-value>
        </init-param>        
            <init-param>
                  <param-name>config</param-name>
                  <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <init-param>
                  <param-name>debug</param-name>
                  <param-value>2</param-value>
            </init-param>
            <init-param>
                  <param-name>detail</param-name>
                  <param-value>2</param-value>
            </init-param>
            <init-param>
                  <param-name>validate</param-name>
                  <param-value>true</param-value>
            </init-param>
            <load-on-startup>-1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>BillingCardAction</servlet-name>
            <url-pattern>*.do</url-pattern>
      </servlet-mapping>
      <session-config>
            <session-timeout>60</session-timeout>
      </session-config>
      <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>
                  <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
            </taglib>
            <taglib>
                  <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
                  <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
            </taglib>
      </jsp-config>
</web-app>
Are all the tld files existed in your WEB-INF?

David
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.tld</taglib-uri>
               <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
          </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
This is what it says

com.ibm.ws.jsp.taglib.TagLibraryCache loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts.tld]
                                 com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.EnumerateTei]

Caused by: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.taglib.EnumerateTei]
ASKER CERTIFIED SOLUTION
Avatar of suprapto45
suprapto45
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
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
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
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
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
Thanks for accepting.

Is your problem solved?

David