• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sun App Server PE 9 and Hibernate

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to deploy a Web Module that uses hibernate as it's persistence provider. The documentation says that since Sun App Server uses TopLink Essentials I need to install hiberante by copying the necessary jars in the lib directory of the domain it's being installed to. Well, that's what I've done and I'm still getting the same error:

Caused by: org.hibernate.MappingException: Could not determine type for: oracle.toplink.essentials.indirection.ValueHolderInterface, for columns: [org.hibernate.mapping.Column(_toplink_personalData_vh)]

These are the jars that I've put into the domain1's lib directory:

hibernate-entitymanager.jar
hibernate-annotations.jar
jboss-archive-browsing.jar
javassist.jar
hibernate3.jar
c3p0-0.9.0.jar
cglib-2.1.3.jar
commons-collections-2.1.1.jar
commons-logging-1.0.4.jar
concurrent-1.3.2.jar
log4j-1.2.11.jar
dom4j-1.6.1.jar
ehcache-1.1.jar
antlr-2.7.6rc1.jar
asm-attrs.jar
asm.jar

This is my JPA EntityManagerFactory defninition:

 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone else not see my entitymanagercode or am I really lossing it?

<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="showSql" value="false" />
<property name="generateDdl" value="false" />
<property name="database" value="ORACLE" />
</bean>
</property>
<property name="jpaPropertyMap">
<map>
<entry key="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider" />
</map>
</property>
</bean>
 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, that's annoying!

 
Matthew Snow
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We'll all I needed to do further was add the following to my persistence.xml

 
reply
    Bookmark Topic Watch Topic
  • New Topic