A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other Application Frameworks
Stripes ResolverUtil class
Joined: Aug 20, 2008
Nov 06, 2008 10:27:00
'lo all -
out Stripes and have successfully built the
in Netbeans 6.1. Everything works great, hunky dory.
Why is the ResolverUtil class spamming my logs? I read the JavaDoc on it, but it hasn't really answered my question. Here is a sample from just one deployment:
10:45:09,897 INFO ResolverUtil:166 - Checking URL '/Applications/NetBeans/glassfish-v2/lib/SUNWjdmk/5.1/lib/jdmkrt.jar' for instances of net.sourceforge.stripes.action.ActionBean 10:45:09,926 INFO ResolverUtil:166 - Checking URL '/Applications/NetBeans/glassfish-v2/imq/lib/imqxm.jar' for instances of net.sourceforge.stripes.action.ActionBean 10:45:09,929 INFO ResolverUtil:166 - Checking URL '/Applications/NetBeans/glassfish-v2/imq/lib/imqjmx.jar' for instances of net.sourceforge.stripes.action.ActionBean 10:45:09,944 INFO ResolverUtil:166 - Checking URL '/Applications/NetBeans/glassfish-v2/lib/ant/lib/ant.jar' for instances of net.sourceforge.stripes.action.ActionBean 10:45:09,954 WARN ResolverUtil:155 - Could not examine class 'org/apache/tools/ant/Main.class' due to a java.lang.NoClassDefFoundError with message: org/apache/tools/ant/launch/AntMain 10:45:10,013 WARN ResolverUtil:155 - Could not examine class 'org/apache/tools/ant/types/resolver/ApacheCatalog.class' due to a java.lang.NoClassDefFoundError with message: org/apache/xml/resolver/Catalog 10:45:10,015 WARN ResolverUtil:155 - Could not examine class 'org/apache/tools/ant/types/resolver/ApacheCatalogResolver.class' due to a java.lang.NoClassDefFoundError with message: org/apache/xml/resolver/tools/CatalogResolver
and so on for over 200 lines. I know I can change the log4j.properties to not log INFO, but that doesn't fix the problem, it just covers it up.
Joined: Jul 11, 2001
Nov 06, 2008 10:37:00
Looks to me like you need to specify the ActionResolver.Packages parameter in the StripesFilter. If you have done that then you might need to limit its search path. For example, here is one of mine:
<init-param> <param-name>ActionResolver.Packages</param-name> <param-value>com.aga.dashboard.actions</param-value> </init-param>
This way only the com.aga.dashboard.actions package will be scanned for ActionBeans.
GenRocket - Experts at Building Test Data
Joined: Aug 20, 2008
Nov 06, 2008 10:48:00
That seems to have done the trick. Thank you, sir!
subject: Stripes ResolverUtil class
Debugging with Eclipse 3.4 and jboss-5.0.0.CR1
Cannot initialize endpoint : error is : Java heap space|#] and server won't start
unable to find remote interface,shows exception of NoClassDefFoundError
Failed to access the WSDL
Adding Data Source in Glassfish v3
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014