Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
hsqldb configured with JPA and hibernate vendor
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kamiseq  
View profile  
 More options Nov 3, 3:33 pm
From: kamiseq <kami...@gmail.com>
Date: Tue, 3 Nov 2009 12:33:32 -0800 (PST)
Local: Tues, Nov 3 2009 3:33 pm
Subject: hsqldb configured with JPA and hibernate vendor
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


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google