[opencms-dev] Managing module libs and module events
Thomas Göttlich
guo.tuomi at googlemail.com
Fri Jul 16 14:38:43 CEST 2010
Another problem:
If I have 2 modules containing the same library deployed and undeploy one,
that library is deleted.
Shouldn't OpenCMS detect that the same export point is used by another
module and refuse to delete it?
Am 16. Juli 2010 10:54 schrieb Thomas Göttlich <guo.tuomi at googlemail.com>:
> 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/ed5740cc/attachment.htm>
More information about the opencms-dev
mailing list