2011-04-22 101 views
4

我開始將EJB用於項目(實際上爲eCOM Project)。OSGI的EJB持久性問題

我有一些bean需要保存到數據庫,比如狀態bean。 執行此代碼是:

Status status = new Status(); 
statut.setLabel("the_label"); 
this.em.persist(status); 

這是堆棧跟蹤試圖保存對象到數據庫時,我得到:

22 avr. 2011 19:09:42 com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator handleFullLogging 
ATTENTION: IOP00810064: Unable to load proxy class for interfaces 
    [javax.validation.constraints.NotNull] because codebase URL 
    osgi://org.glassfish.hk2.external.bean-validator/1.1.0 is malformed 
org.omg.CORBA.MARSHAL: ATTENTION: IOP00810064: Unable to load proxy class for interfaces 
    [javax.validation.constraints.NotNull] because codebase URL 
    osgi://org.glassfish.hk2.external.bean-validator/1.1.0 is malformed vmcid: OMG minor code: 64 completed: No 
... 
Caused by: java.net.MalformedURLException: unknown protocol: osgi 

你有什麼可以去錯在這裏任何解釋?

+0

看起來有人沒有註冊「osgi」協議的URL協議處理程序。我相信這是一個Glassfish特定的問題,你最好用「glassfish」標籤標記它。 – 2011-04-22 17:35:45

回答