[opencms-dev] Want to start a action class when installing a new module
Hartmann, Waehrisch & Feykes GmbH
hartmann at waehrisch-feykes.de
Tue Dec 2 14:07:01 CET 2003
Of course, the class that you declare as publish event class has to provide
this method:
public static void publishProject(com.opencms.file.CmsObject,
java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.lang.Long,
java.util.Vector, java.util.Vector)
(I hope this is the right signature)
Did you try the moduleWasUploaded on a clean system, i.e. where the class is
not already in the webapp's classes folder? I am asking because i believe
that the method is called before the module is published and therefor the
class loader won't find it at all.
Bye,
Stephan
----- Original Message -----
From: "Joachim Arrasz" <info at arrasz.de>
To: <opencms-dev at opencms.org>
Sent: Tuesday, December 02, 2003 1:51 PM
Subject: Re: [opencms-dev] Want to start a action class when installing a
new module
> Hi Stephan and List,
>
> > I also have to mention that the moduleWasUploaded method was never
> > called in versions before 5.0 and i didn't test it with 5.0 yet. If you
> > encounter that it won't work i can tell you what i did as workaround.
>
> i tried theese methods and can say that all 3 method will be called.
>
> I tried to use this class for both types where i can use a Action class in
> the Module Administration.
> But then i got a Exception while pubilshing:
>
> Exception java.lang.NoSuchMethodException:
>
com.synyx.opencms.calendar.CalendarInstallAction.publishProject(com.opencms.
file.CmsObject,
> java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.lang.Long,
> java.util.Vector, java.util.Vector)at
java.lang.Class.getMethod0(Class.java:1756)
> at java.lang.Class.getMethod(Class.java:963)
> at
>
com.opencms.file.genericSql.CmsResourceBroker.publishProject(CmsResourceBrok
er.java:4749)at
com.opencms.file.CmsObject.publishProject(CmsObject.java:2436)
> at
>
com.opencms.workplace.CmsAdminModuleImportThread.run(CmsAdminModuleImportThr
ead.java:115)
>
> Do you know something about this publishProject method?
>
> All rest works absolutely fine !!!
>
> Bye Achim
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list