Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10

jboss-cli deploy --force fails for OSGi bundles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Alpha1
    • None
    • CLI, OSGi
    • None
    • Hide

      [standalone@localhost:9999 /] deploy C:\mypath\target\service-1.0-SNAPSHOT.jar
      'service-1.0-SNAPSHOT.jar' already exists in the deployment repository (use --force to replace the existing content in the repository).
      [standalone@localhost:9999 /] deploy C:\mypath\target\service-1.0-SNAPSHOT.jar --force
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"service-1.0-SNAPSHOT.jar\".CONFIGURE_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"service-1.0-SNAPSHOT.jar\".CONFIGURE_MODULE: JBAS018733: Failed to process phase CONFIGURE_MODULE of deployment \"service-1.0-SNAPSHOT.jar\"
      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.module.spec.service.\"deployment.service-1.0-SNAPSHOT.jar\".main is already registered"}}

      Show
      [standalone@localhost:9999 /] deploy C:\mypath\target\service-1.0-SNAPSHOT.jar 'service-1.0-SNAPSHOT.jar' already exists in the deployment repository (use --force to replace the existing content in the repository). [standalone@localhost:9999 /] deploy C:\mypath\target\service-1.0-SNAPSHOT.jar --force {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"service-1.0-SNAPSHOT.jar\".CONFIGURE_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"service-1.0-SNAPSHOT.jar\".CONFIGURE_MODULE: JBAS018733: Failed to process phase CONFIGURE_MODULE of deployment \"service-1.0-SNAPSHOT.jar\" Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.module.spec.service.\"deployment.service-1.0-SNAPSHOT.jar\".main is already registered"}}

      If you try to deploy already-deployed .jar from cli, it says "already exists in the deployment repository (use --force to replace the existing content in the repository)". However, using --force errors with "service already registered" if it is an OSGi bundle.

              tdiesler@redhat.com Thomas Diesler
              jrantav Jarkko Rantavuori (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: