Solved

jsp loading error

Posted on 2006-07-03
15
3,777 Views
Last Modified: 2008-01-09
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]
0
Comment
Question by:rmvprasad
  • 8
  • 7
15 Comments
 
LVL 16

Expert Comment

by:suprapto45
ID: 17034848
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
0
 

Author Comment

by:rmvprasad
ID: 17034867
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>
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17034870
Are all the tld files existed in your WEB-INF?

David
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:rmvprasad
ID: 17034909
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.
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17034933
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
0
 

Author Comment

by:rmvprasad
ID: 17034993
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]
0
 
LVL 16

Accepted Solution

by:
suprapto45 earned 50 total points
ID: 17035016
Ok,

Interesting point here.

>>"resourcePath =[/WEB-INF/struts.tld]"
We do not have any struts.tld.

Can you find out where is it referenced from?

David
0
 

Author Comment

by:rmvprasad
ID: 17035038
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?
0
 

Author Comment

by:rmvprasad
ID: 17035051
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
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17035074
Can you explain more? Do you mean that you have more than one web applications?

David
0
 

Author Comment

by:rmvprasad
ID: 17035202
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
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17035239
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
0
 

Author Comment

by:rmvprasad
ID: 17035253
both are in the same work space. Do you want me to restore that other application back
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17035559
Sorry,

I got to go for few hours

David
0
 
LVL 16

Expert Comment

by:suprapto45
ID: 17039834
Thanks for accepting.

Is your problem solved?

David
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Spring Framework HTTPSession management 1 45
jsp insert to database example 2 44
Bot application - advice 3 37
Running JavaFX on the Raspberry Pi 27 38
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question