> > 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

Reply via email to