[opencms-dev] Problem with Maintenance class

Joachim Arrasz info at arrasz.de
Tue Jan 27 12:01:10 CET 2004


Hi,

> I've create a new module for OpenCms and added a maintenance event
> class  in the administration view, to process some code after uploading
> the  module. I've put this class in a folder called "classes" in my
> module  and exported the module to a zip file. When I import my module
> the class  seems to be loaded to the virtual file system and exported
> to the  physical file system. But my maintenance class is not executet!
> It seems my servlet engine doesn't recognize the new class. When I
> start  and stop the servlet engine and upload the module again, the
> class is  found and my method is excecutet. So I've got to upload my
> module twice  to get the whole thing working. Has anybody occured such
> a problem  before and found a solution?

Stephan Hartmann spoke about a such a problem at his installation too. But
on our system it seems to work fine. But we did a trick. This can be the
solution. We built a general maintenance class. This class is used for all
the times our new modules become installed on a server. There we load a
propsfile where all needed informations are in.
So this class is known already from the Tomcat.

When you install your class via the module-upload Tomcat didn`t know this
class. After a reload tomcat found the class via his own classloader. So
it can work. This issue isn`t a problem with our solution i think!
Hope this helps

Joachim Arrasz

Synyx oHG Karlsruhe, Germany


-- 
Questions about OpenCMS?
--> www.opencms-forum.de






More information about the opencms-dev mailing list