Hello, I have a problem, when trying to create an EntityManager.
I'm using the persistence.xml beneath, which indicates to use managed transactions and managed ConnectionFactoryMode (see below). <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 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <persistence-unit name="Selektionen_DB"> <provider> org.apache.openjpa.persistence.PersistenceProviderImpl </provider> <jta-data-source>java:comp/jdbc/selektionendb</jta-data-source> <properties> <property name="openjpa.TransactionMode" value="managed"/> <property name="openjpa.ConnectionFactoryMode" value="managed"/> <property name="openjpa.jdbc.DBDictionary" value="db2"/> <property name="openjpa.jdbc.Schema" value="T7"/> </properties> </persistence-unit> </persistence> Configuration Deploymentdescriptor Session Bean: jdbc/selektionendb is configured in Deployment Descriptor of the SessionBean that contains the JPA Operation Configuration JDBC provider on WAS70: DB2 Universal JDBC Driver Provider One-phase commit DB2 JCC provider that supports JDBC 3.0. Data sources that use this provider support only 1-phase commit processing, unless you use driver type 2 with the application server for z/OS. If you use the application server for z/OS, driver type 2 uses RRS and supports 2-phase commit processing. Configuration DB Source on WAS70: Selektionen_DB jdbc/selektionendb DB2 Universal JDBC Driver Provider DB2 Universal Driver Datasource Log Output: Beim Initialisieren der Konfiguration sind Fehler aufgetreten: <openjpa-1.2.1-SNAPSHOT-r422266:686069 fatal user error> org.apache.openjpa.util.UserException: Es muss der Name eines JDBC-Treibers oder einer DataSource-Klasse in der Eigenschaft ConnectionDriverName angegeben werden. at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:74) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:784) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:691) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) This exception is thrown, wenn executing the createEntityManager() Statement (see below) this.setEmf(Persistence.createEntityManagerFactory("Selektionen_DB")); this.getEmf().createEntityManager(); Thank you for help Annette Scherer Abteilung Informatik
