You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marc van Kempen <ma...@bowtie.nl> on 2000/09/11 23:46:45 UTC

help with producers and servlets

Hi All,

I've just started using Cocoon for a document editing system, but 
I can't figure out how to use servlet reloading and producers 
at the same time in a handy way.

I've written an XML producer which read a blob from a database 
and spits it out. Around this are a whole bunch of servlets.
(I'm using apache 1.3.12 and ApacheJserv 1.1.1 with jdk 1.1.8
on FreeBSD.)

However I need to place the producers class in a separate 
classpath in order for Cocoon to find it. When I do this, 
the producer class does not seem to find the support classes
that I need and use for the servlets, and place in the 
servlet directory.

When I copy the support classes to classpath directory, I miss
out on the servlet reloading support, and when I copy them to both
directories, all kinds of weird stuff start happening.

Is there a way to get Cocoon to load the producer class from
the servlet directory? Or, alternatively, just copy the 
producer class to a different directory and have Cocoon find
the support classes from the servlet directory?

Regards,
Marc.

PS. Please reply to me directly too, since I'm not subscribed to
this mailinglist.