I am running Tomcat 5.5.17, Sun JDK 1.5.0_09, Slackware 11. When I execute
AddChain.jsp  FormBean.class is called and the following error message
occurs. I have been googling for answers to this error and not found what is
needed to fix my error.

org.apache.jasper.JasperException: Cannot find any information on property
'ChainName' in a bean of type 'com.bean.chain.FormBean'

In the catalina log files shows the message :  "Apr 17, 2007 2:31:02 AM
org.apache.catalina.loader.WebappClassLoader modified Resource
'/WEB-INF/classes/com/bean/chain/FormBean.class' is missing"

but FormBean.class is in /WEB-INF/classes/com/bean/chain/  directory.



What am I missing ?



Thanks In Advance,
Tom




------------------------------------------------------------------------------------------------------------------------------
AddChain.jsp
------------------------------------------------------------------------------------------------------------------------------

<jsp:useBean id="FormBean"  class="com.bean.chain.FormBean"/>
<jsp:setProperty name="FormBean" property="*"/>


<HTML>
<HEAD>
<TITLE> Add Chain </TITLE>
</HEAD>
<BODY BGCOLOR="#ffffcc">
<% if (    request.getParameter("ChainName")==null &&
          request.getParameter("Address1")==null &&
          request.getParameter("Address2")==null &&
   request.getParameter("City")==null &&
   request.getParameter("State")==null &&
   request.getParameter("ZIPCode")==null &&
   request.getParameter("PhoneNumber")==null )
{ %>

<FORM METHOD="GET" ACTION="../gift/AddChain.jsp">


<P>
Chain Name: <input type="text" name=
"ChainName" size=50>
<P>
Address1 : <input type="text" name=
"Address1" size=50>
<P>
Address2 : <input type="text" name=
"Address2" size=50>
<P>
City : <input type="text" name=
"City" size=50>
<P>
State : <input type="text" name=
"State" size=2>
<P>
ZIP Code : <input type="text" name=
"ZIPCode" size=9>
<P>
Phone Number : <input type="text" name=
"PhoneNumber" size=10>


<P>
<input type="submit" value="Process">
</FORM>

<% } else { %>
<P>
<B>Provided Information</B>:
<P>
<B>Chain Name</B>: <jsp:getProperty name=
"FormBean" property="ChainName" />
<P>
<B>Address 1</B>: <jsp:getProperty
name="FormBean" property="Address1"/>
<P>
<B>Address 2</B>: <jsp:getProperty
name="FormBean" property="Address2"/>
<P>
<B>City</B>: <jsp:getProperty
name="FormBean" property="City"/>
<P>
<B>State</B>: <jsp:getProperty
name="FormBean" property="State"/>
<P>
<B>ZIP Code</B>: <jsp:getProperty
name="FormBean" property="ZIPCode"/>
<P>
<B>Phone Number</B>: <jsp:getProperty
name="FormBean" property="PhoneNumber"/>



<% } %>
</BODY>
</HTML>



------------------------------------------------------------------------------------------------------------------------------------------
FormBean.java
------------------------------------------------------------------------------------------------------------------------------------------

package com.bean.chain;
import java.io.*;

public class FormBean implements Serializable {
 private String ChainName=null;
 private String Address1=null;
 private String Address2=null;
 private String City=null;
 private String State=null;
 private String ZIPCode=null;
 private String PhoneNumber=null;


 public FormBean() {}

 public void setChainName(String ChainName) {
  this.ChainName = ChainName;
 }
 public String getChainName() {
  return ChainName;
 }
 public void setAddress1(String Address1) {
  this.Address1 = Address1;
 }
 public String getAddress1() {
  return Address1;
 }
public void setAddress2(String Address2) {
  this.Address2 = Address2;
 }
 public String getAddress2() {
  return Address2;
 }
public void setCity(String City) {
  this.City = City;
 }
 public String getCity() {
  return City;
 }
public void setState(String State) {
  this.State = State;
 }
 public String getState() {
  return State;
 }
public void setZipCode(String ZIPCode) {
  this.ZIPCode = ZIPCode;
 }
 public String getZIPCode() {
  return ZIPCode;
 }
public void setPhoneNumber(String PhoneNumber) {
  this.PhoneNumber = PhoneNumber;
 }
 public String getPhoneNumber() {
  return PhoneNumber;
 }

} // end FormBean

Reply via email to