Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1859

jboss cli creation and deletion of repositories fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.2.0.Final
    • 3.1.3.Final
    • None
    • None

    Description

      I am trying to create and delete a repository as part of an automated build deployment step but it doesn't seem to be able to delete the repository again after creation. The first deletion fails. A second attempt succeeds but a subsequent attempt to create a new repository fails. Stopping and starting the JBoss server at this point reverts back to a stable state and you can create the repository again.

      The create-repository script is:

      connect
      batch
      /subsystem=modeshape/repository=cpf4:add()
      run-batch
      

      and the delete-repository script is:

      connect
      batch
      /subsystem=modeshape/repository=cpf4:remove
      run-batch
      

      Short output of the problem errors is:

      09:47:29,700 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.modeshape.cpf4.data (missing) dependents: [service jboss.modeshape.cpf4.binaries, service jboss.modeshape.cpf4.indexes]
            service jboss.modeshape.cpf4.repository (missing) dependents: [service jboss.modeshape.cpf4.repository.reference-factory]
      
      
      Failed to execute batch: undefined
      silvercat% diff standalone/configuration/standalone-modeshape.xml standalone/configuration/standalone-modeshape.xml.bak
      231d230
      <             <repository name="cpf4"/>
      silvercat% bin/jboss-cli.sh --file=../delete_repository.cli
      #1 /subsystem=modeshape/repository=cpf4:remove
      The batch executed successfully.
      silvercat% diff standalone/configuration/standalone-modeshape.xml standalone/configuration/standalone-modeshape.xml.bak
      silvercat% bin/jboss-cli.sh --file=../create_repository.cli
      #1 /subsystem=modeshape/repository=cpf4:add()
      09:47:56,379 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) JBAS014612: Operation ("add") failed - address: ([
          ("subsystem" => "modeshape"),
          ("repository" => "cpf4")
      ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.modeshape.cpf4.repository.reference-factory is already registered
      

      See forum article for more details

      Attachments

        Issue Links

          Activity

            People

              hchiorean Horia Chiorean (Inactive)
              bwallis42_jira Brian Wallis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: