Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23958

[GSS](7.4.z) WFLY-17732 - application fails to fully undeploy after failed deploy due to JNDI conflict

XMLWordPrintable

    • False
    • None
    • False
    • ?
    • Hide

      Restart

      Undeploy version 1 before deploying version 2 to avoid the initial binding error

      Show
      Restart Undeploy version 1 before deploying version 2 to avoid the initial binding error
    • Hide
      1. Deploy app-1.0.0.war.
      1. Deploy app-2.0.0.war. It will fail as expected due to ejb JNDI and web context conflict
      1. Undeploy app-1.0.0.war
      1. Undeploy app-20.0.war
      2. Deploy app-2.0.0.war. It will fail again 
      Show
      Deploy app-1.0.0.war. Deploy app-2.0.0.war. It will fail as expected due to ejb JNDI and web context conflict Undeploy app-1.0.0.war Undeploy app-20.0.war Deploy app-2.0.0.war. It will fail again 

      Application is not fully removed after an EJB or Web Context binding error.

      Deploying a new version of an application that uses the same EJB JNDI & Web Context , will cause a binding error which is expected, but after undeploying both and trying to deploy just app-2 again still fails, because app-2 which was the one that originally failed to deploy because of the binding conflict did not get fully undeployed.

       

      The jndi-view after deploy app-1, deploy app-2, undeploy app-1, undeploy app-2:

      /subsystem=naming:jndi-view
      
                  "java:jboss/exported" => {"app-2.0.0" => {
                      "class-name" => "javax.naming.Context",
                      "children" => {"StatelessEJB!test.StatelessRemote" => {
                          "class-name" => "test.StatelessRemote",
                          "value" => "?"
                      }}
                  }},
                  "java:global" => undefined
              },
              "applications" => {"app-2.0.0.war" => {
                  "java:app" => {"AppName" => {
                      "class-name" => "java.lang.String",
                      "value" => "app-2.0.0"
                  }},
                  "modules" => {"app-2.0.0" => {"java:module" => {
                      "InAppClientContainer" => {
                          "class-name" => "java.lang.Boolean",
                          "value" => "false"
                      },
                      "InstanceName" => {
                          "class-name" => "java.lang.Object",
                          "value" => "?"
                      },
                      "ModuleName" => {
                          "class-name" => "java.lang.String",
                          "value" => "app-2.0.0"
                      },
                      "Validator" => {
                          "class-name" => "javax.validation.Validator",
                          "value" => "?"
                      },
                      "ValidatorFactory" => {
                          "class-name" => "org.jboss.as.ee.beanvalidation.LazyValidatorFactory",
                          "value" => "org.jboss.as.ee.beanvalidation.LazyValidatorFactory@13d36a73"
                      }
                  }}}
              }} 

        1. JBEAP-23958.patch
          7 kB
        2. test.zip
          3 kB

            rhn-cservice-bbaranow Bartosz Baranowski
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: