Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-263

Trunk regression: <Resources> declared via context.xml not imported

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • None
    • None

    Description

      This works in 1.0.0, but seems to be failing in trunk:

      $ jar tvf /tmp/foo/tomcatresources.war
      0 Fri Jun 29 19:19:02 PDT 2012 META-INF/
      60 Fri Jun 29 19:19:02 PDT 2012 META-INF/MANIFEST.MF
      0 Fri Jun 29 19:18:30 PDT 2012 WEB-INF/
      314 Fri Jun 29 19:18:32 PDT 2012 WEB-INF/context.xml

      <?xml version="1.0" encoding="UTF-8"?>
      
      <Context>
      
        <Resource name="jdbc/myDB" auth="Container"
                  type="javax.sql.DataSource" username="sa" password=""
                  driverClassName="org.hsqldb.jdbcDriver"
                  url="jdbc:hsqldb:file:data/hsqldb/hsqldb"
                  maxActive="8"
            />
      </Context>
      

      Doesn't seem it will be imported and exist in TomEE as a ResourceInfo in the Assembler and therefore not be used. Instead we'll create a default DataSource and use it for all @Resource refs and persistence.xml files.

      Attachments

        1. ResourceTest.war
          3 kB
          Dimitri
        2. bug-showcase.tar.gz
          4 kB
          Oli Zimpasser

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: