[opencms-dev] cms shell error

Dong, Roland Roland_Dong at parade.com
Tue Jun 27 16:59:24 CEST 2006


Thanks, Jon. I don't think that is the problem because the same script
is working on the other server and I checked there is no colon there.
Got stuck here for a couple of days.
 
Roland
 
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jonathan Woods
Sent: Tuesday, June 27, 2006 10:30 AM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] cms shell error


No stunning insight, but aren't you missing a colon before $OCMSLIBPATH?
Jon

  _____  

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


Jon,
 
Thanks a lot. This is code calling CmsShell:
 
java -classpath .:$TOMCATLIB$OCMSLIBPATH:classes
org.opencms.main.CmsShell -base=$OPENCMS_HOME -script=$EXPORT_FILE
 
where OPENCMS_HOME points to  /opencms/WEB-INF
 
The script is copied  from a working script residing in a different unix
system but with the same file structure.   The opencms configuration
files should be ok because I have no problems starting up the workplace.
I am wondering If I am missing a lib file.
 
Please shed some light on this.
 
Thanks,
 
Roland
 
 
 
 


-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Jonathan Woods
Sent: Monday, June 26, 2006 11:46 PM
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] cms shell error


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/944e128d/attachment.htm>


More information about the opencms-dev mailing list