<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>CmsShell.sh problem after a fresh install of OpenCms6.2.1</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2>Roland -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2>Sorry this is still bugging you. Couple of things to
think about:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2>1. I presume OpenCms starts up 'normally' (that is
via Tomcat) even if it doesn't via CmsShell? If so, then are you sure
that the paths you give below are the same paths which would be used by a
normal start-up, and that there aren't old copies of opencms.properties or any
XML config files lurking around?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2>2. If in <opencms
home>/WEB-INF/log4j.properties you turn on DEBUG logging for org.opencms,
then the debug output produced by CmsConfigurationManager line 480 should at
least tell you which file is causing the problem... then you could post that
here. The log file, as you probably know, is output by default to
<opencms home>/WEB-INF/logs/opencms.log.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649314518-06072006><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> 06 July 2006 19:25<BR><B>To:</B> The OpenCms mailing
list<BR><B>Subject:</B> [opencms-dev] CmsShell.sh problem after a fresh install
ofOpenCms6.2.1<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format --><BR><BR>
<P><FONT face="Courier New" size=2>Hi, Opencms experts:</FONT> </P><BR>
<P><FONT face="Courier New" size=2>I have installed OpenCms 6.2.1 from scrach
(not update) with the hope that cmsshell.sh which comes with the install would
work. However, I am still getting the following errors: </FONT></P>
<P><FONT face="Courier New" size=2>(Environment: Solaris 10, Oracle9i, OpenCms
6.2.1,</FONT> <FONT face="Times New Roman">Tomcat 5.5.9)</FONT> </P>
<P><FONT face="Courier New"
size=2>=============================================================================</FONT>
<BR><FONT face="Courier New"
size=2>opencms@samgdebd10:/app/tomcat5/webapps/opencms/WEB-INF> bash
cmsshell.sh</FONT> <BR><FONT face="Courier New" size=2>OpenCms WEB-INF
path: "/app/tomcat5/webapps/opencms/WEB-INF".</FONT> <BR><FONT
face="Courier New" size=2>OpenCms property file:
"/app/tomcat5/webapps/opencms/WEB-INF/config/opencms.properties".</FONT>
</P><BR>
<P><FONT face="Courier New" size=2>--------------------</FONT> <BR><FONT
face="Courier New" size=2>The following critical error occured:</FONT> <BR><FONT
face="Courier New" size=2>Critical error during OpenCms initialization: Unable
to read the OpenCms XML configuration.</FONT> <BR><FONT face="Courier New"
size=2>Giving up, unable to start OpenCms.</FONT> <BR><FONT face="Courier New"
size=2>--------------------</FONT> <BR><FONT face="Courier New"
size=2>org.opencms.main.CmsInitException: Critical error during OpenCms
initialization: Unable to read the OpenCms XML configuration.</FONT></P>
<P><FONT face="Courier New" size=2> at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:798)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1473)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.main.CmsShell.<init>(CmsShell.java:495)</FONT> <BR><FONT
face="Courier New" size=2> at
org.opencms.main.CmsShell.main(CmsShell.java:579)</FONT> <BR><FONT
face="Courier New" size=2>Caused by: java.lang.IndexOutOfBoundsException</FONT>
<BR><FONT face="Courier New" size=2>
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2919)</FONT>
<BR><FONT face="Courier New" size=2>
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2945)</FONT>
<BR><FONT face="Courier New"
size=2>================================================================================</FONT>
</P><BR><BR><BR>
<P><FONT face="Courier New" size=2>This is in the opencms.log:</FONT> </P>
<P><FONT face="Courier New"
size=2>====================================================</FONT> </P>
<P><FONT face="Courier New" size=2>. . . . . . . . .</FONT> </P>
<P><FONT face="Courier New" size=2>06 Jul 2006 11:50:08,981 INFO
[uration.CmsSystemConfiguration: 465] . System configuration :
initialized</FONT> <BR><FONT face="Courier New" size=2>06 Jul 2006 11:50:08,993
DEBUG [ration.CmsConfigurationManager: 165] Adding configuration:
org.opencms.configuration.CmsSystemConfiguration@18fd984</FONT></P>
<P><FONT face="Courier New" size=2>06 Jul 2006 11:50:08,997 ERROR
[ache.commons.digester.Digester:1132] End event threw exception</FONT> <BR><FONT
face="Courier New" size=2>java.lang.reflect.InvocationTargetException</FONT>
<BR><FONT face="Courier New" size=2>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</FONT> <BR><FONT
face="Courier New" size=2> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</FONT>
<BR><FONT face="Courier New" size=2>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</FONT>
<BR><FONT face="Courier New" size=2>
at java.lang.reflect.Method.invoke(Method.java:585)</FONT> <BR><FONT
face="Courier New" size=2> at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.commons.digester.Rule.end(Rule.java:230)</FONT> <BR><FONT
face="Courier New" size=2> at
org.apache.commons.digester.Digester.endElement(Digester.java:1130)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)</FONT> <BR><FONT face="Courier New"
size=2> at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)</FONT>
<BR><FONT face="Courier New" size=2>
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)</FONT> <BR><FONT face="Courier New"
size=2> at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)</FONT> <BR><FONT face="Courier New"
size=2> at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)</FONT> <BR><FONT face="Courier New"
size=2> at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)</FONT> <BR><FONT
face="Courier New" size=2> at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)</FONT>
<BR><FONT face="Courier New" size=2>
at org.apache.commons.digester.Digester.parse(Digester.java:1666)</FONT>
<BR><FONT face="Courier New" size=2>
at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(CmsConfigurationManager.java:499)</FONT>
<BR><FONT face="Courier New" size=2>
at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(CmsConfigurationManager.java:336)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:796)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.main.OpenCmsCore.upgradeRunlevel(OpenCmsCore.java:1473)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.main.CmsShell.<init>(CmsShell.java:495)</FONT> <BR><FONT
face="Courier New" size=2> at
org.opencms.main.CmsShell.main(CmsShell.java:579)</FONT> <BR><FONT
face="Courier New" size=2>Caused by: java.lang.IndexOutOfBoundsException</FONT>
<BR><FONT face="Courier New" size=2>
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122)</FONT>
<BR><FONT face="Courier New" size=2>
at org.opencms.util.CmsFileUtil.readFully(CmsFileUtil.java:559)</FONT> <BR><FONT
face="Courier New" size=2> at
org.opencms.util.CmsFileUtil.readFile(CmsFileUtil.java:519)</FONT> <BR><FONT
face="Courier New" size=2> at
org.opencms.util.CmsFileUtil.readFile(CmsFileUtil.java:532)</FONT> <BR><FONT
face="Courier New" size=2> at
org.opencms.configuration.CmsConfigurationManager.cacheDtdSystemId(CmsConfigurationManager.java:444)</FONT>
<BR><FONT face="Courier New" size=2>
at
org.opencms.configuration.CmsConfigurationManager.addConfiguration(CmsConfigurationManager.java:168)</FONT>
<BR><FONT face="Courier New" size=2>
... 25 more</FONT> <BR><FONT face="Courier New" size=2>06 Jul 2006 11:50:09,008
ERROR [ org.opencms.main.OpenCmsCore: 295] Critical error during OpenCms
initialization: Unable to read the OpenCms XML configuration.</FONT></P>
<P><FONT face="Courier New"
size=2>====================================================</FONT> </P><BR>
<P><FONT face=Arial size=2>At Christian's suggestion, I checked the validity of
all jar files in lib directory and al jars in tomcat common directory, all
fine. Should the cmsshell.sh work right out of the box? Or I
am missing something obvious? </FONT></P>
<P><FONT face=Arial size=2>Thanks,</FONT> </P>
<P><FONT face=Arial size=2>Roland</FONT> </P></BODY></HTML>