Hello
I have deployed Xwiki Enterprise 4.4 on Apache Geronimo 3.0 and I've noticed that the
logging error that was preventing Xwiki Enterprise 4.3 from starting has disappeared and
the application now starts. Thank you for resolving the issue (XCOMMONS-315). However,
exceptions are still being generated and I can't get Xwiki to run properly. Once I
get it running, I can look into the logging feature at some point.
This time, I'm getting a chain of exceptions that end with the following:
Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.apache.geronimo.hook.equinox.GeronimoClassLoader.defineClass(GeronimoClassLoader.java:213)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
at
org.apache.geronimo.hook.equinox.GeronimoClassLoader.findLocalClass(GeronimoClassLoader.java:237)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source)
at org.xwiki.xml.internal.html.XWikiDOMSerializer.createDOM(XWikiDOMSerializer.java:91)
at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:160)
at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:120)
at
org.xwiki.xml.internal.html.DefaultHTMLCleaner.initialize(DefaultHTMLCleaner.java:114)
at
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
at
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323)
at
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378)
at
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:467)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at
org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 46 more
After doing some research, I discovered that the org.w3c.dom.ElementTraversal class is in
the xml-apis-1.4.01.jar file which is included in Xwiki Enterprise's lib directory.
So, I can't figure out why it's not finding the class. I tried copy the JAR files
xml-apis-1.4.01.jar and xml-apis-ext-1.3.04.jar into {geronimo_home}\lib\endorsed but this
prevented Geronimo from starting up. So, I then moved the files into
{garonimo_home}\var\shared\lib but the exceptions are still appearing (the files seem to
be ignored).
I have also tried adding the <dep:inverse-classloading/> tag to the geronimo-web.xml
file but this didn't help.
Any suggestions would be much appreciated.
Thank you.
Naoufel Chbihi
Technical Specialist | Spécialiste technique
Mainframe Operating System Technology | Technologie du système d'exploitation des
ordinateurs centraux
Service Management & Delivery (SM&D) | Gestion et prestation des services (GPS)
Information Technology Services Branch (ITSB) | Direction générale des services
d'infotechnologie (DGSIT)
Shared Services Canada | Services partagés Canada
7038-700 Montreal Road, Ottawa, ON K1A 0P7 | 7038-700, chemin Montréal, Ottawa, ON K1A 0P7
Tel.: 613-748-2169
Fax: 613-748-2617
E-mail: naoufel.chbihi(a)ssc.gc.ca | naoufel.chbihi(a)spc.gc.ca