Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9389

CLI deploy with --name fails to deploy subdeployments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • EAP 6.0.0
    • Consoles
    • None
    • Workaround Exists
    • Hide

      rename the original ear to the name you want, then deploy without specifying --name

      Show
      rename the original ear to the name you want, then deploy without specifying --name
    • NEW

    Description

      I have an ear file with inside a jar file with an ejb.
      Use the CLI to deploy with:
      > deploy simpleejb3.ear

      In the console log:

      12:22:42,130 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "simpleejb3.ear"
      12:22:42,174 INFO [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015876: Starting deployment of "simpleejb3-ejb.jar"
      12:22:42,293 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-5) JNDI bindings for session bean named sbean in deployment unit subdeployment "simpleejb3-ejb.jar" of deployment "simpleejb3.ear" are as follows:

      java:global/simpleejb3/simpleejb3-ejb/sbean!tf.sbeanLocal
      java:app/simpleejb3-ejb/sbean!tf.sbeanLocal
      java:module/sbean!tf.sbeanLocal
      java:global/simpleejb3/simpleejb3-ejb/sbean!tf.sbeanRemote
      java:app/simpleejb3-ejb/sbean!tf.sbeanRemote
      java:module/sbean!tf.sbeanRemote
      java:jboss/exported/simpleejb3/simpleejb3-ejb/sbean!tf.sbeanRemote

      and the bean will work.

      Now undeploy fully (+ restarted) and deploy again with:

      > deploy simpleejb3.ear --name=b

      and the log :

      12:23:41,300 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "b"
      12:23:41,431 INFO [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011907: Register module: Module "deployment.b:main" from Service Module Loader
      12:23:41,598 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "b"

      A test showed that the EJB was indeed not deployed/accessible.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-hbraun Heiko Braun
              tfonteyn Tom Fonteyne (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: