[opencms-dev] Problems locating schema resource bundle

Jonathan Woods jonathan.woods at scintillance.com
Wed Feb 22 10:55:07 CET 2006


The answer (to my own question "why isn't my schema resource bundle being
found?") is probaby that schema resource bundles are only picked up at the
time OpenCms is started, and then only when schemas are part of registered
OpenCms resource types.
 
This makes full module development on the fly (in an ad hoc way) a bit
difficult.  Module templates are picked up as needed simply through the path
specified in resource properties; module classes can be developed on the fly
as long as they're written temporarily to a location in OpenCms's existing
classpath; schemas can also be developed on the fly because they're referred
to in XML resources; but resource bundles... not, it seems.
 
There are several workarounds including (i) stashing properties in an
existing, registered resource bundle, or (ii) registering the resource types
as they're developed, though that means fiddling around with opencms-vfs.xml
earlier than is ideal.
 
Jon
 
  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jonathan Woods
Sent: 22 February 2006 06:05
To: 'The OpenCms mailing list'
Subject: [opencms-dev] Problems locating schema resource bundle


I've defined a schema and it's working fine with the auto-generated
editor... except for the fact that OpenCms isn't finding my resource bundle,
and so element labels and element help are missing.  Can anyone think of
what I might be missing?
 
I'm developing a module 'in place', i.e. starting out as a structure in
/system/modules before I package it up.  The resource bundle is cited in my
schema file as
 
<resourcebundle name="com.scintillance.bla.configuration"/>
 
and I have placed the associated resources in files configuration.properties
and configuration_en.properties (my locale being en_GB) in just about every
classpath location I can think of, including  <opencms webapp
path>/WEB-INF/classes/com/scintillance/bla (my module not yet having an
export point to give it its own classpath).
 
opencms.log output shows OpenCms searching through every resource bundle
under the sun without mentioning my own 'configuration' bundle, and of
course without finding e.g. the element label.  So,
 
tail -f --retry  <opencms webapp path>/WEB-INF/logs/opencms.log | grep
"HeadlineStoryTitle"
 
produces lots of
 
org.opencms.i18n.CmsMessageException: Cannot find resource
label.HomePage.HeadlineStoryTitle.help for bundle <various bundle names
except the one I want>.
 
The situation persists across OpenCms restarts, and other classes in the
WEB-INF location I mentioned above are being found without any problem.
 
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060222/7acee561/attachment.htm>


More information about the opencms-dev mailing list