Sathish David Kumar N
asked on
org.springframework.beans.factory.BeanCreationException
Hi
i am crating instance using xml when i doing that time this error is occour !!
org.springframework.beans. factory.Be anCreation Exception
is it possible to create instance using xml
Code is
<bean id="papaSubmitController" class="com.papa.controller .PapaSubmi tControlle r">
<property name="sessionForm"><value> true</valu e></proper ty>
<property name="commandName"><value> purchaseRe q</value>< /property>
<property name="commandClass"><value >papa_base .PurchaseR eq</value> </property >
<!-- property name="commandClass"><value >papa_base .PurchaseR eqDetails< /value></p roperty-->
<property name="successView"><value> PapaPRsave Success</v alue></pro perty>
<property name="SubmitPRImpl" ref="com.tspl.papa.busines s.impl.Sub mitPRImpl" ></propert y>
<property name="submitPRInter" ref="com.tspl.papa.busines s.impl.sub mitPRInter "></proper ty>
</bean>
thats in XML file
in controller
private SubmitPRInter submitPRInter;
private SubmitPRImpl submitPRImpl;
public SubmitPRImpl getSubmitImpl() {
return submitPRImpl;
}
public void setSubmitImpl(SubmitPRInte r submitImpl) {
this.submitPRImpl = submitPRImpl;
}
public SubmitPRInter getSubmitPRInter() {
return submitPRInter;
}
public void setSubmitPRInter(SubmitPRI nter submitPRInter) {
this.submitPRInter = submitPRInter;
}
submitPRInter.savePRDetail s(purchase Req,purcha seReqDetai ls);
like is iwrote my code ..
i am crating instance using xml when i doing that time this error is occour !!
org.springframework.beans.
is it possible to create instance using xml
Code is
<bean id="papaSubmitController" class="com.papa.controller
<property name="sessionForm"><value>
<property name="commandName"><value>
<property name="commandClass"><value
<!-- property name="commandClass"><value
<property name="successView"><value>
<property name="SubmitPRImpl" ref="com.tspl.papa.busines
<property name="submitPRInter" ref="com.tspl.papa.busines
</bean>
thats in XML file
in controller
private SubmitPRInter submitPRInter;
private SubmitPRImpl submitPRImpl;
public SubmitPRImpl getSubmitImpl() {
return submitPRImpl;
}
public void setSubmitImpl(SubmitPRInte
this.submitPRImpl = submitPRImpl;
}
public SubmitPRInter getSubmitPRInter() {
return submitPRInter;
}
public void setSubmitPRInter(SubmitPRI
this.submitPRInter = submitPRInter;
}
submitPRInter.savePRDetail
like is iwrote my code ..
>
ASKER
ya i did that same error only coming .
is the bean you are ref'ing defined?
ASKER
ya
<bean id ="submitImpl"..... />
this id only iam using as ref !! is that correct !!
<bean id ="submitImpl"..... />
this id only iam using as ref !! is that correct !!
I'm referring to:
ref="com.tspl.papa.busines s.impl.Sub mitPRImpl"
ref expects the name of a bean to assign the property to
ref="com.tspl.papa.busines
ref expects the name of a bean to assign the property to
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.