Okey next step, this is what i got so far

Map<String,Object> containerProps 
         = new HashMap<String,Object>(); 
containerProps.put(EJBContainer.PROVIDER, "tomee-embedded");
containerProps.put(EJBContainer.MODULES, new File("target/classes"));
container = EJBContainer.createEJBContainer(containerProps);
userDao = (UserProfileDaoLocal) container.getContext().lookup(
      
"java:global/classes/UserProfileDaoLocal!com.altobridge.omc.orm.dao.UserProfileDaoLocal");

And here is the output:

Results :

Tests in error: 
  testCreateUser(com.altobridge.omc.orm.dao.UserDaoLocalTest): Provider
error. No provider found
  testFindById(com.altobridge.omc.orm.dao.UserDaoLocalTest): Name
"global/classes/UserProfileDaoLocal!com.altobridge.omc.orm.dao.UserProfileDaoLocal"
not found.
  testDeleteUser(com.altobridge.omc.orm.dao.UserDaoLocalTest): Name
"global/classes/UserProfileDaoLocal!com.altobridge.omc.orm.dao.UserProfileDaoLocal"
not found.

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0

       



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Impossible-to-instantiate-a-container-tp4660887p4661398.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to