Adapting latest WF versions | Jakarta Issues

101 views
Skip to first unread message

Abhinav Gupta

unread,
Nov 1, 2023, 5:09:46 AM11/1/23
to WildFly
Dear Team, Our application is currently dependent on Struts 2.5.x, which makes it difficult for us to upgrade to the latest WF versions.

Although we want to adapt to the latest versions, we are still stuck with Jakarta 8. Unfortunately, Struts is not yet compatible with Jakarta 9, and it seems to be in the planning phase for Struts 7.x, which is expected to be compatible and release is not known yet.

We have attempted to compile a local version of Struts with changes for "javax" packages, but we have encountered many transient dependencies, so we had to abandon that path. Do you have any thoughts or workarounds on how we can resolve this issue? Thank you, Abhinav

Scott Marlow

unread,
Nov 1, 2023, 10:02:13 AM11/1/23
to Abhinav Gupta, WildFly
On Wed, Nov 1, 2023 at 5:09 AM Abhinav Gupta <abhig...@gmail.com> wrote:
Dear Team, Our application is currently dependent on Struts 2.5.x, which makes it difficult for us to upgrade to the latest WF versions.

Although we want to adapt to the latest versions, we are still stuck with Jakarta 8. Unfortunately, Struts is not yet compatible with Jakarta 9, and it seems to be in the planning phase for Struts 7.x, which is expected to be compatible and release is not known yet.

I do not know much about Struts myself.  Is there a public source control repository for the Struts 7.x planning/development?

Please keep your local version of Struts that you have modified as even though it has transient dependencies to be resolved, your changes could be a very helpful first pass to contribute to the Struts project if you can contribute your changes as a pull request to the Struts repo.  You could also treat your local work as a fork for now and ask for help from others in the Struts community for help getting further (again with the idea of contributing it back for others to help maintain).

I hope that my encouragement helps.  

Best of luck,
Scott
 

We have attempted to compile a local version of Struts with changes for "javax" packages, but we have encountered many transient dependencies, so we had to abandon that path. Do you have any thoughts or workarounds on how we can resolve this issue? Thank you, Abhinav

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/1c46f3f8-49e6-4263-a484-601c4a87bdebn%40googlegroups.com.

James Perkins

unread,
Nov 1, 2023, 8:34:55 PM11/1/23
to WildFly
One possible option might be to use the the deployment transformer. This would process your deployment and transform any bytecode for you.

Abhinav Gupta

unread,
Nov 2, 2023, 1:42:01 AM11/2/23
to James Perkins, WildFly
Thanks James.

It seems that managing Jakarta 10 ( for newer versions of WildFly ) with transformers will be a challenging task, especially due to changes in third-party dependencies like Struts at the API level. Our application code should be fine, but these dependencies might cause some issues.

What are your thoughts about that? I know that is more of a query that should be to the Struts Apache community though.


Regards,
Abhinav 

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.


--
Abhinav Gupta

Abhinav Gupta

unread,
Nov 2, 2023, 4:50:54 AM11/2/23
to WildFly
Certainly, Scott.
I plan to create a fork of the current release base from the 2.5.x branch and incorporate my modifications into it.

As for the Struts 7 plans, I am still in the process of familiarizing myself with them. Thus far, I have come across limited information on the topic through various blogs, but I intend to continue learning more.

James Perkins

unread,
Nov 2, 2023, 5:28:21 PM11/2/23
to WildFly
On Wednesday, November 1, 2023 at 10:42:01 PM UTC-7 Abhinav Gupta wrote:
Thanks James.

It seems that managing Jakarta 10 ( for newer versions of WildFly ) with transformers will be a challenging task, especially due to changes in third-party dependencies like Struts at the API level. Our application code should be fine, but these dependencies might cause some issues.

What are your thoughts about that? I know that is more of a query that should be to the Struts Apache community though.


Yes, I'm not too sure what to say there :) Projects/libraries need to migrate. Using the transformer while waiting for a release seems fine, but if there is no plan for migration then you're stuck migrating your application away from that library or migrating the library itself.
Reply all
Reply to author
Forward
0 new messages