Thanks for the reply. I am also using a library of other files. If I unzip them into WEB-INF/classes then they are found ok (but not a practical approach). But when I put the jar in WEB-INF/lib then I get the dreaded NoClassDefFoundError....as a jar file it just isn't found.
Could this be symptomatic of having cocoon deployed in a war in an ear? I just thought I could drop any jar into WEB-INF/lib and automatically have access to the files. Thanks C. -- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Hi, > > I'm deploying Cocoon as a war file (within an ear file). > My own sitemap.xmap file contains references to self-written generators but > when I try and access my files through a browser the sitemap cannot find them, > therefore cannot be compiled, and throws the following error: > java.lang.NoClassDefFoundError:org/apache/cocoon/generation/ServletGener ator Make sure you have your generator in the WEB-INF/classes or in the jar file in WEB-INF/lib of the Cocoon webapp. Vadim > > I tried jarring up my files into WEB-INF/lib - this didn't make a difference > I tried also adding an extra-classpath reference in web.xml pointing to this > jar file - again, this didn't make a difference > I tried just unjarring the files into WEB-INF/classes - and again, this made > no difference > > How can I tell Cocoon where to find my generator (and other) files? > > TIA > > C. > -- > > > __________________________________________________________________ __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>