ppkarwasz opened a new pull request #16:
URL: https://github.com/apache/tomcat-jakartaee-migration/pull/16


   Although Tomcat's code references several Jakarta EE APIs, it is distributed 
with just `annotations-api.jar`, `el-api.jar`, `jaspic-api.jar`, 
`servlet-api.jar` and `websocket-api.jar`. Therefore all the remaining APIs 
(e.g. Persistence API) are distributed with the applications.
   
   The current TOMCAT profile causes most applications to fail with a 
`NoClassDefFoundError`, when the Migration Tool is used as `ClassTransformer` 
through the `<Loader jakartaConverter="TOMCAT" />` context configuration: the 
`WebAppClassloader` replaces many references to `javax.*` classes with 
`jakarta.*` classes, but does not make the inverse transformation, when loading 
the external API classes.
   
   IMHO the migration tool shouldn't replace `javax.persistence` with 
`jakarta.persistence` also in other usage context, since this operation 
requires also the replacement of the JARs shipped with the application.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to