javax:javaee-api 6 is not correct bytecode IIRC, more or less API to implement but not to run (and tests need runtime ;)).
It has been fixed with EE 7 API jar btw. That said you use javaee-api from openejb so don't mix both. About LocalInitialContextFactory you mix sthg (surely not clear). Using new InitialContext to boot the container (old openejb way) it was mandatory but using EJBContainer API it is not, the API does it for you (more or less) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-04-17 8:29 GMT+02:00 amber <[email protected]>: > Hi romain, > > javax.javaee-api is jee 6 api, why is it wrong ? > > > p.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.openejb.client.LocalInitialContextFactory"); > is present in almost all samples ??? > > Glad you find the problem ^^ > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/OpenEJB-testing-REST-services-tp4668791p4668835.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
