[opencms-dev] CmsSiteManager addSite error message
Jonathan Woods
jonathan.woods at scintillance.com
Fri Sep 15 10:18:10 CEST 2006
At start-up, all config files are read and config methods invoked... but at
the end of the process, OpenCms executes a method which sets a flag to
indicate that the configuration has been initialised and may no longer be
changed (or something to that effect). Set logging level to debug, restart
OpenCms and have a look at the log - I think you'll see what I mean.
The usual way to add sites etc is by editing XML configuration files. If
for some reason you do need to do this programmatically, then (as you can
imagine) you'll need to investigate (i) how to unfreeze the config, if
that's possible, and (ii) what implications this might have for OpenCms
state management. Lots of trawling through the source code, I think!
Jon
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Andy Bicksbo
Sent: 15 September 2006 00:39
To: opencms-dev at opencms.org
Subject: [opencms-dev] CmsSiteManager addSite error message
Hi!
When i call the method addSite() (from the Class CmsSiteManager) i get the
following error message:
org.opencms.main.CmsRuntimeException: Site configuration has been frozen
and can not longer be changed.
at org.opencms.site.CmsSiteManager.addSite(CmsSiteManager.java:289)
In javadoc its written: "Adds a new CmsSite to the list of configured sites,
this is only allowed during configuration"
Does anybody know what during configuration means exactely?
Best regards
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060915/f610dc8b/attachment.htm>
More information about the opencms-dev
mailing list