Hi guys, I'm trying to redirect all requests to the root webapp to the "/aviator" I've created this file and put in /etc/jetty/contexts. I'm running the latest jetty 6 on ubuntu 10.04
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" " http://jetty.mortbay.org/configure.dtd"> <Configure class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath"> / </Set> <Call name="addHandler"> <Arg> <New class=" org.mortbay.jetty.handler.rewrite.RedirectPatternRule"> <Set name="pattern">*</Set> <Set name="location">/aviator</Set> </New> </Arg> </Call> </Configure> However when I try to run it, I receive this stack trace. 578 [main] WARN org.mortbay.log - Config error at <Call name="addHandler"><Arg> <New class="org.mortbay.jetty.handler.rewrite.RedirectPatternRule"><Set name="pattern">*</Set><Set name="location">/aviator</Set></New> </Arg></Call> 578 [main] ERROR org.mortbay.log - EXCEPTION java.lang.IllegalStateException: No Method: <Call name="addHandler"><Arg> <New class="org.mortbay.jetty.handler.rewrite.RedirectPatternRule"><Set name="pattern">*</Set><Set name="location">/aviator</Set></New> </Arg></Call> on class org.mortbay.jetty.webapp.WebAppContext at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:561) at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:252) at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214) at org.mortbay.jetty.deployer.ContextDeployer.createContext(ContextDeployer.java:369) at org.mortbay.jetty.deployer.ContextDeployer.deploy(ContextDeployer.java:263) I've checked the javadoc here. http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/handler/HandlerWrapper.html#setHandler(org.mortbay.jetty.Handler) addHandler exists. Any ideas what's wrong? Thanks, Todd
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
