1 Reply Latest reply on Sep 20, 2011 2:40 AM by Prathap KK

    WebService on EJB2.1 SessionBean - IllegalArgumentException: Container name cannot be null

    Silvio Matthes Newbie

      We've got an application with many legacy EJB2.1-SessionBeans that we deploy a webservice for with axis.

       

      We want to migrate to JBoss 6.0.0 and deploy Webservices for these EJB2.1-SessionBeans via JBossWS.

      JBossWS should support EJB2.1.

       

      But on deployment we got an exception:

       

      java.lang.IllegalArgumentException: Container name cannot be null
      

       

      What's the problem here? What do we miss? Please, can anybody help us out here?

       

       

      Details:

       

      Our sessionbean looks like this:

       

      @WebService
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      /**
       * @ejb.bean 
       *    type="Stateless" 
       *    name="IfLox" 
       *    jndi-name="ejb/IfLox"
       *    local-jndi-name="ejb/local/IfLox"
       *    transaction-type="Bean"
       * 
       * @ejb.interface generate="local,remote"
       *                extends="javax.ejb.EJBObject" 
       *                local-extends="javax.ejb.EJBLocalObject"
       *                remote-pattern="IfLoxManager"
       *                local-pattern="IfLoxManagerLocal"
       * 
       * @ejb.home      generate="local,remote"
       *                extends="javax.ejb.EJBHome" 
       *                local-extends="javax.ejb.EJBLocalHome"
       *                remote-pattern="IfLoxManagerHome"
       *                local-pattern="IfLoxManagerLocalHome"
       * 
       * @jboss.container-configuration name="Standard Stateless SessionBean"
       */
      public class IfLoxManagerEJB extends IfBeanBase implements JErrorCodesEtrade, JEnum, JXcomDef
      {
       //... Methods
      }
      

       

      The sessionbean itself deploys without a problem if we don't use the WebService-Annotations.

      This is the relevant log with the exception thrown on serverstart:

       

      19:00:07,857 WARN  [DescriptorDeploymentAspect] Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.
      19:00:07,871 INFO  [MetadataBuilder] Add Service
       id=IfLox
       address=http://192.168.101.179:8080/beans/IfLoxManagerEJB
       implementor=de.xcom.bank.frontoffice.iflox.IfLoxManagerEJB
       invoker=org.jboss.wsf.stack.cxf.InvokerEJB3
       serviceName={http://iflox.frontoffice.bank.xcom.de/}IfLoxManagerEJBService
       portName={http://iflox.frontoffice.bank.xcom.de/}IfLoxManagerEJBPort
       wsdlLocation=null
       mtomEnabled=false
      19:00:08,080 INFO  [ReflectionServiceFactoryBean] Creating Service {http://iflox.frontoffice.bank.xcom.de/}IfLoxManagerEJBService from class de.xcom.bank.frontoffice.iflox.IfLoxManagerEJB
      19:00:08,972 INFO  [ServerImpl] Setting the server's publish address to be http://192.168.101.179:8080/beans/IfLoxManagerEJB
      19:00:09,126 INFO  [WSDLFilePublisher] WSDL published to: file:/opt/jboss-6.0.0.Final/server/bank/data/wsdl/onlinebank.ear/beans.jar/IfLoxManagerEJBService.wsdl
      19:00:09,150 INFO  [DefaultEndpointRegistry] register: jboss.ws:context=beans,endpoint=IfLox
      19:00:09,168 INFO  [DefaultEndpointRegistry] remove: jboss.ws:context=beans,endpoint=IfLox
      19:00:09,180 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///opt/jboss-6.0.0.Final/server/bank/deploy/onlinebank.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///opt/jboss-6.0.0.Final/server/bank/deploy/onlinebank.ear/beans.jar/
          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
          at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
          at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
          at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
          at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
          at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
          at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
          at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
          at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
          at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      Caused by: java.lang.IllegalArgumentException: Container name cannot be null
          at org.jboss.webservices.integration.invocation.InvocationHandlerEJB3.init(InvocationHandlerEJB3.java:91) [:6.0.0.Final]
          at org.jboss.wsf.framework.deployment.DefaultLifecycleHandler.start(DefaultLifecycleHandler.java:59) [:3.4.1.GA]
          at org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect.start(EndpointLifecycleDeploymentAspect.java:44) [:3.4.1.GA]
          at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:123) [:6.0.0.Final]
          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
          ... 44 more
      
      

       

      Any help would be highly appreciated!

       

      Kind Regards,

      Silvio Matthes.