You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Thorsten Scherler <th...@juntadeandalucia.es> on 2007/05/24 14:18:11 UTC

Re: PublicationConfiguration.java and config.getChild(ELEMENT_PROXIES);

On Thu, 2007-05-24 at 14:12 +0200, Thorsten Scherler wrote:
> 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.
> 
> 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);

I fixed the blow with
String urlRoot=proxyConfig.getAttribute(ATTRIBUTE_ROOT,null);
still I think should be proxyConfig == null.

salu2

> 
> 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
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org