Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
thank you, thats it :)
On 26.02.2014, at 11:22, Lance Java  wrote:

> Well... You can have the Tapestry filter mapped to /* and it can play
> nicely with other servlets.
> 
> http://tapestry.apache.org/configuration#Configuration-ConfiguringIgnoredPaths


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
yes i know that, but it does not answer my question. :)

On 26.02.2014, at 11:09, Lance Java  wrote:

> A filter is passed a reference to the FilterChain which can ultimately pass
> through to the servlet container's own url resolution (ie a resource in the
> war).
> 
> A servlet is an endpoint and must resolve the URL itself.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
Hi,

i was just curious about why Tapestry is using a Filter instead of a Servlet. 
Does anyone know?

Regards
garz
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Override AssertSource

2014-01-31 Thread garz
With addInstance the exception is:

java.lang.IllegalStateException: Construction of service 'ServiceOverride' has 
failed due to recursion: the service depends on itself in some way. Please 
check org.apache.tapestry5.ioc.internal.services.ServiceOverrideImpl(Map) (at 
ServiceOverrideImpl.java:31) via 
org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at 
TapestryIOCModule.java:49) for references to another service that is itself 
dependent on service 'ServiceOverride'.

On 31.01.2014, at 17:25, Dusko Jovanovski  wrote:

> try configuration.addInstance(AssetSource.class, MyAssetSourceImpl.class);
> 
> Here's the documentation for MappedConfiguration:
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/MappedConfiguration.html
> 
> 
> On Fri, Jan 31, 2014 at 5:05 PM, garz  wrote:
> 
>> Hi all,
>> 
>> i want to override the AssetSource service. I am doing it like described
>> in http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.htmllike 
>> this:
>> 
>>@Contribute(ServiceOverride.class)
>>public static void setupApplicationServiceOverrides(
>>MappedConfiguration configuration) {
>>configuration.add(AssetSource.class,
>> MyAssetSourceImpl.class);
>>}
>> 
>> But the following error occurs:
>> Exception constructing service 'PageSource': Error invoking method public
>> org.apache.tapestry5.internal.services.PageSource
>> org.apache.tapestry5.internal.services.InternalModule.buildPageSource(org.apache.tapestry5.internal.services.PageSourceImpl,org.apache.tapestry5.services.InvalidationEventHub,org.apache.tapestry5.services.InvalidationEventHub):
>> Exception constructing service 'ComponentMessagesInvalidationEventHub':
>> Error invoking method public static
>> org.apache.tapestry5.services.InvalidationEventHub
>> org.apache.tapestry5.services.TapestryModule.buildComponentMessagesInvalidationEventHub(org.apache.tapestry5.services.messages.ComponentMessagesSource):
>> Exception constructing service 'ComponentMessagesSource': Error invoking
>> service contribution method
>> org.apache.tapestry5.services.TapestryModule.contributeComponentMessagesSource(AssetSource,
>> Resource, OrderedConfiguration): Cannot cast java.lang.Class to
>> org.apache.tapestry5.services.AssetSource
>> 
>> What needs to be done to override the AssetSource service?
>> 
>> Best regards



Override AssertSource

2014-01-31 Thread garz
Hi all,

i want to override the AssetSource service. I am doing it like described in 
http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html like this:

@Contribute(ServiceOverride.class)
public static void setupApplicationServiceOverrides(
MappedConfiguration configuration) {
configuration.add(AssetSource.class, MyAssetSourceImpl.class);
}

But the following error occurs:
Exception constructing service 'PageSource': Error invoking method public 
org.apache.tapestry5.internal.services.PageSource 
org.apache.tapestry5.internal.services.InternalModule.buildPageSource(org.apache.tapestry5.internal.services.PageSourceImpl,org.apache.tapestry5.services.InvalidationEventHub,org.apache.tapestry5.services.InvalidationEventHub):
 Exception constructing service 'ComponentMessagesInvalidationEventHub': Error 
invoking method public static 
org.apache.tapestry5.services.InvalidationEventHub 
org.apache.tapestry5.services.TapestryModule.buildComponentMessagesInvalidationEventHub(org.apache.tapestry5.services.messages.ComponentMessagesSource):
 Exception constructing service 'ComponentMessagesSource': Error invoking 
service contribution method 
org.apache.tapestry5.services.TapestryModule.contributeComponentMessagesSource(AssetSource,
 Resource, OrderedConfiguration): Cannot cast java.lang.Class to 
org.apache.tapestry5.services.AssetSource

What needs to be done to override the AssetSource service?

Best regards