Re: Struts 6.7.0 and xwork2 packages

Lukasz Lenart <[email protected]> Thu, 9 Jan 2025 11:20:18 +0100
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkNZBb4vhMF-ToBuwrVaRmT5GAov=+3qvGnr_jfxHTHC_Q@mail.gmail.com>
śr., 8 sty 2025 o 21:26 Tellis, Wyatt <[email protected]>
napisał(a):
> I recently upgraded my app to 6.7.0 and saw that many classes are deprecated due to the renaming of the xwork2 packages. I tried changing the imports to use the org.apache.struts2 equivalents, but my application no longer works.  Everything compiles correctly, but I get a 404 error when I go to any of the actions.  I'm using the convention plugin to configure the actions and it seems as though none of the actions are being found. There are no errors in the logs and the app works fine if I keep using the original xworks2 classes.  Any ideas what could be wrong?

I think this is already reported by this issue [1] yet I didn't have
time to take a look at it, probably something is wrong with detecting
based package by the Convention plugin so probably defining
"struts.convention.package.locators.basePackage" should help.

[1] https://issues.apache.org/jira/browse/WW-5494


Cheers
Łukasz