> On Mar 12, 2021, at 11:57 PM, Romain Manni-Bucau <rmannibu...@gmail.com> 
> wrote:
> 
> Hi,
> 
> Likely more a question for David: why is jakarta considered as a forbidden
> package (
> https://github.com/apache/openwebbeans/commit/6ede81da26a4a65dc0c88fda7e438f29114fea37)
> ?
> 
> To explain why I ask: jakarta is a module as any other, and we shouldn't
> get abused by the presence of javax just before which is there for the java
> *se* part of javax api and not EE one so not sure I get the rational there,
> any test/sample I can run to understand?

A javax-to-jakarta namespace switch in bytecode doesn't appear to work without 
this change.  For TomEE 9 80% of the TCK will fail with due to deployment 
errors.

If you revert this change locally and rebuild these repos

 - https://github.com/apache/tomee
 - https://github.com/apache/tomee-jakarta

here's a tck test that shows it:

  ./runtests --web tomee-plume 
com.sun.ts.tests.ejb30.lite.appexception.singleton.annotated

That script is in this branch.  Here's also the TCK download URL.

 - https://github.com/apache/tomee-tck/tree/jakartaee9-tck
 - 
https://download.eclipse.org/jakartaee/platform/9/jakarta-jakartaeetck-9.0.2.zip

Wherever the TCK is unpacked you add this to your ~/.m2/settings.xml.  Here are 
my settings for reference:

    <profile>
      <id>jakartaee-tck</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        
<jakartaee9.cts.home>/Users/dblevins/work/tcks/jakartaeetck-9.0.2</jakartaee9.cts.home>
        
<jakartaee9.ri.home>/Users/dblevins/work/tcks/glassfish6/glassfish</jakartaee9.ri.home>
      </properties>
    </profile>

The final thing to get setup is copy an Ant install into this location of the 
TCK.

 -  jakartaeetck-9.0.2/tools/ant/

Here's how mine looks:

    $ ls /Users/dblevins/work/tcks/jakartaeetck-9.0.2/tools/ant
    CONTRIBUTORS                LICENSE                 WHATSNEW                
etc                     lib
    INSTALL                     NOTICE                  bin                     
fetch.xml               manual
    KEYS                        README                  contributors.xml        
get-m2.xml              patch.xml

Use Java 8 as the TCK itself doesn't run with Java 11 yet.


-David

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to