Solved

org.springframework.beans.factory.BeanCreationException

Posted on 2009-07-07
6
1,022 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
  • 3
  • 3
6 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
>      
0
 
LVL 20

Author Comment

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

Expert Comment

by:objects
Comment Utility
is the bean you are ref'ing defined?
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 20

Author Comment

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

Expert Comment

by:objects
Comment Utility
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
Comment Utility
create  submitDAOImpl getter/setter  in submitPRImpl
and create prpperty in xxx-servlet.xml

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now