cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spinner, Mike" <Mike.Spin...@gft.de>
Subject AW: include own java class
Date Thu, 20 Jul 2000 08:58:18 GMT
Thanx to all !

I solved the problem.
It seems that I shoul set both classpaths.
On one side the classpath on the environment variable
AND in the jserv.properties.
I started the apache Server TWICE
and it works !!!

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: Mike.Spinner@gft.de, http://www.gft.de
> 
> -----Urspr√ľngliche Nachricht-----
> Von:	Schmitt, Christian [SMTP:Christian.Schmitt@Dresdner-Bank.com]
> Gesendet am:	Donnerstag, 20. Juli 2000 10:39
> An:	cocoon-users@xml.apache.org
> Betreff:	AW: include own java class
> 
> Mike,
> 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,
> Christian
> 
> 
> > -----Urspr√ľngliche Nachricht-----
> > Von: Spinner, Mike [mailto:Mike.Spinner@gft.de]
> > Gesendet am: Donnerstag, 20. Juli 2000 09:59
> > An: 'cocoon-dev@xml.apache.org'; 'cocoon-users@xml.apache.org'
> > 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 jserv.properties. 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
> > _bestellung_mail.java
> > error: File 
> > c:\jdk1.3\lib\tools.jar(com/gft/shop/SendMail.class) does not
> > contain type com.gft.shop.SendMail as expected, but type 
> > SendMail. Please
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message