wood burning stoves 2.0*
The moose likes Struts and the fly likes Exception creating bean of class sample.LookSymbol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception creating bean of class sample.LookSymbol" Watch "Exception creating bean of class sample.LookSymbol" New topic

Exception creating bean of class sample.LookSymbol

Vinayak kk

Joined: Oct 27, 2005
Posts: 3
Hi friends,

I am new to Struts. I have created an application.
But it is throwing the exception as:
org.apache.jasper.JasperException: Exception creating bean of class sample.LookSymbolForm: java.lang.ClassNotFoundException: sample.LookSymbolForm

I have checked everything, but not able to locate the error. can any body help me out.

Jsp Page:
<html:form action="lookSymbol.do"
name="LookSymbolForm" type="sample.LookSymbolForm">
<table width="100%">
<td>Vinayak's first Struts Project.</td>
<table width="100%">
<td>Symbol:<html:text property="symbol" /></td>
<td><html:submit value="Submit Symbol" /></td>

package sample;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

* Type the Comments.
public class LookSymbolForm extends ActionForm {

* Declarations of Variables.
private String symbol;

* @return Returns the symbol.
public String getSymbol() {
return symbol;
* @param symbol The symbol to set.
public void setSymbol(String symbol) {
this.symbol = symbol;

public void reset(ActionMapping mapping, HttpServletRequest req) {
this.symbol = null;
<form-bean name="LookSymbolForm" type="sample.LookSymbolForm"/>
<action input="/pages/start.jsp" name="LookSymbolForm" scope="session" path="/lookSymbol" type="sample.LookSymbolAction">
<forward name="SUCCESS" path="/pages/view.jsp"/>
<forward name="FAILURE" path="/pages/start.jsp"/>

So, please help me.
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
When did you get this exception? Some advices (not sure if they help): (1) in <html:form> name & type attribute are deprecated; (2) in <action> usually if I specify input= I would add validate="true"
Vinayak kk

Joined: Oct 27, 2005
Posts: 3
hello Alec,

I am getting this exception when i m submitting the jsp page.
I will check with the things what you have suggested.
Thanks in advance
I agree. Here's the link: http://aspose.com/file-tools
subject: Exception creating bean of class sample.LookSymbol
Similar Threads
DynaActionForm - Exception creating bean
Exception creating bean of class...
Error in deploying struts: Attribute name invalid according to the specified TLD
Cannot find bean lookupForm in any scope