hi guys I hv stuck with this.
simply what I need is to confiure hsqldb with JPA/hibernate using
spring config file and persistence. I configured it once some time ago
but that was wiht postgresql and maybe this is the problem. Maybe
someone can look at it with fresh eye.
Im using spring lib 2.5.6 and hibernate 3.4GA and standard jpa lib and
im using maven2.
my springConfig.xml file after deploy sits under target\app.war\WEB-
INF
\classes
\springConfig.xml (you can view it here http://kamiseq.info/files/springConfig.xml)
(and as a bonus can someone tell me why I can't use classpath: / or
classpath*: when defining path to persistence.xml - the file is not
seen then. classpath*:META-INF/persistence.xml??)
my persistence.xml file after deploy sits under target\app.war\META-
INF\persistence.xml (you can view it here http://kamiseq.info/files/persistence.xml)
and the log itself
2009-11-01 22:48:22,940 DEBUG TapestyBeanFactory:383 - Creating
instance of bean 'dataSource'
2009-11-01 22:48:22,957 DEBUG TapestyBeanFactory:383 - Creating
instance of bean
'org.springframework.orm.jpa.vendor.HibernateJpaDialect#216b59'
2009-11-01 22:48:22,966 DEBUG TapestyBeanFactory:411 - Finished
creating instance of bean
'org.springframework.orm.jpa.vendor.HibernateJpaDialect#216b59'
2009-11-01 22:48:22,967 DEBUG TapestyBeanFactory:383 - Creating
instance of bean
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#1fb7565'
2009-11-01 22:48:22,982 DEBUG TapestyBeanFactory:411 - Finished
creating instance of bean
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#1fb7565'
2009-11-01 22:48:22,984 DEBUG TapestyBeanFactory:1367 - Invoking
afterPropertiesSet() on bean with name 'entityManagerFactory'
2009-11-01 22:48:22,991 DEBUG PersistenceUnitReader:174 - Found schema
resource: jar:file:../.m2/repository/org/hibernate/hibernate-
entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar!/org/
hibernate/ejb/persistence_1_0.xsd
2009-11-01 22:48:23,005 INFO LocalContainerEntityManagerFactoryBean:
221 - Building JPA container EntityManagerFactory for persistence unit
'tapestryUnit'
2009-11-01 22:48:23,593 DEBUG TapestyBeanFactory:476 - Retrieved
dependent beans for bean
'org.springframework.orm.jpa.vendor.HibernateJpaDialect#216b59':
[entityManagerFactory]
2009-11-01 22:48:23,602 INFO TapestyBeanFactory:421 - Destroying
singletons in
org.apache.tapestry5.internal.spring.TapestyBeanFactory@3c9616:
defining beans
[org.springframework.context.annotation.internalPersistenceAnnotationProces sor,org.springframework.context.annotation.internalCommonAnnotationProcesso r,org.springframework.context.annotation.internalAutowiredAnnotationProcess or,org.springframework.context.annotation.internalRequiredAnnotationProcess or,dataSource,entityManagerFactory,org.springframework.dao.annotation.Persi stenceExceptionTranslationPostProcessor#0,transactionManager,org.springfram ework.dao.annotation.PersistenceExceptionTranslationPostProcessor#1,org.spr ingframework.aop.config.internalAutoProxyCreator,org.springframework.transa ction.annotation.AnnotationTransactionAttributeSource#0,org.springframework .transaction.interceptor.TransactionInterceptor#0,org.springframework.trans action.config.internalTransactionAdvisor];
root of factory hierarchy
2009-11-01 22:48:23,603 ERROR ContextLoader:215 - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProc essor#0'
defined in class path resource [springConfig.xml]: Initialization of
bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path
resource [springConfig.xml]: Invocation of init method failed; nested
exception is javax.persistence.PersistenceException:
[PersistenceUnit:tapestryUnit] Unable to build EntityManagerFactory
ok the problem was that it couldnt find
PersistenceExceptionTranslationPostProcessor but after commenting that
out I have the same result and I end up with Unable to build
EntityManagerFactory! aaa what Im doing wrong here
can someone guide me with this. it is so much pain in my .. :)
cheers