-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Error creating bean
PostPosted: Wed Oct 29, 2008 1:11 pm 
Beginner
Beginner

Joined: Thu Sep 18, 2008 5:18 am
Posts: 28
Hi, by using Spring MVC with hibernate... i get the following error


Code:
Error creating bean with name 'postProfileService'
defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]:

Cannot create inner bean 'com.jobpost.postprofile.PostProfileService#1537060' while setting bean property 'target';
nested exception is org.springframework.beans.factory.BeanCreationException:

Error creating bean with name 'com.jobpost.postprofile.PostProfileService#1537060'
defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Error setting property values;


My xml file

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

  <bean id="txProxyTemplate" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name="transactionManager"><ref bean="transactionManager"/></property>
    <property name="transactionAttributes">
      <props>
        <prop key="save*">PROPAGATION_REQUIRED</prop>
        <prop key="add*">PROPAGATION_REQUIRED</prop>
        <prop key="remove*">PROPAGATION_REQUIRED</prop>
      </props>
    </property>
  </bean>

  <bean id="postProfileService" parent="txProxyTemplate">
    <property name="target">
      <bean class="com.jobpost.postprofile.PostProfileService">
        <property name="postProfilesDao"> <ref bean="PostProfilesDAO" /></property></bean>
    </property>
  </bean>
 
</beans>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2008 8:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ask in hibernate or spring user forum - this forum is for the tooling.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.