[arquillian-issues] [JBoss JIRA] (ARQ-1388) @EJB not working in embedded glassfish for @Remote Stateless beans if called more than twice
Dominik Kuhn (JIRA)
jira-events at lists.jboss.org
Wed May 22 02:37:06 EDT 2013
[ https://issues.jboss.org/browse/ARQ-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dominik Kuhn updated ARQ-1388:
------------------------------
Attachment: arqtest2.zip
Without caching ear / jar
> @EJB not working in embedded glassfish for @Remote Stateless beans if called more than twice
> --------------------------------------------------------------------------------------------
>
> Key: ARQ-1388
> URL: https://issues.jboss.org/browse/ARQ-1388
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Base Implementation
> Affects Versions: 1.0.3.Final, glassfish_1.0.0.CR4
> Reporter: Dominik Kuhn
> Attachments: arqtest.zip, arqtest2.zip
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list