Try this:
http://java.sun.com/javaee/5/docs/api/javax/persistence/Persistence.html
For me it worked as soon as OpenJPA was able to find persistence.xml via the classpath.
Alternatively you can provide the whole configuration via the map.
Hiran Chaudhuri
> -----Ursprüngliche Nachricht-----
> Von: "ericp56" <eric.phetteplace@twcable.com>
> Gesendet: 08.07.08 22:40:06
> An: users@openjpa.apache.org
> Betreff: Re: Tomcat Injection
>
> I tried:
> emf = OpenJPAPersistence.getEntityManagerFactory();
>
> but it doesn't find persistence.xml, and raises:
> <openjpa-1.1.0-r422266:657916 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
> DataSource class name
> must be specified in the ConnectionDriverName property.
>
> Are there any samples out there? The ones included with OpenJPA don't
> include any managed resources.
>
>
> --
> View this message in context: http://n2.nabble.com/Tomcat-Injection-tp395699p395729.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>
____________________________________________________________________
Ihre Messenger, Communities und E-Mails jetzt in einem Programm!
WEB.DE MultiMessenger http://www.produkte.web.de/messenger/?did=3071
|