[opencms-dev] Strange exception when importing module

Harald Brabenetz brabenetz at gmx.net
Fri Jun 22 07:29:02 CEST 2012


I used my own 'patched' cmsshell.bat:

http://bp-cms-commons.sourceforge.net/m2site/opencms/opencms-basic/7.5.4.1/patches/cmsshell.bat

The original one doesn't worked for me.

maybe this works also for you,

regards,
Harald


-------- Original-Nachricht --------
> Datum: Thu, 21 Jun 2012 18:14:33 +0200
> Von: Christian Esbensen <che at tmnet.dk>
> An: opencms-dev at opencms.org
> Betreff: [opencms-dev] Strange exception when importing module

> Dear list
> 
> I'm getting a strange exception when using the OpenCmsShell to import a 
> module:
> 
> java.lang.ClassNotFoundException: org.opencms.module.CmsModuleXmlHandler
>         at 
> java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:396)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
>         at 
> org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
>         at org.apache.commons.digester.Rule.begin(Rule.java:175)
>         at 
> org.apache.commons.digester.Digester.startElement(Digester.java:1453)
>         at 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1765)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.readModuleFromImport(CmsModuleImportExportHandler.java:158)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:499)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:372)
>         at 
> org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:729)
>         at org.opencms.main.CmsJMXShell.importModule(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:105)
>         at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:39)
>         at 
> com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:220)
>         at 
> com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:132)
>         at 
> com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:274)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
>         at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1438)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:83)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1276)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1371)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:799)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at 
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
>         at sun.rmi.transport.Transport$1.run(Transport.java:171)
>         at 
> java.security.AccessController.doPrivileged(AccessController.java:284)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:167)
>         at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:547)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:802)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:661)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
>         at java.lang.Thread.run(Thread.java:736)
> 21 Jun 2012 18:06:34,754 ERROR [e.CmsModuleImportExportHandler: 165] SAX 
> error reading module import from D:\modulename.zip.
> java.lang.ClassNotFoundException: org.opencms.module.CmsModuleXmlHandler
>         at 
> org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
>         at 
> org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
>         at 
> org.apache.commons.digester.Digester.startElement(Digester.java:1456)
>         at 
> org.apache.xerces.parsers.AbstractSAXParser.startElement(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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1765)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.readModuleFromImport(CmsModuleImportExportHandler.java:158)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:499)
>         at 
> org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:372)
>         at 
> org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:729)
>         at org.opencms.main.CmsJMXShell.importModule(Unknown Source)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:105)
>         at 
> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:39)
>         at 
> com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:220)
>         at 
> com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:132)
>         at 
> com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:274)
>         at 
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
>         at 
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1438)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:83)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1276)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1371)
>         at 
> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:799)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at 
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
>         at sun.rmi.transport.Transport$1.run(Transport.java:171)
>         at 
> java.security.AccessController.doPrivileged(AccessController.java:284)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:167)
>         at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:547)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:802)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:661)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
>         at java.lang.Thread.run(Thread.java:736)
> 
> This seems strange as the CmsModuleXmlHandler is in the opencms.jar.
> Also it's working fine manually importing through the administration 
> section in the workspace.
> Does anyone have an idea to what my problem could be?
> 
> Med venlig hilsen / Kind regards 
> 
> Christian Esbensen 
> IT-Konsulent
> 
> E-mail: che at tmnet.dk
> T: +45 3344 8555
> 
> Niels Hemmingsens Gade 9
> 1153 KĂžbenhavn
> 

-- 
Harald Brabenetz

Mauergasse 9
8020 Graz
AUSTRIA

Tel.. +43 664 1221025
Fax: +43 820 220262587

E-mail: brabenetz at gmx.net
Skype: brabenetz
Google-Talk: brabenetz
URL: http://www.brabenetz.net






More information about the opencms-dev mailing list