Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-189

org.jboss.jsr299.tck.tests.implementation.simple.resource.persistenceContext.PersistenceContextInjectionTest persistence.xml Location Bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.2.Final, 1.1.0.Alpha1
    • 1.0.1.Final
    • None
    • None

      org.jboss.jsr299.tck.tests.implementation.simple.resource.persistenceContext.PersistenceContextInjectionTest.war contains persistence.xml file in "WEB-INF/" location. According to the JPA specification, persistence unit root is "WEB-INF/classes" directory. Therefore persistence.xml file must be put into the "WEB-INF/classes/META-INF/persistence.xml".

      Because of above observation, test (testBeanTypesAndBindingTypesOfPersistenceContext) has failed. If we change the location of persistence.xml file, test has passed!

      Exclude list must be updated for including "testBeanTypesAndBindingTypesOfPersistenceContext" method.

              pmuiratbleepbleep Pete Muir (Inactive)
              gerdogdu@managecat.com Gurkan Erdogdu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: