0 Replies Latest reply: Aug 17, 2011 3:09 PM by Prathap KK RSS

Illegal Argument Exception - Caused by Container name cannot be null

Prathap KK Newbie

I am  trying to deploy a EJB2.1 webservice. When i deployed the EJB jar file, it gave  an Exception  Illegal Argument Exception- Container Name cannot be null

 

The stack trace is as follows

 

 

23:39:20,750 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6746215{vfs:///F:/J

boss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar}

23:39:20,843 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6746215{vfs:///F:/J

boss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar}

23:39:20,843 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6746215{vfs:///F:/J

boss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar}

23:39:21,609 INFO  [org.jboss.ejb.deployers.EjbDeployer] installing bean: ejb/#EJBWebService,uid31108950

23:39:21,656 INFO  [org.jboss.ejb.deployers.EjbDeployer]   with dependencies:

23:39:21,687 INFO  [org.jboss.ejb.deployers.EjbDeployer]   and supplies:

23:39:21,687 INFO  [org.jboss.ejb.deployers.EjbDeployer]        jndi:MyEJBWebService

23:39:25,312 WARN  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] Spring not available, skipping check for user provid

ed jbossws-cxf.xml / cxf.xml configuration files.

23:39:25,390 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] Add Service

id=EJBWebService

address=http://localhost:8080/EchoService_EJB2/EJBWebServiceBean

implementor=com.ejb.service.ejb2.EJBWebServiceBean

invoker=org.jboss.wsf.stack.cxf.InvokerEJB3

serviceName={http://ejb2.service.ejb.com/}EJBWebServiceBeanService

portName={http://ejb2.service.ejb.com/}EJBWebServiceBeanPort

wsdlLocation=null

mtomEnabled=false

23:39:28,890 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://ejb2.service.ejb.com/}EJBWebServiceB

eanService from class com.ejb.service.ejb2.EJBWebServiceBean

23:39:29,921 INFO  [org.apache.cxf.endpoint.ServerImpl] Setting the server's publish address to be http://localhost:8080/EchoService_EJB2/EJBW

ebServiceBean

23:39:30,515 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] WSDL published to: file:/F:/Jboss/jboss-6.0.0.Final/server/default/d

ata/wsdl/EchoService_EJB2.jar/EJBWebServiceBeanService.wsdl

23:39:30,656 INFO  [org.jboss.wsf.framework.management.DefaultEndpointRegistry] register: jboss.ws:context=EchoService_EJB2,endpoint=EJBWebSer

vice

23:39:31,046 INFO  [org.jboss.wsf.framework.management.DefaultEndpointRegistry] remove: jboss.ws:context=EchoService_EJB2,endpoint=EJBWebServi

ce

23:39:31,187 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfs:///F:/Jboss/jboss-6.0.0.F

inal/server/default/deploy/EchoService_EJB2.jar state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Err

or during deploy: vfs:///F:/Jboss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.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.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.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74)

[:0.2.2]

        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95)

[:0.2.2]

        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_23]

        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_23]

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_23]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]

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]

        ... 37 more

 

23:39:32,031 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentE

xception: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

 

*** DEPLOYMENTS IN ERROR: Name -> Error

 

vfs:///F:/Jboss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar -> org.jboss.deployers.spi.DeploymentException: Error during depl

oy: vfs:///F:/Jboss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar

 

 

DEPLOYMENTS IN ERROR:

  Deployment "vfs:///F:/Jboss/jboss-6.0.0.Final/server/default/deploy/EchoService_EJB2.jar" is in error due to the following reason(s): java.l

ang.IllegalArgumentException: Container name cannot be null

 

        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]

        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]

        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]

        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.

2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74)

[:0.2.2]

        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95)

[:0.2.2]

        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_23]

        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_23]

        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_23]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_23]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]