struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <rye...@yahoo.com>
Subject Re: java.lang.IllegalArgumentException: No bean specified
Date Mon, 17 May 2004 22:03:58 GMT
Paraman,
Are you submitting a form to the action? If so, you
don't have the name of the form-bean as the 'input'
argument to your executeEvaluation action.

Regards,

Richard

--- Paraman <jianrong_shu@hotmail.com> wrote:
> Richard,
> Thanks for your  kind help. Following is the content
> of my struts-config.xml and I am invoking the
> "/executeEvaluation" action.
>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> /// struts-config.xml
>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts-config PUBLIC "-//Apache Software
> Foundation//DTD Struts Configuration 1.1//EN"
>                               
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
> 
> <struts-config>
> 
>  <!-- Data Sources -->
>  <data-sources></data-sources>
> 
>  <!-- Form Beans -->
>  <form-beans>
>   <form-bean name="logonForm"
> type="org.apache.struts.action.DynaActionForm">
>    <form-property name="password"
> type="java.lang.String"></form-property>
>    <form-property name="id"
> type="java.lang.String"></form-property>
>   </form-bean>
>   <form-bean name="registrationForm"
>
type="cmmieval.web.struts.forms.RegistrationForm"></form-bean>
>   <form-bean name="evaluationForm"
>
type="cmmieval.web.struts.forms.EvaluationForm"></form-bean>
>   <form-bean name="processAreasForm"
>
type="cmmieval.web.struts.forms.ProcessAreasForm"></form-bean>
>   <form-bean name="prepareEvaluationForm"
>
type="cmmieval.web.struts.forms.PrepareEvaluationForm"></form-bean>
>  </form-beans>
> 
>  <!-- Global Exceptions -->
>  <global-exceptions></global-exceptions>
> 
>  <!-- Global Forwards -->
>  <global-forwards>
>   <forward name="logon" path="/logon.jsp"></forward>
>   <forward name="register"
> path="/editRegistration.do?action=create"></forward>
>   <forward name="success"
> path="/mainMenu.jsp"></forward>
>   <forward name="start"
> path="/prepareEvaluation.do">
>   </forward>
>   <forward name="home" path="/index.jsp">
>   </forward>
>   <forward name="editRegistration"
> path="/editRegistration.do?action=edit">
>   </forward>
>  </global-forwards>
> 
>  <!-- Action Mappings -->
>  <action-mappings>
>   <action path="/logon"
> type="cmmieval.web.struts.actions.LogonAction"
> name="logonForm" scope="request"
> input="/logon.jsp"></action>
>   <action path="/editRegistration"
>
type="cmmieval.web.struts.actions.EditRegistrationAction"
> name="registrationForm" scope="request"
> validate="false">
>    <forward name="success"
> path="/registration.jsp"></forward>
>   </action>
>   <action path="/selectProcessAreas"
> name="processAreasForm" scope="session"
>
type="cmmieval.web.struts.actions.SelectProcessAreasAction"
> input="/prepareEvaluation.do">
>             <forward name="success"
> path="/executeEvaluation.do"/>
>   </action>
> 
> <!---------------- Here is the action I am invoking
> -------------------------------------------------->
>         <action path="/executeEvaluation"
>
type="cmmieval.web.struts.actions.ExecuteEvaluationAction"
> name="evaluationForm" scope="request"
> validate="false">
>          <forward name="success"
> path="/evaluation.jsp"/>           
>         </action>
>   <action path="/prepareEvaluation"
>
type="cmmieval.web.struts.actions.PrepareEvaluationAction"
> name="prepareEvaluationForm" scope="request"
> attribute="prepareEvaluationForm" validate="false">
>    <forward name="success"
> path="/prepareEvaluation.jsp"></forward>
>   </action>
>   <action path="/initializeProcessAreasList"
> name="prepareEvaluationForm" scope="request"
>
type="cmmieval.web.struts.actions.InitializeProcessAreasListAction"
> input="/prepareEvaluation.do" validate="false">
>    <forward name="success"
> path="/listProcessAreas.do" />
>   </action>
>   <action path="/saveRegistration"
> name="registrationForm" scope="request"
>
type="cmmieval.web.struts.actions.SaveRegistrationAction"
> validate="true" input="/registration.jsp"></action>
>   <action path="/listProcessAreas"
> name="processAreasForm" scope="session"
>
type="cmmieval.web.struts.actions.ListProcessAreasAction"
> validate="false">
>    <forward name="success"
> path="/listProcessAreas.jsp"/>
>   </action>
>         <action path="/saveEvaluation"
> name="evaluationForm"
>
type="cmmieval.web.struts.actions.SaveEvaluationAction"
> scope="request" validate="false">
>             <forward name="continue"
> path="/executeEvaluation.do"></forward>
>             <forward name="complete"
> path="/review.jsp"/>
>         </action>
>  </action-mappings>
> 
>  <!-- Message Resources -->
>  <message-resources
> parameter="cmmieval.resources.ApplicationResources"
> />
> 
>  <!-- Plugins -->
>  <plug-in
>
className="cmmieval.web.struts.plugins.AccountDatabasePlugin">
>   <set-property property="pathname"
> value="/WEB-INF/database.xml" />
>  </plug-in>
>  <plug-in
>
className="cmmieval.web.struts.plugins.CMMIOntologyPlugin">
>   <set-property property="pathname"
> value="/WEB-INF/CMMI1_1.owl" />
>  </plug-in>
>  <plug-in
>
className="cmmieval.web.struts.plugins.EvaluationDatabasePlugin">
>   <set-property property="base"
> value="/WEB-INF/DATA/"/>
>  </plug-in>
> 
> </struts-config>
>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> Regards,
> 
> Paraman
> 
> ----- Original Message ----- 
> From: "Richard Yee" <ryee@cruzio.com>
> To: "Struts Users Mailing List"
> <user@struts.apache.org>
> Sent: Sunday, May 16, 2004 10:57 PM
> Subject: Re: java.lang.IllegalArgumentException: No
> bean specified
> 
> 
> > With the information you provided, it is hard to
> tell what the problem is. 
> > Send the contents of your struts-config.xml and
> which action you are invoking.
> > 
> > Regards,
> > 
> > Richard
> > 
> > At 07:16 AM 5/16/2004, you wrote:
> > >Hi,
> > >I am writing a web application based on Struts
> and encountered a problem. 
> > >When I ran it on Tomcat, I got the following
> exception:
> > >java.lang.IllegalArgumentException: No bean
> specified
> > > 
> >
>
>org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
> > > 
> >
>
>org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
> > >        
>
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> > >        
>
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
> > > 
> >
>
>org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
> > > 
> >
>
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> > > 
> >
>
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > >        
>
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > >        
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > >        
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
=== message truncated ===



	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message