[ 
https://issues.apache.org/jira/browse/WW-5141?focusedWorklogId=890588&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-890588
 ]

ASF GitHub Bot logged work on WW-5141:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Nov/23 22:54
            Start Date: 14/Nov/23 22:54
    Worklog Time Spent: 10m 
      Work Description: jdyer1 commented on PR #778:
URL: https://github.com/apache/struts/pull/778#issuecomment-1811521489

   I think I have solved the problems with Freemarker and Sitemesh by using the 
eclipse transformer maven plugin [1].  To make it work, I added two new 
projects that transform the jars to Jakarta EE 9+ compliant versions.  
Downstream projects then depend on these new projects.  As far as I can tell, 
this works a lot like the shade plugin.
   
   Unfortunately, eclipse is not able to recognize the transformed jars so it 
shows many compile errors.  I spent a lot of time today trying to find a good 
solution to no avail.  It seems IntelliJ has the same issue.  
   
   As a workaround, I can select "Maven > Disable Workspace Resolution" on the 
struts2-core, struts2-tiles-plugin and struts2-sitemesg-plugin.  Clearly this 
is a bad permanent solution.
   
   Perhaps someone reading this has encountered a similar situation before and 
they can improve on my work here and make it work seamlessly for everyone.  
Seamless is the key especially for an open source project!
   
   One final note, Struts uses Sitemesh2 which is stuck forever it seems on 
"javax.".  There is a Sitemesh3 that supports "Jakarta." but it seems the 
migration would be non-trivial.
   
   -----
   [1] 
https://github.com/eclipse/transformer/tree/main/maven-plugins/transformer-maven-plugin




Issue Time Tracking
-------------------

    Worklog Id:     (was: 890588)
    Time Spent: 2h  (was: 1h 50m)

> Support for JEE 9+ 
> -------------------
>
>                 Key: WW-5141
>                 URL: https://issues.apache.org/jira/browse/WW-5141
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Daniel Le Berre
>            Priority: Major
>             Fix For: 7.0.0
>
>         Attachments: pom.xml
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> JEE 9 breaks the JEE API by replacing javax domain by jakarta.
> Tomcat 10 implements some specifications of JEE 9.
> Struts 2.5 has some dependencies with the javax servlet API.
> Struts would require some changes to run on Tomcat 10+.
> Is there any plan to support JEE 9+ in the future?
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to