struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <James.C...@wecomm.com>
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

James

-----Original Message-----
From: Musachy Barroso [mailto:musachy@gmail.com] 
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.

musachy

On Thu, Oct 8, 2009 at 10:19 AM, James Cook <James.Cook@wecomm.com> 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
> e.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=00746e6a-87
> 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>(ClassFinder.java:
> 148)
>        at
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.findAction
> s(PackageBasedActionConfigBuilder.java:295)
>        at
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActio
> nConfigs(PackageBasedActionConfigBuilder.java:277)
>
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message