cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schmitt, Christian" <>
Subject AW: include own java class
Date Thu, 20 Jul 2000 08:38:38 GMT
the error message sounds like you don't have your directory structure
reflected in the jar file.
I.e.: The class you're trying to access is 'com/gft/shop/SendMail.class' but
in the jar file you don't have all the necessary directories. Instead you
have SendMail.class in the 'root' directory of the jar file.

Hope this helps,

> -----Urspr√ľngliche Nachricht-----
> Von: Spinner, Mike []
> Gesendet am: Donnerstag, 20. Juli 2000 09:59
> An: ''; ''
> Betreff: include own java class
> Hi all !
> I'm new in Cocoon.
> It is installed on Windows NT.
> Everthing's all right, but if I want to include
> my own java class in xsp, I get some problems.
> I tried it twice:
> First I added my class to the tool.jar File. So I hoped
> it is no problem to access the class. 
> Second I generated my own jar (and zip) file to
> which I later added my class. This time I added the
> path to the Also I added the path
> of my jar file to the classpath (environment variable)
> In both cases I restartet the apache webserver.
> But I alway get the error message:
> java.lang.Exception: XSP Java Compiler: Compilation failed for
> error: File 
> c:\jdk1.3\lib\tools.jar(com/gft/shop/SendMail.class) does not
> contain type as expected, but type 
> SendMail. Please

View raw message