[opencms-dev] OpenCms and Eclipse

Joe Lam joe.lam at moni-media.net
Fri Oct 27 06:04:24 CEST 2006


these my error when trying to open view in eclipse

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.LocalConnector.<init>(LocalConnector.java:56)
	at
org.laughingpanda.opencmsvfs.views.OpenCmsVFSView.<init>(OpenCmsVFSView.java:69)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
	at
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
	at
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
	at
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
	at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:242)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:238)
	at
org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:69)
	at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:292)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
	at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
	at
org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:3898)
	at
org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2922)
	at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1936)
	at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2857)
	at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2805)
	at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1681)
	at
org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1421)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1679)
	at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1650)
	at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1529)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1473)
	at
org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
	at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:702)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: org.xml.sax.SAXParseException: Element type "validationhandler"
must be declared.
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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(CmsConfigurationManager.java:499)
	at
org.opencms.configuration.CmsConfigurationManager.loadXmlConfiguration(CmsConfigurationManager.java:342)
	at org.opencms.main.OpenCmsCore.initConfiguration(OpenCmsCore.java:796)
	... 52 more

any help?
the line "Element type "validationhandler" must be declared."
looks like my config missing something called validationhandler.....

thanks
Joe Lam

-- 
View this message in context: http://www.nabble.com/OpenCms-and-Eclipse-tf2509200.html#a7024135
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list