[opencms-dev] Managing module libs and module events

Thomas Göttlich guo.tuomi at googlemail.com
Fri Jul 16 10:54:56 CEST 2010


Hi Florian,

yes that helps.

However, there is one major problem:

OpenCMS can't delete the jars since they are in the classpath of the
application and the OS refuses to delete them while still being used (i.e.
the server still references them).

The problem is that the export driver tries to delete the lib
(file.delete();) and reports "ok" but didn't actually delete anything.

Any ideas?

2010/7/15 Florian Hopf <hopf at synyx.de>

> Hi,
>
> Thomas Göttlich schrieb:
> > Those jars are put in the appropriate lib folder in the module and are
> > published upon upload (i.e. copied to the WEB-INF/lib dir).
> > However, if I update my module and the dependency version changes - to
> > let's say mydep-1.1.jar - I end up with 2 versions of the same
> > dependency in my WEB-INF/lib.
> >
> > I also deleted the module but it then leaves the additional jars in the
> > WEB-INF/lib and tells me that there are no publish history entries.
> >
> > Does OpenCMS delete additional jar files if a module is deleted or the
> > jar is not a module dependency any more?
>
> It should delete those jars if you added /system/modules/your-module as
> a module resource. I think this should happen automatically if you
> create the module in the workplace but might be missing if you are
> creating your module outside of opencms.
>
> Regards
> Florian
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100716/6d2b40a9/attachment.htm>


More information about the opencms-dev mailing list