Solved

org.springframework.beans.factory.BeanCreationException

Posted on 2009-07-07
6
1,035 Views
Last Modified: 2013-11-11
Hi
i am crating instance using xml when i doing that time this error is occour !!
org.springframework.beans.factory.BeanCreationException

is it possible to create instance using xml

Code is

      <bean id="papaSubmitController" class="com.papa.controller.PapaSubmitController">
        <property name="sessionForm"><value>true</value></property>        
      <property name="commandName"><value>purchaseReq</value></property>
      <property name="commandClass"><value>papa_base.PurchaseReq</value></property>
      <!-- property name="commandClass"><value>papa_base.PurchaseReqDetails</value></property-->      
      <property name="successView"><value>PapaPRsaveSuccess</value></property>
      <property name="SubmitPRImpl" ref="com.tspl.papa.business.impl.SubmitPRImpl"></property>
      <property name="submitPRInter" ref="com.tspl.papa.business.impl.submitPRInter"></property>
         
    </bean>
thats in XML file

in controller
private SubmitPRInter submitPRInter;
private SubmitPRImpl submitPRImpl;
      public SubmitPRImpl getSubmitImpl() {
            return submitPRImpl;
      }


      public void setSubmitImpl(SubmitPRInter submitImpl) {
            this.submitPRImpl = submitPRImpl;
      }

      
 
      public SubmitPRInter getSubmitPRInter() {
            return submitPRInter;
      }


      public void setSubmitPRInter(SubmitPRInter submitPRInter) {
            this.submitPRInter = submitPRInter;
      }

submitPRInter.savePRDetails(purchaseReq,purchaseReqDetails);

like is iwrote my code ..
0
Comment
[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
  • 3
  • 3
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 24801004
>      
0
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 24801281
ya i did that same error only coming .
0
 
LVL 92

Expert Comment

by:objects
ID: 24801289
is the bean you are ref'ing defined?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 24801352
ya
<bean id ="submitImpl"..... />
this id only iam using as ref !! is that correct !!
0
 
LVL 92

Expert Comment

by:objects
ID: 24801374
I'm referring to:

ref="com.tspl.papa.business.impl.SubmitPRImpl"

ref expects the name of a bean to assign the property to
0
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 0 total points
ID: 25130566
create  submitDAOImpl getter/setter  in submitPRImpl
and create prpperty in xxx-servlet.xml

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

710 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