Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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)












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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.