You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2021/05/03 09:23:00 UTC

[jira] [Updated] (TOMEE-3140) Jakarta EE 9.1 TCK Failures

     [ https://issues.apache.org/jira/browse/TOMEE-3140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Zowalla updated TOMEE-3140:
-----------------------------------
    Fix Version/s: 8.0.7

> Jakarta EE 9.1 TCK Failures
> ---------------------------
>
>                 Key: TOMEE-3140
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3140
>             Project: TomEE
>          Issue Type: Task
>            Reporter: David Blevins
>            Priority: Major
>             Fix For: 8.0.7, 9.0.0-M7
>
>
> 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)
> {code:java}
> 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
> {code}
> Ensure your ~/.m2/settings.xml file contains at least the following:
> {code:xml}
> <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>
> {code}
> 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".
> {code:java}
> cd tomee-tck
> ./update91tck.sh 
> {code}
>  Now you should be all set to run a TCK test.  From inside the tomee-tck project, run this command to test your setup
> {code:java}
> ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.ejb30.bb.localaccess.statelessclient
> {code}
> You should see a lot of output, some SQL errors which you can ignore, and eventually some passing tests
> {code:java}
> [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
> {code}
> For tips on debugging/fixing tests, see [https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)