问题
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
回答1:
What worked for me is putting your app name in the properties when creating the EJB container
Map<Object, Object> properties = new HashMap<Object, Object>();
properties.put(EJBContainer.APP_NAME, "your_app_name");
EJBContainer ejbContainer = EJBContainer.createEJBContainer(properties);
来源:https://stackoverflow.com/questions/19521429/running-junit-tests-on-embedded-glassfish-4-causing-warning-as-cdi-005