Going through Maven xml files in the link you provided to check for spring jar dependencies, I noticed a dependency on spring-web.jar, I was wondering where does it fit. I know that:
spring-beans.jar, spring-core.jar, spring-context.jar are required for DI. spring-aop.jar is used for Aspect oriented part. cglib-nodep-2.1_3.jar is used by AOP for creating proxies. As for the web part, we all are using struts 2 and not sure spring-web.jar fits. I am trying to create a blank template with minimum number of spring jars and I would appreciate any hints on that? --- On Sat, 4/18/09, Wes Wannemacher <w...@wantii.com> wrote: > From: Wes Wannemacher <w...@wantii.com> > Subject: Re: Struts 2 and Spring Framework > To: "Struts Users Mailing List" <user@struts.apache.org> > Received: Saturday, April 18, 2009, 6:03 AM > > > adi...@gmail.com > wrote: > > >> Hi All, > > >> > > >> Does anybody has an sample application using > Struts 2 and Spring > > >> Framework? > > >> > > >> When I put the > "struts2-spring-plugin-2.1.6.jar" file in my classpath > > >> I've got this error: > > >> > > >> java.lang.NullPointerException > > >> at > org.apache.log4j.Category.isEnabledFor(Category.java:749) > > >> at > > >> > org.apache.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.j > > >>ava:327) > > >> > > >> If you have a list of jars required, please > let put them here! > > I have a few projects up here - > > http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk > > I have to check and see if they need updated, but they > could probably help to > serve as starter-apps. They are all maven based though, and > if you're asking > about dependencies, etc. I'm guessing you aren't using > maven (yet). > > > > > > > Check one of the maven dependency sites. Without > knowing what libs you're > > > already deploying we'll just spit back whatever > Maven tells us is > > > required. > > > > > > At the least you'll need the S2 required jars, > whichever Spring jars your > > > application needs (which we don't know), and the > plugin jars. > > > > > > Managing transitive dependencies by hand is a > PITA. > > > > > Yes, I agree with Dave 100%. In fact, it is considered best > practice not to > depend on transitive dependencies. If you are going to use > Spring via the > Struts2 Spring Plugin, then I suggest you also add Spring > as a dependency. > Adding the plugin will automatically add the requirements > that allow the > plugin to work properly, but it is best to be explicit as > to what your project > needs. > > > > Dave > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > -- > > -- > > Wes Wannemacher > Author - Struts 2 In Practice > Includes coverage of Struts 2.1, Spring, JPA, JQuery, > Sitemesh and more > http://www.manning.com/wannemacher > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > __________________________________________________________________ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org