[opencms-dev] CmsShell.sh problem after a fresh install of OpenCms6.2.1

Dong, Roland Roland_Dong at parade.com
Thu Jul 6 20:24:54 CEST 2006



Hi, Opencms experts:


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: 

(Environment: Solaris 10, Oracle9i, OpenCms 6.2.1, Tomcat 5.5.9)

========================================================================
=====
opencms at samgdebd10:/app/tomcat5/webapps/opencms/WEB-INF> bash
cmsshell.sh
OpenCms WEB-INF path:  "/app/tomcat5/webapps/opencms/WEB-INF".
OpenCms property file:
"/app/tomcat5/webapps/opencms/WEB-INF/config/opencms.properties".


--------------------
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
        at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
        at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
========================================================================
========




This is in the opencms.log:

====================================================

. . . . . . . . .

06 Jul 2006 11:50:08,981  INFO [uration.CmsSystemConfiguration: 465] .
System configuration : initialized
06 Jul 2006 11:50:08,993 DEBUG [ration.CmsConfigurationManager: 165]
Adding configuration:
org.opencms.configuration.CmsSystemConfiguration at 18fd984
06 Jul 2006 11:50:08,997 ERROR [ache.commons.digester.Digester:1132] End
event threw exception
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
16)
        at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
        at org.apache.commons.digester.Rule.end(Rule.java:230)
        at
org.apache.commons.digester.Digester.endElement(Digester.java:1130)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
org.apache.commons.digester.Digester.parse(Digester.java:1666)
        at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(C
msConfigurationManager.java:499)
        at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(C
msConfigurationManager.java:336)
        at
org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:796)
        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
        at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122)
        at org.opencms.util.CmsFileUtil.readFully(CmsFileUtil.java:559)
        at org.opencms.util.CmsFileUtil.readFile(CmsFileUtil.java:519)
        at org.opencms.util.CmsFileUtil.readFile(CmsFileUtil.java:532)
        at
org.opencms.configuration.CmsConfigurationManager.cacheDtdSystemId(CmsCo
nfigurationManager.java:444)
        at
org.opencms.configuration.CmsConfigurationManager.addConfiguration(CmsCo
nfigurationManager.java:168)
        ... 25 more
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.

====================================================


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?  

Thanks,

Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060706/2ab659a1/attachment.htm>


More information about the opencms-dev mailing list