[opencms-dev] Problem with Maintenance class

Jörg Herbst herbst at getit.de
Tue Jan 27 09:47:00 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?

Enviroment:
W2K
Jboss 3.2.2 with Tomcat 4.1.27 (also tried tomcat standalone)
JDK 1.4.1
MySQL 3.2

Class structure:
public class Maintenance {
    public static void moduleParameterWasUpdated(CmsObject cms) throws 
CmsException {
        // Also a Dummy
    }

    public static void moduleWasUploaded(CmsObject cms) throws 
CmsException {
        // This code should be executet
    }

    public static void moduleWasDeleted(CmsObject cms) throws CmsException {
       // Just a dummy
    }
}

Thx
Joerg




More information about the opencms-dev mailing list