Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8777

"jar-file" entry in persistence.xml ignored in JBoss 6.0.0 CR1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • No Release
    • 6.0.0.CR1, 6.0.0.Final
    • EJB
    • None
    • Windows XP, JDK 1.6.0_23

    • Hide

      1. Pack entity class into jar.
      2. Place this jar into jboss deploy dir.
      3. Create separate EJB jar which uses this entity, in persistence.xml specify "jar-file" entry, use jar name from step 1.
      4. Deploy the EJB.

      Result: entity class not loaded by JPA.
      Expected result: entity class loaded by JPA.

      Show
      1. Pack entity class into jar. 2. Place this jar into jboss deploy dir. 3. Create separate EJB jar which uses this entity, in persistence.xml specify "jar-file" entry, use jar name from step 1. 4. Deploy the EJB. Result: entity class not loaded by JPA. Expected result: entity class loaded by JPA.

      If entity classes packed in separate jar and then we deploy ejb jar with persistence.xml, which have "jar-file" entry, entity classes from specified jar not loaded by JPA in JBoss 6.0.0 CR1 and 6.0.0 Final.
      JBoss 5.1 works ok, JBoss 6.0.0 M3 works ok (not tested with milestones 4 and 5).

      Adding "exclude-unlisted-classes" entry and setting it to "false" doesn't help.

              Unassigned Unassigned
              eugene-71 Eugene Romanenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: