Made some progress in our staging system. Unfortunately, I don't think it is
going to work in production.

I added the following virtual host configuration to Apache:

<VirtualHost xx.xx.xx.xx:80>

   Redirect /test_site https://stage.mysite.com/test_site

</VirtualHost>

Now it seems to stay on 443, although it is really just redirecting, I
guess.

So the root problem is still  the fact that when Tapestry sends a redirect,
it is ignoring my custom BaseURLSource class inside the AppModule.java
class.

I'm still hoping someone can tell me what I'm doing wrong with this
implementation.

    @Contribute(ServiceOverride.class)
    @Log
    public static void
contributeServiceOverrides(MappedConfiguration<Class,Object> configuration)
    {
        System.out.println("I see this text when the app starts");

        BaseURLSource source = new BaseURLSource()
        {
            @Log
            public String getBaseURL(boolean secure)
            {
                System.out.println("I never see this text");
                return "https://secure.mysite.com";;
            }
        };

        configuration.add(BaseURLSource.class, source);
    }

Any idea why this never gets called?

--Michael

Reply via email to