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