8 Replies Latest reply on Nov 30, 2010 1:23 PM by Naresh Bhatia

    Marking an EJB as a WebService causes the test to fail

    Naresh Bhatia Novice

      I have a stateless session bean that I am successfully testing with Arquillian. However if I add @WebService and @WebMethod annotations to it, my test fails. Here's the definition of the EJB:

       

       

      @Stateless
      @WebService
      public class SecurityService {
          @WebMethod
          public boolean authenticateUser(String username, String password) {
              ...
          }
      }

      @Stateless

      @WebService

      public class SecurityWebService {


          @WebMethod

          public boolean authenticateUser(String username, String password) {

              ...

          }

      }

       

      Here's the stack trace:

       

       

      testSuccessfulAuthentication(org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest)  Time elapsed: 0.002 sec  <<< FAILURE!

      org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

      at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

      at org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:157)

      at org.jboss.arquillian.testng.Arquillian.run(Arquillian.java:103)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.testng.internal.MethodHelper.invokeHookable(MethodHelper.java:769)

      at org.testng.internal.Invoker.invokeMethod(Invoker.java:552)

      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:723)

      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1027)

      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)

      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)

      at org.testng.TestRunner.runWorkers(TestRunner.java:1030)

      at org.testng.TestRunner.privateRun(TestRunner.java:709)

      at org.testng.TestRunner.run(TestRunner.java:579)

      at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)

      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)

      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)

      at org.testng.SuiteRunner.run(SuiteRunner.java:193)

      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)

      at org.testng.TestNG.runSuitesLocally(TestNG.java:879)

      at org.testng.TestNG.run(TestNG.java:787)

      at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)

      at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)

      at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

      Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)

      at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)

      at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)

      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

      ... 32 more

      Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8181/test/ArquillianServletRunner?outputMode=serializedObject&className=org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest&methodName=testSuccessfulAuthentication. Got 500 (Internal Server Error)

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:103)

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

      ... 35 more

      Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)

      at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)

      at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)

      at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

      ... 32 more

      Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8181/test/ArquillianServletRunner?outputMode=serializedObject&className=org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest&methodName=testSuccessfulAuthentication. Got 500 (Internal Server Error)

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:103)

      at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

      ... 35 more

       

       

      Any ideas what might be going on?

       

      Thanks.

      Naresh

        • 1. Re: Marking an EJB as a WebService causes the test to fail
          jaikiran pai Master

          A 500 error code indicates a server side error. Do you see any exception in the server logs?

          • 2. Re: Marking an EJB as a WebService causes the test to fail
            Naresh Bhatia Novice

            Well, I am not able to reproduce the 500 error anymore, it is now giving me 404s. Here's the stack trace:

             

             

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()
            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)
            at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
            at org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:157)
            at org.jboss.arquillian.testng.Arquillian.run(Arquillian.java:103)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.testng.internal.MethodHelper.invokeHookable(MethodHelper.java:769)
            at org.testng.internal.Invoker.invokeMethod(Invoker.java:552)
            at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:723)
            at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1027)
            at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
            at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
            at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
            at org.testng.TestRunner.privateRun(TestRunner.java:709)
            at org.testng.TestRunner.run(TestRunner.java:579)
            at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
            at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
            at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
            at org.testng.SuiteRunner.run(SuiteRunner.java:193)
            at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
            at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
            at org.testng.TestNG.run(TestNG.java:787)
            at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
            at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
            at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
            at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
            Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)
            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)
            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)
            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
            ... 32 more
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:125)
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)
            ... 35 more
            Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)
            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)
            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)
            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
            ... 32 more
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:125)
            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)
            ... 35 more

            org.jboss.arquillian.impl.event.FiredEventException: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:68)

            at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)

            at org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:157)

            at org.jboss.arquillian.testng.Arquillian.run(Arquillian.java:103)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:597)

            at org.testng.internal.MethodHelper.invokeHookable(MethodHelper.java:769)

            at org.testng.internal.Invoker.invokeMethod(Invoker.java:552)

            at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:723)

            at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1027)

            at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)

            at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)

            at org.testng.TestRunner.runWorkers(TestRunner.java:1030)

            at org.testng.TestRunner.privateRun(TestRunner.java:709)

            at org.testng.TestRunner.run(TestRunner.java:579)

            at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)

            at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)

            at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)

            at org.testng.SuiteRunner.run(SuiteRunner.java:193)

            at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)

            at org.testng.TestNG.runSuitesLocally(TestNG.java:879)

            at org.testng.TestNG.run(TestNG.java:787)

            at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)

            at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)

            at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:597)

            at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

            at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

            Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)

            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)

            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)

            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

            ... 32 more

            Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8181/test/ArquillianServletRunner?outputMode=serializedObject&className=org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest&methodName=testSuccessfulAuthentication. Kept on getting 404s.

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:125)

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

            ... 35 more

            Caused by: java.lang.IllegalStateException: Error launching test org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest public void org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.testSuccessfulAuthentication()

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:61)

            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)

            at org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)

            at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)

            ... 32 more

            Caused by: java.lang.IllegalStateException: Error launching test at http://localhost:8181/test/ArquillianServletRunner?outputMode=serializedObject&className=org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest&methodName=testSuccessfulAuthentication. Kept on getting 404s.

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.execute(ServletMethodExecutor.java:125)

            at org.jboss.arquillian.protocol.servlet_3.ServletMethodExecutor.invoke(ServletMethodExecutor.java:57)

            ... 35 more

             

             

             

            The console output indicates that a dependency injection for the field securityWebService is failing. Here't that field in my code:
            public class SecurityWebServiceTest extends Arquillian {
                @PersistenceContext
                private EntityManager entityManager;
                @Inject
                private UserTransaction utx;
                @Inject
                private SecurityWebService securityWebService;
                ...
            }
            And here's the error on my console:
            SEVERE: Exception while loading the app
            org.glassfish.deployment.common.DeploymentException: WELD-001408 Injection point has unsatisfied dependencies.  Injection point:  field org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.securityWebService;  Qualifiers:  [@javax.enterprise.inject.Default()]
                    at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:181)
                    at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
                    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:252)
                    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:360)
                    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:203)
                    at org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:196)
                    at org.jboss.arquillian.container.glassfish.embedded_3.GlassFishEmbeddedContainer.deploy(GlassFishEmbeddedContainer.java:164)
                    at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:62)
                    at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(ContainerDeployer.java:50)
                    at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
                    at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
                    at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:96)
                    at org.jboss.arquillian.testng.Arquillian.arquillianBeforeClass(Arquillian.java:77)
            classLoader = WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
            SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@7e4ab8b9
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643)
                    at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:446)
                    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:162)
                    at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:92)
                    at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:183)
                    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:115)
                    at org.testng.TestRunner.runWorkers(TestRunner.java:1030)
                    at org.testng.TestRunner.privateRun(TestRunner.java:709)
                    at org.testng.TestRunner.run(TestRunner.java:579)
                    at org.testng.SuiteRunner.runTest(SuiteRunner.java:331)
                    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:326)
                    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:288)
                    at org.testng.SuiteRunner.run(SuiteRunner.java:193)
                    at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:910)
                    at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
                    at org.testng.TestNG.run(TestNG.java:787)
                    at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
                    at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
                    at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
                    at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
            Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Injection point has unsatisfied dependencies.  Injection point:  field org.archfirst.bfoms.webservice.security.test.SecurityWebServiceTest.securityWebService;  Qualifiers:  [@javax.enterprise.inject.Default()]
                    at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:276)
                    at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:122)
                    at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:141)
                    at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:331)
                    at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:317)
                    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:399)
                    at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:178)
                    ... 41 more
            Again, this error occurs as soon as I add @WebService to my stateless session bean.
            Naresh
            • 3. Re: Marking an EJB as a WebService causes the test to fail
              Aslak Knutsen Master

              I would report this as a GlassFish bug. CDI should be able to @Inject a @WebService exposed @Statless bean

              • 4. Re: Marking an EJB as a WebService causes the test to fail
                Naresh Bhatia Novice

                If I take out Arquillian from the picture, Glassfish is able to deploy the WebService/Stateless bean without any problems. I am able to access the bean using both mechanisms. So I suspect that the issue involves Arquillian somehow.

                • 5. Re: Marking an EJB as a WebService causes the test to fail
                  Aslak Knutsen Master

                  hmm.. Could you attach a test case + test code that can reproduce this?

                  • 6. Re: Marking an EJB as a WebService causes the test to fail
                    Naresh Bhatia Novice

                    Sure, I will try to create a test case today.

                    • 7. Re: Marking an EJB as a WebService causes the test to fail
                      Naresh Bhatia Novice

                      Ok, I have attached a file called arquillian-sample.zip to the first message in this thread. If you run mvn test -Pglassfish-embedded-3 you will see the problem. However the war generated by this project works perfectly on GlassFish.

                      • 8. Re: Marking an EJB as a WebService causes the test to fail
                        Naresh Bhatia Novice

                        Aslak, did you get a chance to look at my test case? It is attached to the original post.