[jboss-user] [EJB 3.0] - TopLink with Jboss 4.2.1 not working?
tsirel84
do-not-reply at jboss.com
Fri Feb 8 05:24:28 EST 2008
I'm stuck with the problem described in this forum thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128533
and decided to try toplink instead of hibernate to see whether it is hibernate problem.
But when I'm using toplink
1) if I'm not specifying toplink.target-server property like this:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence">
| <persistence-unit name="first">
| <provider>oracle.toplink.essentials.PersistenceProvider</provider>
| <jta-data-source>java:/TestEJB3DS</jta-data-source>
| <properties>
| <!--<property name="toplink.target-server" value="oracle.toplink.essentials.platform.server.jboss.JBossPlatform"/>-->
| <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
| </properties>
| </persistence-unit>
| </persistence>
all entities fails to deploy with such messages:
13:14:14,143 INFO [STDOUT] [TopLink Warning]: 2008.02.08 01:14:14.143--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.gemini.test.ejb.entity.relationship.Course. The class is ignored.
2) and if I'm adding this property:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence">
| <persistence-unit name="first">
| <provider>oracle.toplink.essentials.PersistenceProvider</provider>
| <jta-data-source>java:/TestEJB3DS</jta-data-source>
| <properties>
| <property name="toplink.target-server" value="oracle.toplink.essentials.platform.server.jboss.JBossPlatform"/>
| <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
| </properties>
| </persistence-unit>
| </persistence>
deployment fails with:
|
| 13:25:08,617 WARN [ServiceController] Problem starting service persistence.units:ear=javaEEApplication.ear,jar=EJB.jar,unitName=first
| javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
| Exception Description: predeploy for PersistenceUnit [first] failed.
| Internal Exception: java.lang.NullPointerException
| at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:615)
| at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:247)
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127742#4127742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127742
More information about the jboss-user
mailing list