[opencms-dev] Alpha 1 error finding custom resource type
Frank Febbraro
frankfebbraro at gmail.com
Wed Sep 22 18:57:28 CEST 2004
I have a resource type that I have defined, that I hoped to put in a module.
I added the definition in opencms-vfs.xml as such:
<type class="org.p2.opencms.types.CmsResourceTypeStory" />
I also added the appropriate entries in opencms-workspace.xml
However if I define a module and put
org.p2.opencms.types.CmsResourceTypeStory in a jar file in the
module/lib directory, when starting Tomcat I get a
ClassNotFoundException. If I put the same jar file in
tomcat/webapps/opencms/WEB-INF/lib everything works fine and no
errors.
I looks like the VFS config gets loaded before the modules and thus
cannot find any classes in a module.
I though it was allowed to put a jar with classes to define new
resource types in a module, but this does not seem to be the case. The
OpenCMS book (I know it is only version 5) talks about unpacking and
repacking the opencms.jar to do this, but also claims it could be done
in a module, but I think that was because it had to be in the
com.opencms.file package)
Has something changed in 6.0 that would require it be in the WAR lib
instead of in a module lib?
I would apperciate any insight as I am starting a fairly large project
that will deal with what could be large customizations of OpenCMS and
want to get started off on the right foot.
Thanks,
Frank
More information about the opencms-dev
mailing list