JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Object Relational Mapping » JPA  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
作者 Re:OpenJPA 在 createEntityManagerFactory 錯誤 [Re:pico2k]
Mandrake





發文: 7
積分: 0
於 2010-10-11 17:39 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
謝啦,的確是把 test/ 後面這個 / 拿掉就過了
不過又出現下面的訊息
===============================
71 testJPA INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.1
160 testJPA INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary".
Exception in thread "main" <openjpa-2.0.1-r422266:989424 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: "
TPolloption
Animal
TTopic".
  at org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:116)
  at org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:317)
  at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:241)
  at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:215)
  at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
  at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
  at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
  at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
  at testJPA.main(testJPA.java:27)
=======================================
似乎每個 class 都要 enhance
請問該怎麼 enhance 呢?
因為我每次都失敗 >"<


reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
1726 OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 2159 2010-10-08 16:53
1513 Re:OpenJPA 在 createEntityManagerFactory 錯誤 koji 46 2010-10-09 10:01
1482 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 9454 2010-10-11 14:59
1429 Re:OpenJPA 在 createEntityManagerFactory 錯誤 pico2k 60 2010-10-11 15:41
1456 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 9259 2010-10-11 15:53
1432 Re:OpenJPA 在 createEntityManagerFactory 錯誤 pico2k 20 2010-10-11 16:47
1544 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 1568 2010-10-11 17:39
1421 Re:OpenJPA 在 createEntityManagerFactory 錯誤 koji 92 2010-10-11 18:40
1457 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 1243 2010-10-12 13:58
1392 Re:OpenJPA 在 createEntityManagerFactory 錯誤 koji 35 2010-10-12 17:44
1420 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 404 2010-10-18 11:05
1355 Re:OpenJPA 在 createEntityManagerFactory 錯誤 koji 33 2010-10-18 14:04
1388 Re:OpenJPA 在 createEntityManagerFactory 錯誤 BaileyCheng 59 2010-10-18 17:43
1421 Re:OpenJPA 在 createEntityManagerFactory 錯誤 Mandrake 339 2010-10-19 11:30
1330 Re:OpenJPA 在 createEntityManagerFactory 錯誤 koji 55 2010-10-19 14:01
1545 Re:OpenJPA 在 createEntityManagerFactory 錯誤 BaileyCheng 64 2010-10-19 19:12
» JWorld@TW »  Object Relational Mapping » JPA

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8