[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: org.apache.tapestry.page-pool-min-idle
From:       "Marcus Schulte" <etluchs () googlemail ! com>
Date:       2008-01-20 9:53:54
Message-ID: 2a68ac4d0801200153r1922c514pbda38a02d43cde1d () mail ! gmail ! com
[Download RAW message or body]


To override "FactoryDefaults" you must use another SymbolSource. Most of the
time this will be "ApplicationDefaults".

2008/1/18, Kaspar Fischer <fischerk@inf.ethz.ch>:
>
>
> On 12.01.2008, at 02:47, Kaspar Fischer wrote:
> > How would I do this?
> >
> > <contribution configuration-id="hivemind.FactoryDefaults">
> >     <default symbol="org.apache.tapestry.page-pool-min-idle"
> > value="4" />
> > </contribution>
> >
> > Or do I have to use something like "InfrastructureOverrides"? The
> > latter is used to
> > override the exception settings, see
> >
> >   http://tapestry.apache.org/tapestry4.1/developmentguide/
> > exceptionpages.html
> >
>
> I've tried the former approach and it does not work:
>
>    Caused by: org.apache.hivemind.ApplicationRuntimeException:
> Element default (at jar:file:...tomcat/wtpwebapps/KC/WEB-INF/lib/
> tapestry-framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37,
> column 78) contains errors: Value for attribute
> 'symbol' ('org.apache.tapestry.page-pool-min-idle') duplicates a
> prior instance at context:/WEB-INF/hivemodule.xml, line 5, column 72.
> [jar:file...tomcat/wtpwebapps/KC/WEB-INF/lib/tapestry-
> framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37, column 78]
>         at org.apache.hivemind.impl.SchemaElement.validateAttributes
> (SchemaElement.java:185)
>         at org.apache.hivemind.impl.SchemaProcessorImpl.processElement
> (SchemaProcessorImpl.java:251)
>         at org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement
> (SchemaProcessorImpl.java:235)
>
> So I have tried the latter approach (again in hivemodule.xml):
>
>   <contribution configuration-id="tapestry.InfrastructureOverrides">
>    <property name="org.apache.tapestry.page-pool-min-idle" value="4" />
>   </contribution>
>
> With this, no errors are reported. But maybe the configuration is
> just ignored?
> How can I verify the "page-pool-min-idle" property has been set?
>
> Thanks,
> Kaspar
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Marcus Schulte
http://marcus-schulte.blogspot.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic