Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
1.0.3.Final, glassfish_1.0.0.CR4
-
None
Description
We have 20 testclasses. the ejb's are injected by the @EJB annotation.
If each testclass is run standalone (using eclipse), everything works and the tests are successful.
If all testclasses are run together (using eclipse or maven surefire plugin) the test fails after the first two testclasses with one of the two following error messages:
java.lang.NullPointerException
at arqtest.test.GreeterTest5.test(GreeterTest5.java:23)
...
or
java.lang.IllegalArgumentException: ArquillianServletRunner not found. Could not determine ContextRoot from ProtocolMetadata, please contact DeployableContainer developer.
...
If I change the @Remote annotation of the stateless beans to @Local the tests are successful, even if run together.
To test this i created a very simple test project, which i attached to this issue.