Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6981

Fix org.jboss.test.ws.jaxws.ejb3Integration.WebServiceTestCase for EAP 5.x

    XMLWordPrintable

Details

    • Not Required

    Description

      There are failures [ClassCastException] for org.jboss.test.ws.jaxws.ejb3Integration.WebServiceTestCase in AS testsuite in JBPAPP_5_1 branch.

      There are similar issues for AS6 - JBAS-8244, JBAS-8667 and JBAS-8642

      Tests were executed running tests-ws target against EAP 5.1.1 and latest build from JBPAPP_5_1 branch. Server must be started, target tests-ws do not include tasks for server start and stop.

      [rsvoboda@rosta-ntb testsuite]$ ./build.sh tests-ws
      [rsvoboda@rosta-ntb testsuite]$ ./build.sh -Djboss.dist=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as tests-ws
      

      Main error

      Deployment "jboss.j2ee:jar=webservices-ejb3.jar,name=WebServiceContextEndpoint,service=EJB3" is in error due to the following reason(s): 
      java.lang.ClassCastException: $Proxy124 cannot be cast to javax.naming.Context, **ERROR**
      

      Server log

      08:48:22,586 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jar=webservices-ejb3.jar,name=WebServiceContextEndpoint,service=EJB3 state=Create
      java.lang.ClassCastException: $Proxy124 cannot be cast to javax.naming.Context
      	at org.jboss.util.naming.Util.createSubcontext(Util.java:70)
      	at org.jboss.util.naming.Util.bind(Util.java:104)
      	at org.jboss.util.naming.Util.bind(Util.java:91)
      	at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:932)
      	at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:917)
      	at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bind(JndiSessionRegistrarBase.java:906)
      	at org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:159)
      	at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:220)
      	at org.jboss.ejb3.session.SessionSpecContainer.lockedStart(SessionSpecContainer.java:547)
      	at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:995)
      	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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
      	at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
      	at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      	at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
      	at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
      	at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
      	at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
      	at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
      	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
      	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
      	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
      	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
      	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
      	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
      	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
      	at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:125)
      	at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:52)
      	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
      	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
      	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
      	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
      	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
      	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
      	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
      	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
      	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
      	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
      	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
      	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
      	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:830)
      	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      	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.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
      	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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
      	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
      	at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
      	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
      	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      	at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      	at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
      	at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
      	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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
      	at sun.rmi.transport.Transport$1.run(Transport.java:159)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

      Test full stacktrace

      [rsvoboda@rosta-ntb testsuite]$ ./build.sh -Djboss.dist=/home/rsvoboda/TESTING/jboss-eap-5.1/jboss-as tests-ws
      Searching for build.xml ...
      Buildfile: /home/rsvoboda/devel/JBPAPP_5_1/testsuite/build.xml
      
      tests-ws:
          [junit] Running org.jboss.test.ws.jaxws.ejb3Integration.WebServiceTestCase
          [junit] javax.management.MBeanException
          [junit] 	at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:184)
          [junit] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
          [junit] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          [junit] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          [junit] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          [junit] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          [junit] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          [junit] 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
          [junit] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          [junit] 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
          [junit] 	at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
          [junit] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
          [junit] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          [junit] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          [junit] 	at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          [junit] 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
          [junit] 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          [junit] 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          [junit] 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
          [junit] 	at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
          [junit] 	at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
          [junit] 	at sun.rmi.transport.Transport$1.run(Transport.java:159)
          [junit] 	at java.security.AccessController.doPrivileged(Native Method)
          [junit] 	at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
          [junit] 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
          [junit] 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
          [junit] 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
          [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          [junit] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          [junit] 	at java.lang.Thread.run(Thread.java:662)
          [junit] Caused by: org.jboss.deployment.DeploymentException: Failed to deploy: file:/home/rsvoboda/devel/JBPAPP_5_1/testsuite/output/lib/webservices-ejb3.jar
          [junit] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:838)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
          [junit] 	... 48 more
          [junit] Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
          [junit] 
          [junit] DEPLOYMENTS MISSING DEPENDENCIES:
          [junit]   Deployment "jboss.j2ee:jar=webservices-ejb3.jar,name=WebServiceContextEndpoint,service=EJB3_endpoint" is missing the following dependencies:
          [junit]     Dependency "jboss.j2ee:jar=webservices-ejb3.jar,name=WebServiceContextEndpoint,service=EJB3" (should be in state "Installed", but is actually in state "**ERROR**")
          [junit] 
          [junit] DEPLOYMENTS IN ERROR:
          [junit]   Deployment "jboss.j2ee:jar=webservices-ejb3.jar,name=WebServiceContextEndpoint,service=EJB3" is in error due to the following reason(s): java.lang.ClassCastException: $Proxy124 cannot be cast to javax.naming.Context, **ERROR**
          [junit] 
          [junit] 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1008)
          [junit] 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:954)
          [junit] 	at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)
          [junit] 	at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:859)
          [junit] 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:833)
          [junit] 	... 53 more
          [junit] Tests run: 5, Failures: 0, Errors: 5, Time elapsed: 4,79 sec
          [junit] Test org.jboss.test.ws.jaxws.ejb3Integration.WebServiceTestCase FAILED
          [junit] Running org.jboss.test.ws.jaxws.ejb3Integration.injection.InjectionTestCase
          [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3,94 sec
          [junit] Running org.jboss.test.ws.jaxws.ejb3Integration.packaging.unit.EJB3WSEndpointPackagingTestCase
          [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1,31 sec
          [junit] Running org.jboss.test.ws.jaxws.webserviceref.WebServiceRefClientTestCase
          [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 6,57 sec
          [junit] Running org.jboss.test.ws.jaxws.webserviceref.WebServiceRefEJB3TestCase
          [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4,39 sec
          [junit] Running org.jboss.test.ws.jaxws.webserviceref.WebServiceRefServletTestCase
          [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3,75 sec
      
      BUILD SUCCESSFUL
      Total time: 41 seconds
      

      Attachments

        Issue Links

          Activity

            People

              rsvoboda@redhat.com Rostislav Svoboda
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: