Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 5th, 2008, 11:51 AM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error creating entityManagerFactory Bean

Hi, I have an error when run test from Pix application, when spring want create entityManagerFactory bean, the exception org.springframework.beans.factory.BeanCreationExce ption is throw.

Here my bean:
<bean id="entityManagerFactory"
        class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="jpaVendorAdapter">
            <bean class="org.springframework.orm.jpa.vendor.Hibernat eJpaVendorAdapter">
                <property name="database" value="HSQL" />
            </bean>
        </property>
    </bean>

    <bean id="dataSource"
        class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
        <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
        <property name="url" value="jdbc:hsqldb:hsql://localhost/pix" />
        <property name="username" value="sa" />
        <property name="password" value="" />
    </bean>




[u]
AND THE EXCEPTION:
</u>


Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.716 sec <<< FAILURE!
testRetrieveAlbumById(dao.AlbumJpaRepositoryTest) Time elapsed: 1.352 sec <<< ERROR!
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'entityManagerFactory' defined in class path resource [persistenceContext.xml]: Cannot create inner bean 'org.springframework.orm.jpa.vendor.AbstractJpaVen dorAdapter#31884174' of type [org.springframework.orm.jpa.vendor.AbstractJpaVend orAdapter] while setting bean property 'jpaVendorAdapter'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.orm.jpa.vendor.AbstractJpaVen dorAdapter#31884174' defined in class path resource [persistenceContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.jpa.vendor.AbstractJpaVend orAdapter]: Is it an abstract class?; nested exception is java.lang.InstantiationException
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.orm.jpa.vendor.AbstractJpaVen dorAdapter#31884174' defined in class path resource [persistenceContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.jpa.vendor.AbstractJpaVend orAdapter]: Is it an abstract class?; nested exception is java.lang.InstantiationException
Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.jpa.vendor.AbstractJpaVend orAdapter]: Is it an abstract class?; nested exception is java.lang.InstantiationException
Caused by: java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAcces sorImpl.newInstance(InstantiationExceptionConstruc torAccessorImpl.java:30)








Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<bean:message key="error.access.rights"/> sparun1607 Struts 1 September 23rd, 2011 03:08 AM
Jsp,bean iishu JSP Basics 0 November 17th, 2007 11:21 AM
Chapter 19 error of: Cannot find bean: "org.apache keeotee BOOK: Beginning JavaServer Pages 1 April 23rd, 2006 08:17 AM
Exception creating bean of class org.apache.struts chandseetare Apache Tomcat 0 May 14th, 2005 07:22 AM
bean problem sandi JSP Basics 3 April 5th, 2005 01:22 PM



All times are GMT -4. The time now is 03:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.