Problem saving EJB with OSGI

I am starting to use EJB for a project ( eCOM Project actually).

I have several beans that I need to store in a database, for example Status bean. Code that does this:

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

This is the stack I get when I try to save an object in the database:

 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 

Do you have any explanation for what could be wrong here?

+4
source share
1 answer

JSR-303 validations and remote connection do not match well. See GLASSFISH-17003 .

0
source

All Articles