[opencms-dev] module with additionalresource /folder in OpenCms6b3

Markus Daniel markus.daniel at synyx.de
Tue May 24 14:12:00 CEST 2005


Hi list,
I want to build a module with an additionalresource, this resource 
should be a folder in "/" (NOT /sites/default).

So I added an additionalresource "/folder" in the moduleprops,
then I tried to export it.
Result:
Exception org.opencms.file.CmsVfsResourceNotFoundException: Trying to 
access a folder as file (/folder/) Resource not found!
at org.opencms.db.CmsDriverManager.readFile(CmsDriverManager.java:4699)
at org.opencms.db.CmsSecurityManager.readFile(CmsSecurityManager.java:2886)
at org.opencms.file.CmsObject.readFile(CmsObject.java:2085)
at org.opencms.importexport.CmsExport.addFiles(CmsExport.java:678)
at org.opencms.importexport.CmsExport.exportAllResources(CmsExport.java:470)
at org.opencms.importexport.CmsExport.<init>(CmsExport.java:225)
at 
org.opencms.module.CmsModuleImportExportHandler.exportData(CmsModuleImportExportHandler.java:202)
at 
org.opencms.importexport.CmsImportExportManager.exportData(CmsImportExportManager.java:278)
at org.opencms.threads.CmsExportThread.run(CmsExportThread.java:82)

I wrote /folder into the props NOT /folder/ but opencms6b3 added 
/folder/ ...
I tried to change this via editing the moduleProps and by editing 
opencms-modules.xml with the effect that the entry /folder/ disappears 
but during the export I got the same Exception and the exported module 
is only a corrupted zipFile, so I cannot change the manifest.xml and 
reimport.

Has anybody a conclusion for that?

Thanks in advance.

Markus Daniel



More information about the opencms-dev mailing list