embedded-glassfish
  1. embedded-glassfish
  2. EMBEDDED_GLASSFISH-123

Deployer.undeploy error - org.glassfish.api.admin.CommandValidationException: Invalid option: --drop-tables

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: None
    • Component/s: Docs
    • Labels:
      None

      Description

      http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/Deployer.html#undeploy%28java.lang.String,%20java.lang.String...%29

      shows -
      Example:

      deployer.undeploy("foo", "--drop-tables", "true");

      when i try to invoke i encounter this error:

      testHelloWorld(com.sun.jersey.samples.helloworld.HelloWorldWebAppTest) Time elapsed: 6.891 sec <<< ERROR!
      com.sun.jersey.test.framework.spi.container.TestContainerException: org.glassfish.embeddable.GlassFishException: org.glassfish.api.admin.CommandValidationException: Invalid option: --drop-tables
      at com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer.undeployAllApplications(EmbeddedGlassFishTestContainerFactory.java:237)
      at com.sun.jersey.test.framework.spi.container.embedded.glassfish.EmbeddedGlassFishTestContainerFactory$EmbeddedGlassFishTestContainer.stop(EmbeddedGlassFishTestContainerFactory.java:257)

      executing code does:
      org.glassfish.embeddable.GlassFish glassfish = GlassFishRuntime.bootstrap().newGlassFish();
      org.glassfish.embeddable.Deployer deployer = glassfish.getDeployer();
      deployer.undeploy("myAppName", "--drop-tables", "true");

      googling shows correct option is:

      deployer.undeploy(deployedApp, "--droptables", "true");

      Please fix documentation to use correct --droptables instead of incorrect --drop-tables

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            jbenoit
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: