glassfish
  1. glassfish
  2. GLASSFISH-10385

[Embedded] deploy fails without warning on no virtual server

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      10,385

      Description

      When a war is being deployed in embedded gf and no virtualservers field is used
      in DeployParams, the deploy will fail without providing SEVERE or WARNING.
      The following line is printed:
      INFO: webcontainer.webModuleNotLoadedNoVirtualServers
      This is printed by com.sun.enterprise.web.WebContainer.loadWebModule (around
      line 1498) since wmInfo.getVirtualServers() is empty.

      From the output, you get the impression that deployment succeeded:
      Oct 18, 2009 5:08:16 PM com.sun.enterprise.web.WebApplication start
      INFO: Loading application HelloEmbedded at /HelloEmbedded
      EmbeddedDeployer.deploy() returns a String, as can be expected on successful
      deployment.

      Solution: provide virtualservers in DeployParams.
      deployParams.virtualservers="server";

      I think it might be better that if no virtualservers are specified, the default
      one should be used. Or at least an error should be printed, not giving the user
      the impression that deployment succeeded.

      Related to #10301, but no NPE is thrown in this case.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            johanvos
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: