java - Failed to create EJBContainer -


i trying create ejbcontainer in order integration testing. here code:

map properties = new hashmap(); properties.put(ejbcontainer.modules,                 new file[]{new file("target/classes"),                  new file("target/test-classes")}); ec = ejbcontainer.createejbcontainer(properties); ctx = ec.getcontext(); 

it throws exception: javax.ejb.ejbexception: can't find directory d:\jboss-4.2.3.ga\jboss-4.2.3.ga\common\lib there no common/lib directory in jboss folder. when debug code inside of ejbcontainer see problem in jbossstandaloneejbcontainerprovider class seems default container provider class. there way change provider? or maybe doing incompatible?


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -