Jörn,
the crux is the compilation of the sitemap. The sitemap compiles to
org.apache.cocoon.www.sitemap_xmap for *all* webapps. Since the sitemap
class is loaded using the same classloader as cocoon (since you put the libs
in the Resin lib directory), the same class gets loaded for different
webapps.
So, for each webapp/cocoon.xconf
change
<!-- The ProgamGenerator builts programs from a XML document written in
a MarkupLanguage.
auto-reload:
root-package: persistent code repository.
preload: -->
<program-generator>
<parameter name="auto-reload" value="true"/>
<parameter name="root-package" value="org.apache.cocoon.www"/>
^^^^^^^^^^^^^^^^^^^^^
<parameter name="preload" value="true"/>
</program-generator>
this into something unique for each webapp. Hopefully it works. In Tomcat
you just get a load of exceptions.
/LS
> -----Original Message-----
> From: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Sent: den 6 september 2001 11:38
> To: Cocoon-Dev
> Subject: General question about virtual hosts and C2
>
>
> The main question: Can Cocoon 2 only run as a webapp (with a context)?
>
> I'm using Resin with several virtual hosts. To make this easier
> to configure
> I put all the required cocoon libs to the lib dir of resin.
> The projects are sepated into different directories but not inside the
> webapp dir of resin:
> d:\www\PROJECT1\public
> d:\www\PROJECT2\public and so on.
> Each directory has it's own WEB-INF and server.xml in it.
> The projects have their own hostnames (virtual hosts), but no /cocoon (or
> what ever) context.
>
> With this configuration (C2b2) it seems that the (different) pipelines are
> mixed sometimes. When requesting pages from project1 some(!) log
> entries are
> written in the log files of project2.
>
> So my question is if Cocoon 2 only works with a context (quite
> difficult as
> you need to use the rewrite engine of apache) or *should* it work for my
> configuration?
>
> When running just one virtual host it all works fine.
>
> JOERN_HEID
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]