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

Using variable in persistence.xml <jta-data-source> leads to deployment-dependencies-error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.1.2.Final (EAP)
    • JPA / Hibernate
    • None

    Description

      Using variables in persistence.xml works (see AS7-3195). But if used within tag jta-data-source an error is show during deployment:

      "jboss.persistenceunit.\"pdfWhitelabelServer.ear/pdfWhitelabelServer.jar#ipadDomain\" Missing[jboss.naming.context.java.\"${ipadserverds.jndipath}\"]",

      (pdfWhitelabel is our product; ipadDomain is the name of the persistence-unit; ${ipadserverds.jndipath} is the variable defined as start-parameter for a node).

      The goal is to deploy one deployment to different server groups (one server group for each customer) and the software should use different datasources in each server group for jpa ( neccessary to avoid resource-dependences between customer-instances).

      According to our needs we use domain-mode but for completeness it doesn't work using standalone either.

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              apatispelikan Stephan Pelikan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: