You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jann Forrer <ja...@id.unizh.ch> on 2005/06/30 16:49:33 UTC

build lenya-1.4, publets

Hi

I did update my lenya-1.4 today. After building a new copy and triying to
login into the default publication I got the following error:

ComponentSelector could not find the component for hint [homepage] (key
[homepage])

The reason is that the components as defined in
lenya/pubs/default/lenya/publets/*/config/publet.xconf are not included
into cocoon.xconf and are therefore not known by the ComponentManager.

I had to change src/targets/webapp-build.xml as follows:

===================================================================
--- webapp-build.xml    (revision 202559)
+++ webapp-build.xml    (working copy)
@@ -146,7 +146,8 @@
   <target name="copy-cocoon.xconf" if="cocoon.xconf.copy">
     <copy
        file="${build.webapp}/WEB-INF/cocoon.xconf.ant_patch"
-       toFile="${build.webapp}/WEB-INF/cocoon.xconf"/>
+       toFile="${build.webapp}/WEB-INF/cocoon.xconf"
+       overwrite="true"/>
   </target>

I am not sure wheter this happens only on my (linux) box but I think it
should not break anything if we set overwrite="true" anyway?

Jann

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


Re: build lenya-1.4, publets

Posted by Jann Forrer <ja...@id.unizh.ch>.
On Fri, 1 Jul 2005, Andreas Hartmann wrote:

> Jann Forrer wrote:
> > Hi
> >
> > I did update my lenya-1.4 today. After building a new copy and triying to
> > login into the default publication I got the following error:
> >
> > ComponentSelector could not find the component for hint [homepage] (key
> > [homepage])
> >
> > The reason is that the components as defined in
> > lenya/pubs/default/lenya/publets/*/config/publet.xconf are not included
> > into cocoon.xconf and are therefore not known by the ComponentManager.
>
> I can't reproduce this on the Mac ... would you mind filing a bug report?
>

Yes, of course ...

[ ... ]
>
> Strange ... why does this happen? The publets patch happens after the
> other patch, so the modification date should be later ...
>

Yes that is true even on my linux box. If i comment

<delete file="${build.webapp}/WEB-INF/cocoon.xconf.ant_patch"/>

in src/targets/publets-build.xml and looking at the files in
build/lenya/weapps/ the file cocoon.xconf.ant_patch is newer than
cocoon.xonf but does not overwrite it??
Probably it has something to do with my ant because i had to set
no_config=true tools/bin/ant in order to make build.sh (i.e ant) work
correctly as described in

http://www.mail-archive.com/docs@cocoon.apache.org/msg04558.html

Jann

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


Re: build lenya-1.4, publets

Posted by Andreas Hartmann <an...@apache.org>.
Jann Forrer wrote:
> Hi
> 
> I did update my lenya-1.4 today. After building a new copy and triying to
> login into the default publication I got the following error:
> 
> ComponentSelector could not find the component for hint [homepage] (key
> [homepage])
> 
> The reason is that the components as defined in
> lenya/pubs/default/lenya/publets/*/config/publet.xconf are not included
> into cocoon.xconf and are therefore not known by the ComponentManager.

I can't reproduce this on the Mac ... would you mind filing a bug report?

> 
> I had to change src/targets/webapp-build.xml as follows:
> 
> ===================================================================
> --- webapp-build.xml    (revision 202559)
> +++ webapp-build.xml    (working copy)
> @@ -146,7 +146,8 @@
>    <target name="copy-cocoon.xconf" if="cocoon.xconf.copy">
>      <copy
>         file="${build.webapp}/WEB-INF/cocoon.xconf.ant_patch"
> -       toFile="${build.webapp}/WEB-INF/cocoon.xconf"/>
> +       toFile="${build.webapp}/WEB-INF/cocoon.xconf"
> +       overwrite="true"/>
>    </target>
> 
> I am not sure wheter this happens only on my (linux) box but I think it
> should not break anything if we set overwrite="true" anyway?

Strange ... why does this happen? The publets patch happens after the
other patch, so the modification date should be later ...

-- Andreas


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