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

Jakarta EE 9.1 TCK Failures

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 8.0.7, 9.0.0-M7
    • None
    • None

    Description

      Download the main git repositories and build them (use Java 8 as system's default or make sure JAVA_HOME points to a valid Java 8 installation)

      git clone git@github.com:apache/tomee-patch-plugin.git
      git clone git@github.com:apache/tomee.git
      git clone git@github.com:apache/tomee-jakarta.git
      git clone git@github.com:apache/tomee-tck.git -b jakartaee9-tck
      
      for n in tomee-patch-plugin tomee tomee-jakarta; do
          (cd $n && mvn clean install -DskipTests -DfailIfNoTests=false)
      done
      

      Ensure your ~/.m2/settings.xml file contains at least the following:

      <settings>
        <profiles>
          <profile>
            <id>jakartaee-tck</id>
            <activation>
              <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
              <jakartaee91.cts.home>/path/to/tcks/.</jakartaee91.cts.home>
              <jakartaee91.ri.home>/path/to/tcks/.</jakartaee91.ri.home>
            </properties>
          </profile>
        </profiles>
      </settings>
      

      Set "/path/to/tcks" to any location where you would like the TCK and RI installed. Make sure the directory exists. Also ensure to add a "/." to the path when configuring it in the settings.xml.

      Once this is done, there is a script that will download and setup the TCK and RI. In Ubuntu 20.04, you will need to install "libarchive-tools"  as the script uses "bsdtar".

      cd tomee-tck
      ./update91tck.sh 
      

       Now you should be all set to run a TCK test.  From inside the tomee-tck project, run this command to test your setup

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.ejb30.bb.localaccess.statelessclient
      

      You should see a lot of output, some SQL errors which you can ignore, and eventually some passing tests

      [INFO] > JavaTest Java Version: null
      [INFO] > JavaTest Java Home: null
      [INFO] > Container Java Version: null
      [INFO] > Container Java Home: null
      
      ===============================================================================
      
          1/-0/?0 - com/sun/ts/tests/ejb30/bb/localaccess/statelessclient/Client#java#exceptionTest1 - PASSED
          2/-0/?0 - com/sun/ts/tests/ejb30/bb/localaccess/statelessclient/Client#java#exceptionTest2 - PASSED
          3/-0/?0 - com/sun/ts/tests/ejb30/bb/localaccess/statelessclient/Client#java#exceptionTest3 - PASSED
          4/-0/?0 - com/sun/ts/tests/ejb30/bb/localaccess/statelessclient/Client#java#exceptionTest4 - PASSED
      
      

      For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc

      Attachments

        1.
        ejb30.lite.interceptor.singleton.lifecycle.annotated aroundConstructInterceptorTest Sub-task Resolved Jonathan Gallimore  
        2.
        ejb30.lite.packaging.war.datasource.global getConnectionEJB Sub-task Resolved Jean-Louis Monteiro  
        3.
        ejb30.lite.packaging.war.datasource.global postConstructRecords Sub-task Resolved Jean-Louis Monteiro  
        4.
        ejb30.lite.packaging.war.datasource.global postConstructRecordsEJB Sub-task Resolved Jean-Louis Monteiro  
        5.
        ejb30.lite.packaging.war.datasource.singleton postConstructRecordsMBeanRepeatable Sub-task Resolved Jean-Louis Monteiro  
        6.
        ejb30.lite.packaging.war.datasource.singleton postConstructRecordsMBeanRepeatable Sub-task Resolved Jean-Louis Monteiro  
        7.
        ejb30.lite.packaging.war.datasource.singleton postConstructRecordsMBeanRepeatable Sub-task Resolved Jean-Louis Monteiro  
        8.
        ejb30.lite.packaging.war.datasource.singleton postConstructRecordsMBeanRepeatable Sub-task Resolved Jean-Louis Monteiro  
        9.
        ejb32.lite.timer.schedule.expire leapYears Sub-task Resolved Jean-Louis Monteiro  
        10.
        ejb32.lite.timer.schedule.expire leapYears Sub-task Resolved Jean-Louis Monteiro  
        11.
        ejb32.lite.timer.schedule.expire leapYears Sub-task Resolved Jean-Louis Monteiro  
        12.
        ejb32.lite.timer.schedule.expire leapYears Sub-task Resolved Jean-Louis Monteiro  
        13.
        ejb32.lite.timer.schedule.expire timerAccessInTimeoutMethod Sub-task Resolved Jean-Louis Monteiro  
        14.
        ejb32.lite.timer.schedule.expire timerAccessInTimeoutMethod Sub-task Resolved Jean-Louis Monteiro  
        15.
        ejb32.lite.timer.schedule.expire timerAccessInTimeoutMethod Sub-task Resolved Jean-Louis Monteiro  
        16.
        ejb32.lite.timer.schedule.expire timerAccessInTimeoutMethod Sub-task Resolved Jean-Louis Monteiro  
        17.
        jaxrs.ee.rs.beanparam.form.plain formFieldParamEntityWithEncodedTest Sub-task Resolved David Blevins  
        18.
        jaxrs.ee.rs.beanparam.form.plain formParamEntityWithEncodedTest Sub-task Resolved David Blevins  
        19.
        jaxrs.ee.rs.container.requestcontext.security getSecurityContextTest Sub-task Resolved Jean-Louis Monteiro  
        20.
        jaxrs.ee.rs.core.securitycontext.basic basicAuthorizationAdminTest Sub-task Resolved Jean-Louis Monteiro  
        21.
        jaxrs.ee.rs.core.securitycontext.basic basicAuthorizationStandardUserTest Sub-task Resolved Jean-Louis Monteiro  
        22.
        jaxrs.ee.rs.ext.paramconverter atomicIntegerIsLazyDeployableAndThrowsErrorTest Sub-task Resolved Unassigned  
        23.
        jaxrs.ee.rs.get optionSubTest Sub-task Resolved Unassigned  
        24.
        jaxrs.jaxrs21.ee.priority paramConverterPriorityTest Sub-task Resolved Unassigned  
        25.
        jaxrs.jaxrs21.ee.sse.sseeventsource closeTest Sub-task Resolved Unassigned  
        26.
        jaxrs.jaxrs21.ee.sse.sseeventsource defaultWaiting1s Sub-task Resolved Unassigned  
        27.
        jaxrs.jaxrs21.ee.sse.sseeventsource reconnectByEventMethodTest Sub-task Resolved Unassigned  
        28.
        jaxrs.jaxrs21.ee.sse.sseeventsource userReconnectByEventMethodTest Sub-task Resolved Unassigned  
        29.
        jaxrs.jaxrs21.ee.sse.sseeventsource wait2Seconds Sub-task Resolved Unassigned  
        30.
        jaxrs.servlet3.rs.applicationpath applicationPathAnnotationEncodedTest Sub-task Resolved Unassigned  
        31.
        jaxrs.spec.context.client clientReaderTest Sub-task Resolved Unassigned  
        32.
        jaxrs.spec.context.client clientWriterTest Sub-task Resolved Unassigned  
        33.
        jaxrs.spec.context.server applicationInjectionTest Sub-task Resolved Unassigned  
        34.
        jaxrs.spec.context.server serverReaderInjectionTest Sub-task Resolved Unassigned  
        35.
        jaxrs.spec.context.server serverWriterInjectionTest Sub-task Resolved Unassigned  
        36.
        jaxrs.spec.filter.globalbinding globalBoundResourceTest Sub-task Resolved Unassigned  
        37.
        jaxrs.spec.filter.interceptor fileReaderContainerInterceptorTest Sub-task Resolved David Blevins  
        38.
        jaxrs.spec.filter.interceptor fileReaderNoInterceptorTest Sub-task Resolved David Blevins  
        39.
        jaxrs.spec.filter.lastvalue readerContextOnContainerTest Sub-task Resolved Unassigned  
        40.
        jaxrs.spec.provider.exceptionmapper mappedExceptionTest Sub-task Resolved Unassigned  
        41.
        jaxrs.spec.provider.jaxbcontext readWriteProviderTest Sub-task Resolved Unassigned  
        42.
        jaxrs.spec.provider.standard fileProviderTest Sub-task Resolved David Blevins  
        43.
        jaxrs.spec.provider.standardhaspriority readWriteBooleanProviderTest Sub-task Resolved Unassigned  
        44.
        jaxrs.spec.provider.standardhaspriority readWriteCharacterProviderTest Sub-task Resolved Unassigned  
        45.
        jaxrs.spec.provider.standardhaspriority readWriteJaxbProviderTest Sub-task Resolved Unassigned  
        46.
        jaxrs.spec.provider.standardhaspriority readWriteMapProviderTest Sub-task Resolved Unassigned  
        47.
        jaxrs.spec.provider.standardnotnull clientDataSourceProviderTest Sub-task Resolved Unassigned  
        48.
        jaxrs.spec.provider.standardnotnull clientJaxbProviderTest Sub-task Resolved Unassigned  
        49.
        jaxrs.spec.provider.standardnotnull serverFileProviderTest Sub-task Resolved David Blevins  
        50.
        jpa.core.entityManager setPropertyTest Sub-task Resolved Unassigned  
        51.
        jpa.core.entityManagerFactoryCloseExceptions exceptionsTest Sub-task Resolved Unassigned  
        52.
        jpa.core.enums setgetFlushModeEntityManagerTest Sub-task Resolved Unassigned  
        53.
        jpa.ee.packaging.appclient.annotation test1 Sub-task Resolved Unassigned  
        54.
        jpa.ee.packaging.appclient.descriptor test1 Sub-task Resolved Unassigned  
        55.
        jpa.ee.packaging.ejb.standalone test1 Sub-task Resolved Unassigned  
        56.
        jpa.ee.packaging.jar JarFileElementsTest Sub-task Resolved Jean-Louis Monteiro  
        57.
        jpa.ee.packaging.jar JarFileElementsTest Sub-task Resolved Jean-Louis Monteiro  
        58.
        jpa.ee.packaging.jar JarFileElementsTest Sub-task Resolved Jean-Louis Monteiro  
        59.
        jpa.ee.packaging.jar JarFileElementsTest Sub-task Resolved Jean-Louis Monteiro  
        60.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        61.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        62.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        63.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        64.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        65.
        jpa.jpa22.datetime dateTimeTest Sub-task Resolved Jean-Louis Monteiro  
        66.
        jsp.spec.configuration.general identicalMappingTest Sub-task Resolved Jean-Louis Monteiro  
        67.
        jsp.spec.configuration.general moreSpecificMappingTest Sub-task Resolved Jean-Louis Monteiro  
        68.
        jsp.spec.configuration.general mostSpecificMappingTest Sub-task Resolved Jean-Louis Monteiro  
        69.
        jstl.spec.core.urlresource.importtag positiveImportEncodingNotSpecifiedTest Sub-task Resolved Jean-Louis Monteiro  
        70.
        securityapi.idstore.idstorepermission testIdentityStore_customHandlerWithoutIDStorePermission Sub-task Resolved Jean-Louis Monteiro  
        71.
        securityapi.securitycontext.callerdata testSecurityContextHasAccessToWebResource Sub-task Resolved Jean-Louis Monteiro

        100%

        Original Estimate - Not Specified Original Estimate - Not Specified
        Time Spent - 20m
        72.
        securityapi.securitycontext.getprincipalsbytype testSecurityContextGetPrincipalsByType Sub-task Resolved Jean-Louis Monteiro  
        73.
        servlet.api.jakarta_servlet.asynccontext forwardTest1 Sub-task Resolved Jean-Louis Monteiro  
        74.
        servlet.api.jakarta_servlet.asynccontext originalRequestTest4 Sub-task Resolved Jean-Louis Monteiro  
        75.
        servlet.api.jakarta_servlet.srevent getServletRequestTest Sub-task Resolved Jean-Louis Monteiro  
        76.
        servlet.ee.spec.security.permissiondd ValidateLocalPermsInvalidName Sub-task Resolved Jean-Louis Monteiro  
        77.
        servlet.ee.spec.security.permissiondd ValidateLocalPermsInvalidNameInLib Sub-task Resolved Jean-Louis Monteiro  
        78.
        servlet.ee.spec.security.permissiondd ValidateMissingPermFails Sub-task Resolved Jean-Louis Monteiro  
        79.
        servlet.ee.spec.security.permissiondd ValidateMissingPermFailsInLib Sub-task Resolved Jean-Louis Monteiro  
        80.
        servlet.ee.spec.security.runAs web_to_ejb_annotation_runAs Sub-task Resolved Jean-Louis Monteiro  
        81.
        servlet.ee.spec.security.runAs web_to_ejb_dd_runAs Sub-task Resolved Jean-Louis Monteiro  
        82.
        servlet.spec.defaultcontextpath getDefaultContextPathTest Sub-task Resolved Jean-Louis Monteiro  
        83.
        websocket.ee.jakarta.websocket.session getRequestURITest Sub-task Resolved Jean-Louis Monteiro  
        84.
        websocket.ee.jakarta.websocket.session setTimeout1Test Sub-task Resolved Unassigned  
        85.
        websocket.spec.servercontainer.addendpoint getRequestURITest Sub-task Resolved Jean-Louis Monteiro  
        86.
        websocket.spec.servercontainer.addendpoint setTimeout1Test Sub-task Resolved Unassigned  

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m