Thorsten Scherler schrieb:
> Hi all, 
> 
> I have a problem with the PublicationConfiguration.java:
> (around line 180)
> ...
>   Configuration proxyConfig = config.getChild(ELEMENT_PROXIES);
>   if (proxyConfig != null) {
> ...
> 
> In my publication.xml I commented the <proxies> block so should
> proxyConfig==null, or?
> 
> However debugging the class I get:
> publication::<no
> value>:@file:/home/thorsten/src/apache/lenya-1.4.x/build/lenya/webapp/lenya/pubs/default/config/publication.xml:21:70
> which is not null.

IIRC there are two getChild() methods:

getChild(String) - create if it doesn't exist
getChild(String, false) - return null if it doesn't exist

-- Andreas

> 
> For 
>  Configuration[] proxyConfigs = proxyConfig.getChildren(ELEMENT_PROXY);
> it is not throwing an error, just returning proxyConfigs
> Configuration[0]  (id=83)     
> 
> However the patch I attached is blowing up when trying:
>  String urlRoot=proxyConfig.getAttribute(ATTRIBUTE_ROOT);
> 
> An exception occurred:
> org.apache.avalon.framework.configuration.ConfigurationException      
> 
> Message: No attribute named "root" is associated with the configuration
> element "proxies" at
> <generated>file:/home/thorsten/src/apache/lenya-1.4.x/build/lenya/webapp/lenya/pubs/default/config/publication.xml:21:70
> 
> Description: org.apache.cocoon.sitemap.PatternException: Cannot get
> variable 'document-url' in expression '{page-envelope:document-url}'
> 
> I have to say that I applied all patches from 42050 and
> http://issues.apache.org/bugzilla/attachment.cgi?id=20240 introduces
> {page-envelope:document-url} in the sitemap.
> 
> Somebody an idea why proxyConfig!=null?
> 
> TIA for any thoughts.
> 
> salu2


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to