Re: From ??? Re: Re: Re: Struts 7: action class finder

Lukasz Lenart <[email protected]>
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <CAMopvkMWh5ssBUqRi2xdQMx42spGrkJzX+nq8JYn0VtcmRwGEw@mail.gmail.com>
pon., 23 gru 2024 o 21:02 Florian Schlittgen <[email protected]> napisał(a):
>
> On 23.12.24 20:51, Lukasz Lenart wrote:
> > 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

> Sorry but I don't get it. How can I achieve that
> org.apache.struts2.XWorkTestCase is being excluded by defining my own
> constant "struts.convention.exclude.packages"?
> The workaround I currently use is to include the junit:junit dependency
> file at runtime.

Other option is to define
"struts.convention.package.locators.basePackage" [1] and I'm playing
with this example [2] yet I was not able to reproduce behaviour
described by you - even if I removed
"struts.convention.package.locators.basePackage" I don't
"org.apache.struts2.XWorkTestCase" to be used in scan. Can you share
your config?

[1] https://struts.apache.org/plugins/convention/#configuration-reference
[2] https://github.com/apache/struts-examples/tree/main/annotations


Regards
Łukasz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.