I'm attempting to integrate Shiro into an existing Spring web application
that uses DispatcherServlet instead of ContextLoaderListener. I've followed
the instructions here <http://shiro.apache.org/spring.html> , but I'm
getting this error when I try to run/debug my application:
<pre>java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?</pre>
Here's my DispatcherServlet servlet XML...
<pre> <servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/dispatcher-config.xml
/META-INF/spring/web-applicationContext.xml
classpath:META-INF/spring/core-applicationContext.xml
classpath:META-INF/spring/ext-applicationContext.xml
classpath:META-INF/spring/performance-applicationContext.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet></pre>
...and I put the 'shiroFilter' bean into my web-applicationContext.xml file.
Is it possible to get Shiro working in my environment, or is it necessary to
use ContextLoaderListener and create an applicationContext.xml file in
WEB-INF?
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/No-WebApplicationContext-found-tp7579433.html
Sent from the Shiro User mailing list archive at Nabble.com.