You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/03/19 17:45:03 UTC
cocoon.xconf error
Hello,
I use cocoon 2.0.3 :
I tried to add some new "components-instance" in cocoon.xconf as Jeremy
Quinn wrote it in
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104490756424028&w=2 :
...
<component-instance
class="org.apache.cocoon.components.modules.input.XMLFileModule"
logger="core.modules.xml" name="RLR-conf">
<file src="WEB-INF/RLR.xconf"/>
</component-instance>
<component-instance
class="org.apache.cocoon.components.modules.input.ChainMetaModule"
logger="core.modules.input" name="chain">
<input-module name="request-param"/>
<input-module name="request-attr"/>
<input-module name="session-attr"/>
<input-module name="defaults"/>
<!-- START CONFIGURATION RLR -->
<input-module name="simple-map">
<prefix>/vars/</prefix>
<input-module name="RLR-conf"/>
</input-module>
<!-- END CONFIGURATION RLR -->
</component-instance>
...
then I wrote RLR.xconf :
<?xml version="1.0"?>
<vars>
<url>blabla</url>
<domain>blabla</domain>
<server>blabla</server>
<base>blabla</base>
<name>blabla</name>
<password>blabla</password>
<interval>blabla</interval>
<path>blabla</path>
</vars>
Here is the error :
org.apache.avalon.framework.component.ComponentException: Cannot obtain the
URLFactory
at
org.apache.cocoon.sitemap.AbstractSitemap.compose(AbstractSitemap.java:215)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:239)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:479)
Someone has an answer ?
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: cocoon.xconf error
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
On Wednesday, March 19, 2003, at 04:45 PM, Lionel Crine wrote:
> Hello,
>
> I use cocoon 2.0.3 :
> I tried to add some new "components-instance" in cocoon.xconf as
> Jeremy Quinn wrote it in
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=104490756424028&w=2
> :
>
> ...
> <component-instance
> class="org.apache.cocoon.components.modules.input.XMLFileModule"
> logger="core.modules.xml" name="RLR-conf">
> <file src="WEB-INF/RLR.xconf"/>
<file src="context://WEB-INF/RLR.xconf"/>
^^^^^^^^^^
hope this helps
regards Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org