?
Solved

jsp loading error

Posted on 2006-07-03
15
Medium Priority
?
3,969 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 200 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

649 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