1. Register JBoss 6 Milestone 5
2. Create a new Java EE 6 Web Project with JBoss target
3. Create an EJB
4. Work around bug 191553 by adding <jboss_inst>/common/lib/jboss-ejb-api_3.1_spec.jar on project classpath
5. Create JUnit test for the EJB (using action in popup menu)
6. Run tests on the project
There will be error running the test, the following is the output:
Testcase: testSayHello(p.NewSessionBeanTest): Caused an ERROR
Unable to instantiate container with factories 
javax.ejb.EJBException: Unable to instantiate container with factories 
Test p.NewSessionBeanTest FAILED
Created attachment 106256 [details]
the basic patch
I'm attaching the basic patch. In ideal world this would work just ok. In our world this need jboss.home configured for tests and permgen increased for tests. However even if we could configure these it would fail anyway.
It prints a lot of "Dev Hack" warnings anyway and finally it will fail. There is also issue with some jaxb 1.0 classes not found - perhaps dues to 1.0 prefix :(
I don't think we can fix/WA it for 7.0.
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.