Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-3516

JAX-WS webservice is throwing exception “Caused by: java.lang.IllegalArgumentException: Target container name not set” in jboss-5.0.1.GA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • None
    • Hide

      For reference, I am attaching link of source code of sample working in jbossEAP. There is a demo project which is not working in Jboss 5.0.1. It seems that some settings are required to deploy web service.

      https://1drv.ms/u/s!AtqnARVg9KKRgQaWiyx7gXMo7rwo

      Show
      For reference, I am attaching link of source code of sample working in jbossEAP. There is a demo project which is not working in Jboss 5.0.1. It seems that some settings are required to deploy web service. https://1drv.ms/u/s!AtqnARVg9KKRgQaWiyx7gXMo7rwo

      I have created JAX-WS service which is pretty simple but having problem in deployment in jboss-5.0.1.GA but same web service is perfectly working in jboss-eap-6.2.

      Following Exception is coming in jboss-5.0.1.GA:

      2016-09-04 10:42:32,217 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.IllegalArgumentException: Target container name not set
      at org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookEJB3.createDeployment(JAXWSDeployerHookEJB3.java:87)
      at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:71)
      at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
      at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:112)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      ... 18 more
      2016-09-04 10:42:32,275 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (main) ClassLoaderDomain@9d8062f

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      unregisterClassLoader BaseClassLoader@457dfcb5

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      2016-09-04 10:42:32,275 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] (main) UnifiedLoaderRepository removed(false) null
      2016-09-04 10:42:32,275 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderPolicy] (main) VFSClassLoaderPolicy@5259f2b7

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      shutdown!
      2016-09-04 10:42:32,275 DEBUG [org.jboss.classloader.spi.base.BaseClassLoader] (main) BaseClassLoader@457dfcb5

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      shutdown!
      2016-09-04 10:42:32,276 DEBUG [org.jboss.classloader.spi.base.BaseClassLoaderDomain] (main) ClassLoaderDomain@9d8062f

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      shutdown!
      2016-09-04 10:42:32,276 DEBUG [org.jboss.classloader.spi.ClassLoaderSystem] (main) DefaultClassLoaderSystem@1524be18 unregistered domain=ClassLoaderDomain@9d8062f{name=vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/ parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@1f3c2480{DefaultDomain}}
      2016-09-04 10:42:32,276 DEBUG [org.jboss.classloading.spi.dependency.Domain] (main) org.jboss.classloading.spi.dependency.Domain@3185c8e2

      {vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/}

      remove module VFSDeploymentClassLoaderPolicyModule vfszip:/D:/jboss-5.0.1.GA/server/newdms/deploy/simple-webservice.war/:0.0.0

              lkrzyzan@redhat.com Libor Krzyzanek
              shiv.mymail_jira S.P Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: