On Tuesday, October 2, 2007, 2:53:51 PM, smallufo <[EMAIL PROTECTED]> wrote:
|
> |
2007/10/2, Gwyn Evans <[EMAIL PROTECTED]>: Are you sure you deployed your web-app to the ROOT context? It's not just at http://localhost/myApp/app/ is it? One thing I like about Jetty is that it's normally clear to see what's mounted where, as the default '/' servlet will list them when running 'mvn jetty:run' /Gwyn I think "yes" , the following is my resin's config about my host : <host id='foo.bar.com' > <error-log id='log/error.log' /> <jsp precompile='true' static-encoding='true' recompile-on-error='true'/> <servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/> <web-app id='/' app-dir='/home/foobar/www'> <session-config> <session-max>4096</session-max> <session-timeout>30</session-timeout> <enable-cookies>true</enable-cookies> <enable-url-rewriting>true</enable-url-rewriting> </session-config> </web-app> </host> I deploy my app to "/" as described ... |
Hmm - no idea then!
I've gone for this setup on mine...
<url-pattern>/*</url-pattern>
and in the Application class
mount(new HybridUrlCodingStrategy("/cc", CustomerCare.class));
and
public Class getHomePage() {
return CustomerCare.class;
}
and I go to http://localhost:8080/ and end up at http://localhost:8080/cc (which the HybridUrlCodingStrategy automatically redirects to http://localhost:8080/cc.1 but that's another matter).
/Gwyn
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]