views:

131

answers:

1

I have a Google Appengine/Guice/Wicket Application. My problem is that due to the mapping I can't access the /_ah/admin Page anymore.

My Servlet Module says:

serve( "/*" ).with( WicketServlet.class, getWicketServletParams() );

so far it is more or less expected that accessing /_ah/admin gives a 404.

I problem is that I don't find a workaround.

I tried different combinations of serveRegex(), but even

serveRegex( "/.*" ).with( WicketServlet.class, getWicketServletParams() );

leads to problems, as the URL dispatching of Wicket gets broken. The application keeps on repeating the Path (e.g. /list becomes /list/list etc.).

Any ideas?

+1  A: 

I solved the same problem with Spring/GAE using the UrlRewriteFilter. Please take a look at the source here. I assume a similar solution could be used for your situation.

<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd"&gt;
<urlrewrite>
    <rule>
        <from>^/appstats/(.*)$</from>
        <to last="true">/appstats/$1</to>
    </rule>
    <rule>
        <from>^/_ah/(.*)$</from>
        <to last="true">/_ah/$1</to>
    </rule>
    <rule>
        <from>^/(.*)$</from>
        <to last="true">/app/$1</to>
    </rule>

Taylor Leese
Well, I just took the _ah filter config, I guess that breaks the filter chain and makes the _ah work again. Thanks.
Marcus