[opencms-dev] cms shell error

Jonathan Woods jonathan.woods at scintillance.com
Tue Jun 27 05:46:18 CEST 2006


Roland -
 
Re 2, I wonder if your (Unix) shell script is calling the CmsShell class
with the right value for the -base parameter?  It's that which tells
CmsShell where to find OpenCms config.
 
The other explanation would be that one or more of your XML config files in
<opencms home>/config/ is badly formed or otherwise wrong... but I guess
you'd notice that when you started up OpenCms itself.
 
Jon

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Dong, Roland
Sent: 26 June 2006 22:16
To: The OpenCms mailing list
Subject: [opencms-dev] cms shell error


I am working on a publish script and got this error when executing on shell:
 
 
 
shell>sh publish
 
============================
log4j:WARN No appenders could be found for logger (org.opencms.init).
OpenCms WEB-INF path:  "/app/tomcat5/webapps/opencms/WEB-INF".
OpenCms property file:
"/app/tomcat5/webapps/opencms/WEB-INF/config/opencms.properties".
 
log4j:WARN Please initialize the log4j system properly.
 
--------------------
The following critical error occured:
Critical error during OpenCms initialization: Unable to read the OpenCms XML
configuration.
Giving up, unable to start OpenCms.
--------------------
org.opencms.main.CmsInitException: Critical error during OpenCms
initialization: Unable to read the OpenCms XML configuration.
        at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:798)
        at
org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1473)
        at org.opencms.main.CmsShell.<init>(CmsShell.java:495)
        at org.opencms.main.CmsShell.main(CmsShell.java:579)
Caused by: java.lang.IndexOutOfBoundsException
 
...........................

============================================== 
 
 
Can someone throw some light on 
1) what is wrong with log4j  
2) where do look for OpenCms XML configuration problem: 
 
 
Thanks,
 
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060627/d9ad025c/attachment.htm>


More information about the opencms-dev mailing list