Re: Re: Re: Struts 7: action class finder
Lukasz Lenart <[email protected]>
| Newsgroups | gmane.comp.jakarta.struts.devel |
|---|---|
| Message-ID | <CAMopvkPg3mVKQ5aBbDZjjcW05Mf86i=ZTK4Mg0imx6ARn4h05g@mail.gmail.com> |
pon., 23 gru 2024 o 19:42 Florian Schlittgen <[email protected]> napisał(a): > Thanks for looking into it. Your examples/tests are alright, but I think this is not the way it is being called. Please take a look at org.apache.struts2.convention.PackageBasedActionConfigBuilder.includeClassNameInActionScan(String). While debugging I can see that this method is being called with parameter "className" = "org.apache.struts2.XWorkTestCase". In the method's first line the package name is derived from the className by using "StringUtils.substringBeforeLast(className, ".")" which gives you "org.apache.struts2", no trailing dot. And without trailing dot it is not working. > Could you check whether it is the same for you? Could you define your own excluded packages using constant "struts.convention.exclude.packages"? The problem I see the "com.opensymphony.xwork2" package was never excluded, so this problem would have to occur earlier Regards Łukasz