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

Entity discovery doesn't work when datasource packaged inside simplified deployment war

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • 6.0.0.M1
    • None
    • None
    • Hide

      A workaround is to explicitly list the entity classes inside persistence.xml using <class> elements.

      Show
      A workaround is to explicitly list the entity classes inside persistence.xml using <class> elements.

      When packaging a datasource configuration file inside a war with the following structure, auto-discovery of entity bean classes inside the /WEB-INF/classes directory fails:

      test.war
      /WEB-INF
      /classes
      import.sql
      /META-INF
      persistence.xml
      sample-ds.xml
      /org
      /jboss
      /test
      EntityBean.class

              Unassigned Unassigned
              sbryzak@redhat.com Shane Bryzak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: