Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4139

Resource adapters subsystem doesn't unregister JNDI names of undeployed resources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.2.Final (EAP)
    • 7.1.1.Final
    • JCA
    • None
    • Hide

      1)start standalone instantion of server
      2)go to JBOSS home directory
      3)run
      ./integration-tests.sh install -Dtest=org.jboss.as.test.smoke.deployment.rar.examples.*
      all test pass
      4)run the last command again

      Show
      1)start standalone instantion of server 2)go to JBOSS home directory 3)run ./integration-tests.sh install -Dtest=org.jboss.as.test.smoke.deployment.rar.examples.* all test pass 4)run the last command again

    Description

      2nd run for all tests from package org.jboss.as.test.smoke.deployment.rar.examples on standalone instance fails.
      Seems, that after deployment of .rar with the same name like previous archive, server tries to register JNDI names from both archives, even in case, that first archive is undeployed and resources are unbound.

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.ra.deployment."basic.rar_2": org.jboss.msc.service.StartException in service jboss.ra.deployment."basic.rar_2": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [basic]
      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:126)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
      Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [basic]
      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:110)
      ... 5 more
      Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/home/vrastsel/jboss-as/build/target/jboss-as-7.1.1.Final-SNAPSHOT/standalone/tmp/vfs/temp4026624ced5f302d/content-603f46fde5d58cd/contents/
      at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2174)
      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:173)
      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:104)
      ... 5 more
      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.connector.connection-factory.java:jboss/name1 is already registered
      at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      at org.jboss.as.connector.metadata.deployment.AbstractResourceAdapterDeploymentService$AbstractAS7RaDeployer.bindConnectionFactory(AbstractResourceAdapterDeploymentService.java:261)
      at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1946)
      ... 7 more

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            vrastsel_jira Vladimir Rastseluev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: