OSGI的EJB持久性问题



我开始为一个项目(实际上是eCOM项目)使用EJB。

我有一些需要保存到数据库的bean,比如Status 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

你能解释一下这里出了什么问题吗?

JSR-303验证和远程处理不能很好地匹配在一起。看到glassfish - 17003。

最新更新