orm - openJPA on Java SE -
I try to develop the JPA project on IBM Red. And I can successfully run it on the webpage, but the problem is that my machine is quite old. Do not deploy the Java EE container reasonable.And I want error play it JSE.But gives the following:
94 test information [main] openjpa.Runtime - OpenJPA 1.2 start . 1-Snapshot 235 test information [Main] openjpa.jdbc.JDBC - Dictionary class used "com.ibm.ws.persistence.jdbc.sql.DB2Dictionary". 1797 Test Warne [Main] Openjapa Enhance - This configuration does not allow runtime optimization, but the following listed types were not extended on build time or class load time with Java load: "[class customer]". Exceptions in thread "main" & lt; Openjpa-1.2.1-SNAPSHOT-r422266: 686069 Fatal user error & gt; Org.apache.openjpa.preistence.ArgumentException: type "class client" has not increased org.apache.openjpa.meta.ClassMetaData.resolveMeta (ClassMetaData.java:1650) on org.apache.openjpa.meta.ClassMetaData.resolve Org.apache.openjpa.meta.MetaDataRepository.resolveMeta (MetaDataRepository.java:716) at org.apache (MetaDataRepository.java:616). Openjpa.meta.MetaDataRepository.getMetaData (MetaDataRepository.java308) at org.apache.openjpa.kernel.BrokerImpl.newObjectId (BrokerImpl.java:1114) at org.apache.openjpa.kernel.DelegatingBroker.newObjectId (DelegatingBroker.java: 268 ) I'm org.apache.openjpa.persistence.EntityManagerImpl.find (EntityManagerImpl.java:451 on deneme.main) (deneme.java:21) on
what do I remember?
My persistent.xml is:
** & Lt; Property name = "openjpa.ConnectionURL" value = "JDBC: DB2: // localhost: 50000 / PARUD: retrieveMessagesFromServerOnGetMessage = true" / & gt; & Lt; Property Name = "openjpa.ConnectionUserName" value = "db2admin" /> & Lt; Property name = "openjpa.ConnectionPassword" value = "xxxxx" /> & Lt; Property name = "openjpa.jdbc.chem" value = "pool" /> & Lt; / Properties & gt; & Lt; / Persistence unit & gt; & Lt; / Persistence & gt; **
Just an Indicator: You need to increase your classes as at runtime - Through JavaWeb: yourlib.jar or even while compiling. You can learn more about this subject:
"to each other and to provide Jwajag to increase runtime recommended way, when launching the JVM is running in Opanjepi."
Comments
Post a Comment