Solved

org.springframework.beans.factory.BeanCreationException

Posted on 2009-07-07
6
1,028 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
array6 challenfge 6 99
endX challenge 2 76
Java asynchronous logging 4 59
session migration servlets 2 35
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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

816 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

13 Experts available now in Live!

Get 1:1 Help Now