1

I want to run JUnit Tests on an Embedded Glassfish 4 using CDI. It end up with an endless loop of the following output:

WARNING: AS-CDI-005 Okt 22, 2013 4:49:23 PM org.glassfish.weld.BeanDeploymentArchiveImpl handleEntry

Can anybody help

Chears

4

1 回答 1

3

对我有用的是在创建 EJB 容器时将您的应用程序名称放在属性中

Map<Object, Object> properties = new HashMap<Object, Object>(); 
properties.put(EJBContainer.APP_NAME, "your_app_name");
EJBContainer ejbContainer = EJBContainer.createEJBContainer(properties);
于 2014-02-02T16:29:34.447 回答