cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spinner, Mike" <>
Subject include own java class
Date Thu, 20 Jul 2000 07:58:38 GMT
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
remove the file, or make sure it appears in the correct subdirectory of the
class path.
32: Class not found in import.
2 errors

	at org.apache.cocoon.Engine.handle(
	at org.apache.cocoon.Cocoon.service(
	at javax.servlet.http.HttpServlet.service(

Can anybody help me ?
Is therer maybe a step by step description what do do if want include own
java classes ?

Thanx Mike.

> ------------------------
> Mike Spinner, GFT Technologies AG - Internet Solutions - 
> Leopoldstr. 1, D-78112 St.Georgen, Germany
> Fon: +49-7724 / 9411-0, Telefax: +49-7724 / 9411-94
> eMail:,

View raw message