Hello,
on 26.09.2010 12:08, Florian Falkner wrote:
mockServletContext.addInitParameter("contextConfigLocation",
"/WEB-INF/applicationContext.xml");
This used to happen to me too, so I just pass the absolute paths to the
servletContext.
well, if this happens in your environments, I suggest you place your
spring config file in src/main/resources. This way, it is accessible
from the web configuration and also from the Java classes via the path
"classpath:applicationContext.xml". This leads to this:
mockServletContext.addInitParameter("contextConfigLocation",
"classpath:applicationContext.xml");
Another benefit: You can use Spring's test support very easy by
extending for example AbstractJUnit4SpringContextTests.
Best regards,
Marcus
------------------------------------------------------------------------------
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
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users