File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
A question about "persistence.xml" by Weblogic
Joined: May 13, 2008
May 14, 2008 07:55:00
I built an EJB-Project, a JAR file, which contains the "persistence.xml" under \src\META-INF\. It looks as follow:
<?xml version="1.0"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence <a href="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"" target="_blank" rel="nofollow">http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"</a> version="1.0"> <persistence-unit name="Wei_Oracle"> <jta-data-source>OracleDS</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> </properties> </persistence-unit> </persistence>
I use the same file by
and after I deployed and started this JAR, the entity tables will be created.
Now I deploy this JAR on Weblogic 10g. But no entity tables are created after this JAR is deployed and started.
I've created a Data Source via Admin Console and have tested it. This connection to the physical data base is OK.
Joined: Jan 06, 2001
May 14, 2008 21:21:00
have you created weblogic-cmp-jar.xml DD? Are you using
Take a look at:
that may be what you're missing.
I agree. Here's the link:
subject: A question about "persistence.xml" by Weblogic
Problem javax.persistence.NoResultException: No entity found for query
Exception while deploying the bean
How to use JTA with JPA
EJB 3 deployment Error
Could not resolve a persistence unit corresponding to the persistence-context-ref-name
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015