Trying again - my mail did not appear on the list last attempt. I'm trying to replicate the simple Quickstart configuration in Jetty 7 using Guice 2.9.2 and Stripes 1.5.4... http://www.stripesframework.org/display/stripes/Quick+Start+Guide
I think I have the key code correct, (shown inline below) which wires up .jsp and .action, and makes sure the StripesFilter gets a look at everything. Although the quickstart/index.jsp page gets served fine, if I try to add or divide a number, the DispatcherServlet chokes on the request for /examples/quickstart/Calculator.action and treats it as a file request! The console error I get in Jetty is as follows, where /path/to/webapp is the resource folder in my filesystem. >>>>>> ERROR: PWC6117: File "/path/to/webapp/examples/quickstart/Calculator.action" not found <<<<<< The class net.sourceforge.stripes.examples.quickstart.CalculatorActionBean is indeed in the classpath, so I can't see what failure DispatcherServlet can have encountered, and why it won't do the right thing. Here's the code which wires filters and servlets. If I replace DispatcherServlet with a simple hello world servlet, the submission request gets routed to it perfectly fine, so I'm pretty sure DispatcherServlet is handling the request. >>>>>>>> //add stripes filter bind(StripesFilter.class).in(Singleton.class); Map<String,String> stripesFilterParams = new HashMap<String,String>(); stripesFilterParams.put("ActionResolver.Packages", "net.sourceforge.stripes.examples"); filter("*").through(StripesFilter.class, stripesFilterParams); //add binding for Stripes actions bind(DispatcherServlet.class).in(Singleton.class); //stripes serve("*.action").with(DispatcherServlet.class); //serve jsp template files bind(JspServlet.class).in(Singleton.class); //Jasper serve("*.jsp").with(JspServlet.class); <<<<<<<<<< See more code detail at... https://github.com/cefn/Spring-JPA-MVC-Postgres/tree/eef22d20cf8c149d2d5bae0a4f12cbed31223bdd/src/main/java/com/cefn/filesystem/servlet ...for example the code above is at... https://github.com/cefn/Spring-JPA-MVC-Postgres/blob/eef22d20cf8c149d2d5bae0a4f12cbed31223bdd/src/main/java/com/cefn/filesystem/servlet/ServletContextAdaptor.java ...and the current packages composing the app can be read here... https://github.com/cefn/Spring-JPA-MVC-Postgres/blob/eef22d20cf8c149d2d5bae0a4f12cbed31223bdd/pom.xml ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users