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

Jonathan Woods jonathan.woods at scintillance.com
Thu Jul 6 20:49:42 CEST 2006


Roland -
 
Sorry this is still bugging you.  Couple of things to think about:
 
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?
 
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.
 
Jon

  _____  

From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Dong, Roland
Sent: 06 July 2006 19:25
To: The OpenCms mailing list
Subject: [opencms-dev] CmsShell.sh problem after a fresh install
ofOpenCms6.2.1





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




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.java:39
) 
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:585) 
        at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) 
        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(Unkno
wn Source) 
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source) 
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
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(CmsCo
nfigurationManager.java:499) 
        at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(CmsCo
nfigurationManager.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(CmsConfig
urationManager.java:444) 
        at
org.opencms.configuration.CmsConfigurationManager.addConfiguration(CmsConfig
urationManager.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/af148523/attachment.htm>


More information about the opencms-dev mailing list