2 Replies Latest reply on Feb 1, 2011 2:19 PM by Marko Asplund

    'Target container name not set' deployment error

    Timothy Landon Newbie

      I'm hoping there is a quick answer to this one.  I'm attempting to deploy a POJO as a stateless session bean web service.  We are using Jboss 5.1.0GA.  Below is the error:

       

      2010-06-03 11:37:01,873 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

              SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
              SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface

       

      2010-06-03 11:37:01,947 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
      2010-06-03 11:37:01,948 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
      2010-06-03 11:37:01,969 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

              SecureManagementView/remote - EJB3.x Default Remote Business Interface
              SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface

       

      2010-06-03 11:37:02,070 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
      2010-06-03 11:37:02,071 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
      2010-06-03 11:37:02,090 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

              SecureProfileService/remote - EJB3.x Default Remote Business Interface
              SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface

       

      2010-06-03 11:37:02,581 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
      2010-06-03 11:37:02,816 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
      2010-06-03 11:37:06,629 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
      2010-06-03 11:37:07,038 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#EventManager,uid32786703
      2010-06-03 11:37:07,038 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,038 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:safariview/EventManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:local/EventManager@4322108
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:EventManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#ConfigManager,uid31109664
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:ConfigManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:local/ConfigManager@29879392
      2010-06-03 11:37:07,039 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#ArchiveManager,uid14978636
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:ArchiveManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:local/ArchiveManager@7316467
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:safariview/ArchiveManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#DeviceManager,uid20589919
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:local/DeviceManager@24432057
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:safariview/DeviceManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer]     jndi:DeviceManager
      2010-06-03 11:37:07,039 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#SecurityManager,uid7913941
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:local/SecurityManager@24004634
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:SecurityManager
      2010-06-03 11:37:07,040 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#PcspI01Service,uid33402937
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:safariview/PcspI01Service
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:PcspI01Service

      2010-06-03 11:37:07,040 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#PerfStatsManager,uid11039805
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:PerfStatsManager
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:local/PerfStatsManager@20948677
      2010-06-03 11:37:07,040 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#CapacityPlanManager,uid23548718
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:CapacityPlanManager
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]     jndi:local/CapacityPlanManager@31325513
      2010-06-03 11:37:07,040 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#EMSAdminManager,uid8788412
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,040 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:EMSAdminManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:local/EMSAdminManager@18871761
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:safariview/EMSAdminManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#RequestManager,uid231939
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:safariview/RequestManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:local/RequestManager@21202838
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:RequestManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#AlarmManager,uid5888339
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:AlarmManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:safariview/AlarmManager
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:local/AlarmManager@8039520
      2010-06-03 11:37:07,041 INFO  [EjbDeployer] installing bean: ejb/safariview.jar#CICMonitorMgr,uid13299428
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   with dependencies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]   and supplies:
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:CICMonitorMgr
      2010-06-03 11:37:07,041 INFO  [EjbDeployer]     jndi:safariview/CICMonitorMgr
      2010-06-03 11:37:07,042 INFO  [EjbDeployer]     jndi:local/CICMonitorMgr@30080500
      2010-06-03 11:37:12,176 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/JBoss5.1/jboss-5.1.0.GA/server/default/deploy/safariview.ear/ state=PreReal mode=Manual requiredState
      =Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/JBoss5.1/jboss-5.1.0.GA/server/default/deploy/safariview.ear/safariview.jar/
              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.doInstallParentFirst(DeployersImpl.java:1210)
              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:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      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:113)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
              ... 30 more
      2010-06-03 11:37:46,672 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS IN ERROR:
        Deployment "vfszip:/C:/JBoss5.1/jboss-5.1.0.GA/server/default/deploy/safariview.ear/" is in error due to the following reason(s): java.lang.IllegalArgumentException: Target container name not set

       

      Note thet the PcspI01Service does deploy successfully above...

       

      My configuration is below.  I've abbreviated but will provide more details if needed later...

       

      Top of my Web Service Implementation class...

       

      @Stateless
      @Remote(PcspI01ServiceRemote.class)
      @RemoteBinding(jndiBinding = "com/cedarpointcom/safariview2/server/oss/PcspI01Service")
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      @WebService
      public class PcspI01ServiceImpl implements SessionBean, PcspI01ServiceRemote 

      ....

      -- methods exposed in the web service are all annotated with @WebMethod

      -- all neccessary methods for comply with EJBObject implemented as well

       

      My remote interface class...


      public interface PcspI01ServiceRemote extends EJBObject {

        ....
        -- method signatures that are implemented in above PcspI01ServiceImpl class
      }

       

      In my ejb-jar.xml file, the appropriate block is added as shown below.

       

      <session>
            <ejb-name>PcspI01Service</ejb-name>
            <home>com.cedarpointcom.safariview2.server.oss.PcspI01ServiceHome</home>
            <remote>com.cedarpointcom.safariview2.server.oss.PcspI01ServiceRemote</remote>
            <ejb-class>com.cedarpointcom.safariview2.server.oss.PcspI01ServiceImpl</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>
            <env-entry>
              <env-entry-name>root</env-entry-name>
              <env-entry-type>java.lang.String</env-entry-type>
              <env-entry-value>public</env-entry-value>
            </env-entry>
             <ejb-local-ref>
              <ejb-ref-name>ejb/RequestManagerLocal</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local-home>com.cedarpointcom.safariview2.common.RequestManagerHomeLocal</local-home>
              <local>com.cedarpointcom.safariview2.common.RequestManagerLocal</local>
              <ejb-link>RequestManager</ejb-link>
            </ejb-local-ref>
          </session>

       

      Both the Remote interface class and the Impl class are jarred up with together.

      The application jar files, as well as our WAR file, is included in a single EAR file, which I place in the deploy directory.

       

      Any help would be greatly appreciated.

       

      Thanks.

        • 1. Re: 'Target container name not set' deployment error
          Michael Voegele Newbie

          I am facing exactly the same problem. When deploying a webservice as EJB3 stateless session bean, I get 'Target container name not set' in 'JAXWSDeployerHookEJB3.createDeployment'.

           

          The webservice looks as follows:

           

          @Stateless

          @WebService(name = "SilentPrint", targetNamespace = "http://localhost:8080/silentprint", serviceName = "SilentPrintService")

          public class SilentPrintServer {

               @WebMethod

               public String sayHelloTo(String name) {

                    return "Hello " + name;

               }

          }

           

          When deploying to JBoss6M3 it works.

           

          When deploying to JBoss5.1.0GA it does not work and I get 'Target container name not set'. I tried on JBoss5.1.0GA 'native', which means the original JBoss5.1.0GA download. I also tried to download the newest JBoss-WS (jbossws-native-3.3.1.GA) and installed it by using 'ant deploy-jboss510'. In both ways, I get the same error:

           

          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:113)

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

          ... 30 more

          08:36:58,088 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

           

          DEPLOYMENTS IN ERROR:

          Deployment "vfszip:/C:/Java/jboss/server/default/deploy/SilentPrintServer.ear/" is in error due to the following reason(s):

          java.lang.IllegalArgumentException: Target container name not set

           

          I am using jre6, so I also copied the 4 jaxws-native libraries to JBOSS_HOME/lib/endorsed, I also downloaded JBoss5.1.0GA-jdk6, no success.

           

          Any help or hint would be very much appreciated.

           

          Thanks.

           

          • 2. Re: 'Target container name not set' deployment error
            Marko Asplund Newbie

            I ran into the same error when trying to expose an EJB 2.0 bean as a Web Service using JSR 181 annotations.

            After migrating the EJB bean entirely from EJB 2.0 to EJB 3.0 (deployment descriptor + code) the issue disappeared.