struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <>
Subject RE: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2
Date Thu, 08 Oct 2009 18:10:21 GMT
Hi, thank you very much for your response...

The exceptions don't really bother me, it is just we deployed an app onto a domain with 5
other apps and it just trawled through all their packages. 

This does however beg the question. What would have happened if I had another S2 app on the
domain and that scanning actually picked up valid actions? Would my app actually be able to
see them e.g. from the config-browser and would this affect the operation?

Thanks again


-----Original Message-----
From: Musachy Barroso [] 
Sent: 08 October 2009 18:59
To: Struts Users Mailing List
Subject: Re: 2.1.6, Convention Plugin + Spring + Glassfish 2 ur2

Those exceptions are annoying, but they can be ignored. There are
multiple settings for scanning, like not scanning jars, which you can
play with.


On Thu, Oct 8, 2009 at 10:19 AM, James Cook <> wrote:
> Hi All,
> I did ask this question before but never received an answer, I do
> understand that this is quite complex problem. However I thought I would
> ask again in case anyone else has come across this...
> When I use the Convention plugin with Spring and Glassfish, upon deploy
> of the resulting WAR the Convention plugin scans all the packages that
> are in the /applications/j2ee-modules of the given domain.
> This is seen in the server log of the Glassfish e.g.
> [#|2009-10-08T14:24:09.106+0100|WARNING|sun-appserver9.1|javax.enterpris
> 1e-4a90-b155-92d8b81b942b;|
> java.lang.Exception: Could not load
> domains/domain3/applications/j2ee-modules/OtherApp/WEB-INF/classes/com/o
> ther/package/SubmissionThread.class
>        at
> com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder
> .java:745)
>        at
> com.opensymphony.xwork2.util.finder.ClassFinder.<init>(
> 148)
>        at
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.findAction
> s(
>        at
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActio
> nConfigs(
> OtherApp is another application I have installed on the same domain.
> Is this a bug with convention? I am using default settings and when I
> get the chance I plan on adding
> struts.convention.package.locators.basePackage to be my com.myApp.stuff
> to see if this restricts this...
> Any help would be very much appreciated.
> James
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

"Hey you! Would you help me to carry the stone?" Pink Floyd

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message