1 Reply Latest reply on Sep 4, 2006 7:55 PM by doug.palmer

    JBossWS as a sub deployment?

    doug.palmer

      Hi

      I'm having a bit of a problem deploying a war file with a JSR109 service in it. I have an MBean that builds a war file from an xml file and then deploys it. If I build the war file and then tell the main deployer to deploy the war file JBossWS processes the war and publishes the service. To deploy I use:

      mainDeployer.deploy(warFile)


      However, if I deploy the war file as a sub deployment. The war file is deployed by the Tomcat deployer and JBossWS doesn't process the war so the web service isn't published. To deploy as a sub deployment I use:

      mainDeployer.deploy(new DeploymentInfo(new URL("file://"+warFile), di, server));


      Why doesn't the JBossWS deployer process the deployment in the second case? Do I need to tag the DeploymentInfo with any extra info so that it is processed by JBossWS?

      Regards
      Doug

        • 1. Re: JBossWS as a sub deployment?
          doug.palmer

          I think I've figured this out. I'm not sure if it is a bug or a feature? It would appear that calling deploy on the main deployer with a relative url to a war file is processed by the Tomcat deployer and calling deploy with an absolute url to a war file is processed by the JBossWS deployer.

          I'm not sure if this is intentional or not. However, it is I can now deploy a nested war simply by providing the main deployer with an absolute url to my war file.

          Regards
          Doug