<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2>Joachim -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2>The question is made more complicated by the status of your
module. If you're developing it from scratch, and just putting JSP, XSD,
HTML and Java (class) files underneath /system/modules in directories following
the normal OpenCms module structure, that's fine - but until you tell OpenCms
'officially' that it's a module, it won't put the /system/modules/<your
module name>/classes directory in the runtime classpath - so your classes
won't be found. Same goes for jar files in /system/modules/<your module
name>/lib.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2>I think the best way to develop your module is to put your
class files in <opencms root>/WEB-INF/classes, which is always in the
OpenCms classpath; then once things are stable and you are ready to package
up your module as a module, you can put them instead in the directory
above. Other people may have different ways of
working.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2>Tip: beware old versions of your classes being picked up
from odd places. I'd suggest including a build timestamp in your Java code
and spitting it out in the log or in a test area of your web pages, just so you
can be sure new stuff is being picked up; and of course if OpenCms has already
loaded a class then you'll need to restart Tomcat for it to pick up any new
version.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=396381617-14032006></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Panos Kavalagios<BR><B>Sent:</B> 14 March 2006 15:48<BR><B>To:</B>
The OpenCms mailing list<BR><B>Subject:</B> Re: [opencms-dev] opencms 6 | where
to put class files<BR></FONT><BR></DIV>
<DIV></DIV>Joachim,<BR><BR> You can either place your class
file in:<BR><BR><B>my.mod.submodule/classes/my/mod/submodule</B><BR><BR>or as a
jar file
in:<BR><BR><B>my.mod.submodule/lib</B><BR><BR>Regards,<BR>Panos<BR><BR>Joachim
Zittmayr wrote:
<BLOCKQUOTE cite=mid1142350742.7309.256594754@webmail.messagingengine.com
type="cite"><PRE wrap="">hello ocms.dev.list!
where do i have to put (new) class files?
can i put them just under a module classes folder (e.g.
my.mod.submodule/classes/classname.class)?
what else do i have to consider? it seems as if the newly created class
is not "recognized". i added a method, but i can't use it in a e.g.
jsp-template (method foo(String) is undefined for the type bar)
thanks 4 ur help!
joachim
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">--
Panagiotis Th. Kavalagios
Electrical & Computer Engineer
European Dynamics S.A.
Athens, Hellas
Tel: +30-210-8094500
</PRE></BODY></HTML>