RE: war file classpath

2002-06-14 Thread cnsxxx09

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 NoClassDefFoundErroras 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: war file classpath

2002-06-06 Thread Vadim Gritsenko

> 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. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: war file classpath

2002-06-06 Thread cnsxxx09

Digging deeper I can see that my own Generator extends (and imports) 
org.apache.cocoon.generation.ServletGenerator, as follows
  public class MyGenerator extends org.apache.cocoon.generation.ServletGenerator
 implements org.apache.avalon.excalibur.pool.Recyclable {


So the NoClassDefFound error appears, naturally, to be saying that my class cannot 
find the cocoon class.

This is even more puzzling because the ServletGenerator class lives in cocoon-2.0.jar 
which does exists in WEB-INF/lib/
And I would assume that Cocoon itself (and the samples) would need to use this 
class

...weird!

C.
--

[EMAIL PROTECTED] wrote:

>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/ServletGenerator
>
>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. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>


__
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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>