<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=690395914-27062006><FONT face=Arial color=#0000ff size=2>I
added colon and had the same error...</FONT></SPAN></DIV>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Jonathan Woods<BR><B>Sent:</B> Tuesday, June 27, 2006 10:30
AM<BR><B>To:</B> 'The OpenCms mailing list'<BR><B>Subject:</B> RE: [opencms-dev]
cms shell error<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=361123014-27062006><FONT face=Arial
color=#0000ff size=2>No stunning insight, but aren't you missing a colon before
$OCMSLIBPATH? Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Dong,
Roland<BR><B>Sent:</B> 27 June 2006 14:51<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> RE: [opencms-dev] cms shell error<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006>Jon,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=789404113-27062006>Thanks
a lot. This is code calling CmsShell:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>java -classpath
.:$TOMCATLIB$OCMSLIBPATH:classes org.opencms.main.CmsShell -base=$OPENCMS_HOME
-script=$EXPORT_FILE</FONT></DIV>
<DIV><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff size=2>where
OPENCMS_HOME points to /opencms/WEB-INF</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2>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.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=789404113-27062006>Please
shed some light on this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006>Roland</SPAN></FONT></DIV>
<DIV><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=789404113-27062006></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2><SPAN class=789404113-27062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><BR></FONT></DIV><FONT color=#0000ff size=2></FONT></FONT>
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <B>On
Behalf Of </B>Jonathan Woods<BR><B>Sent:</B> Monday, June 26, 2006 11:46
PM<BR><B>To:</B> 'The OpenCms mailing list'<BR><B>Subject:</B> RE: [opencms-dev]
cms shell error<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2>Roland -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=590344403-27062006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Dong,
Roland<BR><B>Sent:</B> 26 June 2006 22:16<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> [opencms-dev] cms shell error<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=516111121-26062006>I am
working on a publish script and got this error when executing on
shell:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006>shell>sh publish</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006>============================</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006>log4j:WARN No appenders could be found for logger
(org.opencms.init).<BR>OpenCms WEB-INF path:
"/app/tomcat5/webapps/opencms/WEB-INF".<BR>OpenCms property file:
"/app/tomcat5/webapps/opencms/WEB-INF/config/opencms.properties".</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006>log4j:WARN Please initialize the log4j system
properly.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006>--------------------<BR>The following critical error
occured:<BR>Critical error during OpenCms initialization: Unable to read the
OpenCms XML configuration.<BR>Giving up, unable to start
OpenCms.<BR>--------------------<BR>org.opencms.main.CmsInitException: Critical
error during OpenCms initialization: Unable to read the OpenCms XML
configuration.<BR> at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:798)<BR>
at
org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1473)<BR>
at
org.opencms.main.CmsShell.<init>(CmsShell.java:495)<BR>
at org.opencms.main.CmsShell.main(CmsShell.java:579)<BR>Caused by:
java.lang.IndexOutOfBoundsException</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=516111121-26062006></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=516111121-26062006><FONT face=Arial color=#0000ff
size=2>...........................</FONT></DIV>
<DIV><BR><FONT face=Arial><FONT color=#0000ff><FONT
size=2>==============================================<SPAN
class=516111121-26062006> </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006>Can someone throw some light on
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006>1) what is wrong with log4j
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006>2) where do look for OpenCms XML configuration
problem: </SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006>Thanks,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=516111121-26062006>Roland</SPAN></FONT></FONT></FONT></SPAN></FONT></DIV></BODY></HTML>