-
Bug
-
Resolution: Done
-
Major
-
2.2.3.Final
-
None
-
- Set the ARCHIVE_ISOLATION_SYSTEM_PROPERTY = "org.jboss.weld.se.archive.isolation" to false
- Add a jar-file with an empty META-INF\beans.xml to the classpath
-
Low
Using an empty beans.xml, the following error occurs when Weld SE tries to merge the beans.xml files:
org.jboss.weld.exceptions.IllegalStateException: WELD-001201: Error loading beans.xml unknown at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:62) at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:124) at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:126) at org.jboss.weld.environment.se.Weld.mergeToOne(Weld.java:255) at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:230) at org.jboss.weld.environment.se.Weld.initialize(Weld.java:148) at org.jboss.weld.environment.se.test.CDIProviderTest.testCDIProvider(CDIProviderTest.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)