Re: BaseURLSource with access to current request

2013-09-23 Thread Andy Pahne
Thanks. I used configuration.addInstance(…, …) I also had to change the constructor of my overriding service, the injected constructor parameter needed an explicit @InjectService("Request") annotation. Both changes together and there wasn't an Exception anymore. Andy Am 23.09.2013 um

VS: BaseURLSource with access to current request

2013-09-23 Thread Ville Virtanen
Thanks! Multiple simple an efficient options, just what Tapestry is all about ;) Ville -Alkuperäinen viesti- Lähettäjä: Lance Java [mailto:lance.j...@googlemail.com] Lähetetty: 23. syyskuuta 2013 12:21 Vastaanottaja: Tapestry users Aihe: Re: BaseURLSource with access to current request

Re: BaseURLSource with access to current request

2013-09-23 Thread Lance Java
Your ClassCastException is caused by using configuration.add(…, …) instead of configuration.addInstance(…, …) If you find that contribution to ServiceOverride fails causes circular dependency you can decorate instead of override: static BaseURLSource decorateBaseURLSource(BaseUrlSource default, @

VS: BaseURLSource with access to current request

2013-09-23 Thread Ville Virtanen
---Alkuperäinen viesti- Lähettäjä: Andy Pahne [mailto:li...@bodenkurier.de] Lähetetty: 22. syyskuuta 2013 21:43 Vastaanottaja: Tapestry users Aihe: Re: BaseURLSource with access to current request No, that does not work. When I try to inject the Request object as a method parameter, the applicat

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
I tried another approach, which unfortunately did not work as well. I copied the source of Tapestry's BaseURLSourceImpl. Then renamed it to CustomBaseURLSourceImpl. For the purpose of the test I did not even modify the source, only gave the class a new name. Then I tried to contribute it as a

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
Am 22.09.2013 um 18:48 schrieb Nicolas Bouillon : > Hi, > > You can try starting you application server with this JVM options : > > -Dtapestry.hostport-secure=443 -Dtapestry.hostport=80 > > Nicolas. > That is not really an option, because I don't want to deploy to multiple tomcat instances

Re: BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
No, that does not work. When I try to inject the Request object as a method parameter, the application won't start. An Exception is thrown on startup: 2013-09-22 20:40:30,689 ERROR ServiceOverride:64 - Construction of service ServiceOverride failed: Error invoking service contribution method de

VS: BaseURLSource with access to current request

2013-09-22 Thread Ville Virtanen
aanottaja: Tapestry users Aihe: Re: BaseURLSource with access to current request Hi, You can try starting you application server with this JVM options : -Dtapestry.hostport-secure=443 -Dtapestry.hostport=80 Nicolas. 2013/9/22 Andy Pahne : > Hi there, > > I have a T5 app, that > -

Re: BaseURLSource with access to current request

2013-09-22 Thread Nicolas Bouillon
Hi, You can try starting you application server with this JVM options : -Dtapestry.hostport-secure=443 -Dtapestry.hostport=80 Nicolas. 2013/9/22 Andy Pahne : > Hi there, > > I have a T5 app, that > - is party protected with SSL (fronted with Apache) > - also has some unprotected content not

BaseURLSource with access to current request

2013-09-22 Thread Andy Pahne
Hi there, I have a T5 app, that - is party protected with SSL (fronted with Apache) - also has some unprotected content not using SSL - is used to run more than one domain ( www.example.com, www.example.co.uk ) - can be completely browsed using https scheme, even the unprotected pages I hav