我正嘗試將爲Glassfish3 + EclipseLink構建的企業應用程序遷移到JBoss7 + Hibernate。EclipseLink到休眠遷移
當我試圖讓我的應用程序,持久性單元不啓動,拋出該異常
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."app-logic.ear/domain-jpa-ejb.jar#dataspace-PU": org.jboss.msc.service.StartException in service jboss.persistenceunit."app-logic.ear/domain-jpa-ejb.jar#dataspace-PU": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]
Caused by: java.lang.NullPointerException
at org.hibernate.annotations.CacheConcurrencyStrategy.fromAccessType(CacheConcurrencyStrategy.java:52)
at org.hibernate.cfg.AnnotationBinder.determineCacheConcurrencyStrategy(AnnotationBinder.java:1038)
at org.hibernate.cfg.AnnotationBinder.buildCacheMock(AnnotationBinder.java:1005)
at org.hibernate.cfg.AnnotationBinder.determineCacheSettings(AnnotationBinder.java:962)
沒有任何類似發生在你身上?看起來很奇怪,拋出了NullPointerException。我試圖檢查CacheConcurrencyStrategy中第52行的內容,但它似乎無法拋出這樣的異常。
請注意,我沒有使用任何持久性提供程序特定的註釋。
謝謝