Hi,
I've been getting the following error, which has ground my entire project
to a halt. This happens when I try to call an any ActionBean.
My understanding is that this refer to the StripesFilter in the web.xml - I
am using exactly the same web.xml as in other projects with no problems, so
I am utterly confused.
I've copied the error and the web.xml below ... any help or clues are much
appreciated.
java.lang.IllegalStateException: A request made it through to some
part of Stripes without being wrapped in a StripesRequestWrapper. The
StripesFilter is responsible for wrapping the request, so it is likely
that either the StripesFilter is not deployed, or that its mappings do
not include the DispatcherServlet _and_ *.jsp. Stripes does not
require that the Stripes wrapper is the only request wrapper, or the
outermost; only that it is present.
net.sourceforge.stripes.controller.StripesRequestWrapper.findStripesWrapper(StripesRequestWrapper.java:81)
net.sourceforge.stripes.controller.AnnotatedClassActionResolver.setActionBeanContext(AnnotatedClassActionResolver.java:399)
net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:371)
net.sourceforge.stripes.controller.NameBasedActionResolver.getActionBean(NameBasedActionResolver.java:264)
net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:300)
net.sourceforge.stripes.controller.DispatcherHelper$1.intercept(DispatcherHelper.java:108)
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158)
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:104)
net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:238)
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:141)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
net.sourceforge.stripes.controller.DynamicMappingFilter$2.doFilter(DynamicMappingFilter.java:431)
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:247)
net.sourceforge.stripes.controller.DynamicMappingFilter.doFilter(DynamicMappingFilter.java:418)
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>
javax.servlet.jsp.jstl.fmt.localizationContext
</param-name>
<param-value>StripesResources</param-value>
</context-param>
<filter>
<filter-name>StripesFilter</filter-name>
<filter-class>
net.sourceforge.stripes.controller.StripesFilter
</filter-class>
<!-- same init-params as before... -->
<init-param>
<param-name>ActionResolver.Packages</param-name>
<param-value>action</param-value>
</init-param>
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>ext</param-value>
</init-param>
<init-param>
<param-name>LocalePicker.Locales</param-name>
<param-value>en,fr</param-value>
</init-param>
<init-param>
<param-name>Stripes.EncryptionKey</param-name>
<param-value>some very string used as an encryption key</param-value>
</init-param>
</filter>
<filter>
<filter-name>DynamicMappingFilter</filter-name>
<filter-class>
net.sourceforge.stripes.controller.DynamicMappingFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>DynamicMappingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/jsp/not_found.jsp</location>
</error-page>
</web-app>
--
Ankur Sharda
E: ankurshard...@gmail.com
M: 0421 311 106
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users