WebApplicationContext « Security « Spring Q&A





1. spring security No WebApplicationContext found    stackoverflow.com

I am new to spring security I have web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    /WEB-INF/applicationContext-security.xml
</param-value>
</context-param>

<servlet>
    <servlet-name>spring</servlet-name>
 ...

2. Access WebApplicationContext inside a ExtendedActionServlet    forum.springsource.org

Since you're inside an ActionServlet you are inside a Servlet which means you have access to getServletContext() which means you can do: ApplicationContext context = WebApplicationContextUtils.getApplicationContext(g etServletContext()); It's something like that ...

3. Is using Spring Security possible without WebApplicationContext?    forum.springsource.org

I've got a Spring ApplicationContext started by a java process, which in turn starts an embedded Jetty web server using the jetty WebAppContext handler. The WebAppContext registers a Jersey SpringServlet, serves ...