Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1388

@EJB not working in embedded glassfish for @Remote Stateless beans if called more than twice

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 1.0.3.Final, glassfish_1.0.0.CR4
    • Base Implementation
    • 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.

      Attachments

        1. arqtest.zip
          29 kB
        2. arqtest2.zip
          29 kB

        Activity

          People

            Unassigned Unassigned
            dokuhn Dominik Kuhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: