One other detail... when I remove this code to skip spring for now I do get
these log statements pointing to the correct directories:
568 [main] INFO net.sourceforge.stripes.util.ResolverUtil - Scanning for
classes in
[/Users/evan/.m2/repository/net/sourceforge/stripes/stripes/1.5/stripes-1.5.jar]
matching criteria: is assignable to MultipartWrapperFactory
595 [main] INFO net.sourceforge.stripes.util.ResolverUtil - Scanning for
classes in
[/Users/evan/dev/kono/kono-web/target/classes/com/kono/stripes/activejdbc]
matching criteria: is assignable to MultipartWrapperFactory
599 [main] INFO net.sourceforge.stripes.util.ResolverUtil - Scanning for
classes in
[/Users/evan/.m2/repository/net/sourceforge/stripes/stripes/1.5/stripes-1.5.jar]
matching criteria: is assignable to MultipartWrapper
626 [main] INFO net.sourceforge.stripes.util.ResolverUtil - Scanning for
classes in
[/Users/evan/dev/kono/kono-web/target/classes/com/kono/stripes/activejdbc]
matching criteria: is assignable to MultipartWrapper
So many things are loading correctly... just not my applicationContext.xml!
Evan
On Sep 26, 2010, at 1:42 AM, Evan Leonard wrote:
>
> Hi all,
>
> I'm trying to get the spring context loading in my tests using the examples
> from Freddy's book. Basically I've got this in my test:
>
> mockServletContext.addInitParameter("contextConfigLocation",
> "/WEB-INF/applicationContext.xml");
> ContextLoaderListener springContextLoader = new
> ContextLoaderListener();
> springContextLoader.contextInitialized(new
> ServletContextEvent(mockServletContext));
>
> And I'm getting a FileNotFound down in spring's XmlBeanDefinitionReader. At
> first I thought this would be as simple as changing my working directory to
> be the maven target/myapp directory, since that's the parent of WEB-INF at
> runtime, but that did change the behavior.
>
> Any other ideas? Seems like its probably something pretty basic, and its just
> too late for me to see it...
>
> Thanks!
> Evan
>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users