5 Replies Latest reply on Aug 3, 2013 11:00 AM by Lalit Manchanda

    java.lang.NoClassDefFoundError: org/w3c/dom/Node

    Lalit Manchanda Newbie

      Hi,


      We are trying to use Smooks library, everything gets installed properly as a FAB and get the following Import-Package List,


      Import-Package =

              com.bea.xml.stream;resolution:=optional,

              com.sun.jdi;resolution:=optional,

              com.sun.jdi.connect;resolution:=optional,

              com.sun.jdi.event;resolution:=optional,

              com.sun.jdi.request;resolution:=optional,

              com.sun.org.apache.xml.internal.utils;resolution:=optional,

              com.sun.org.apache.xpath.internal;resolution:=optional,

              com.sun.org.apache.xpath.internal.objects;resolution:=optional,

              com.wutka.dtd;resolution:=optional,

              javax.el;resolution:=optional,

              javax.naming;resolution:=optional,

              javax.naming.spi;resolution:=optional,

              javax.net;resolution:=optional,

              javax.net.ssl;resolution:=optional,

              javax.security.auth;resolution:=optional,

              javax.security.cert;resolution:=optional,

              javax.servlet;resolution:=optional,

              javax.servlet.http;resolution:=optional,

              javax.servlet.jsp;resolution:=optional,

              javax.servlet.jsp.el;resolution:=optional,

              javax.servlet.jsp.tagext;resolution:=optional,

              javax.sql;resolution:=optional,

              javax.swing;resolution:=optional,

              javax.swing.border;resolution:=optional,

              javax.swing.event;resolution:=optional,

              javax.swing.plaf;resolution:=optional,

              javax.swing.table;resolution:=optional,

              javax.swing.tree;resolution:=optional,

              javax.xml.datatype;resolution:=optional,

              javax.xml.namespace;resolution:=optional,

              javax.xml.parsers;resolution:=optional,

              javax.xml.stream;version="[1.0.0.2,2)",

              javax.xml.transform;resolution:=optional,

              javax.xml.transform.dom;resolution:=optional,

              javax.xml.transform.sax;resolution:=optional,

              javax.xml.transform.stream;resolution:=optional,

              javax.xml.validation;resolution:=optional,

              javax.xml.xpath;resolution:=optional,

              net.sf.cglib.proxy;resolution:=optional,

              nu.xom;resolution:=optional,

              org.apache.camel;resolution:=optional,

              org.apache.camel.component.file;resolution:=optional,

              org.apache.commons.logging;resolution:=optional,

              org.apache.log;resolution:=optional,

              org.apache.log4j;resolution:=optional,

              org.apache.tools.ant;resolution:=optional,

              org.apache.tools.ant.taskdefs;resolution:=optional,

              org.apache.xml.utils;resolution:=optional,

              org.apache.xpath;resolution:=optional,

              org.apache.xpath.objects;resolution:=optional,

              org.codehaus.jettison;resolution:=optional,

              org.codehaus.jettison.mapped;resolution:=optional,

              org.dom4j;resolution:=optional,

              org.dom4j.io;resolution:=optional,

              org.dom4j.tree;resolution:=optional,

              org.jdom;resolution:=optional,

              org.jdom.input;resolution:=optional,

              org.jdom.output;resolution:=optional,

              org.joda.time;resolution:=optional,

              org.joda.time.format;resolution:=optional,

              org.kxml2.io;resolution:=optional,

              org.mozilla.javascript;resolution:=optional,

              org.osgi.service.blueprint;resolution:=optional;version="[1.0.0,2.0.0)",


              org.python.core;resolution:=optional,

              org.python.util;resolution:=optional,


              org.w3c.dom.ls;resolution:=optional,

              org.w3c.dom.traversal;resolution:=optional,

              org.xml.sax;resolution:=optional,

              org.xml.sax.ext;resolution:=optional,

              org.xml.sax.helpers;resolution:=optional,

              org.zeroturnaround.javarebel;resolution:=optional,

              sun.misc;resolution:=optional,

              sun.reflect;resolution:=optional,

              sun.security.action;resolution:=optional








      this list does not show by org.w3c.dom.Node by default. but when we try to execute the code it fails with the following exception






      from(file://src/data?noop=true) -->  <<< Pattern:InOnly, Headers:{CamelFileAbsolute=false, CamelFileAbsolutePath=D:\Other\Software\jboss-fuse-6.0.0.redhat-015\src\data\input-message.xml, breadcrumbId=ID-LTB0062953-63758-1368158125583-2-35, CamelFileRelativePath=input-message.xml, CamelFileLastModified=1322774402000, CamelFileLength=235, CamelFileName=input-message.xml, CamelFileParent=src\data, CamelFilePath=src\data\input-message.xml, CamelFileNameOnly=input-message.xml}, BodyType:org.apache.camel.component.file.GenericFile, Body:[Body is file based: GenericFile[input-message.xml]]

      09:32:24,282 | WARN  |  file://src/data | GenericFileOnCompletion          | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60015 | Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@45265a for file: GenericFile[input-message.xml]

      09:32:24,286 | ERROR |  file://src/data | DefaultErrorHandler              | 130 - org.apache.camel.camel-core - 2.10.0.redhat-60015 | Failed delivery for (MessageId: ID-LTB0062953-63758-1368158125583-2-35 on ExchangeId: ID-LTB0062953-63758-1368158125583-2-36). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[input-message.xml]

      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[input-message.xml]

              at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1332)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:282)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:64)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:163)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:81)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:334)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:220)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.interceptor.DefaultChannel.process(DefaultChannel.java:308)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.RouteContextProcessor.processNext(RouteContextProcessor.java:46)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNext(RouteInflightRepositoryProcessor.java:48)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:336)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:189)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:142)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:92)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43]

              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_43]

              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_43]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_43]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_43]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_43]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_43]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_43]

              at java.lang.Thread.run(Thread.java:662)[:1.6.0_43]

      Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/Node

              at org.milyn.cdr.SmooksResourceConfigurationStore.addHandlerFactoryConfig(SmooksResourceConfigurationStore.java:143)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.milyn.cdr.SmooksResourceConfigurationStore.registerInstalledHandlerFactories(SmooksResourceConfigurationStore.java:139)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.milyn.cdr.SmooksResourceConfigurationStore.<init>(SmooksResourceConfigurationStore.java:112)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.milyn.container.standalone.StandaloneApplicationContext.<init>(StandaloneApplicationContext.java:59)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.milyn.Smooks.<init>(Smooks.java:118)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.milyn.Smooks.<init>(Smooks.java:148)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at com.fusesource.fusebyexample.SmooksEndpoint.process(SmooksEndpoint.java:45)[343:com.fusesource.fusebyexample.JettySample:0.0.1.SNAPSHOT]

              at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[130:org.apache.camel.camel-core:2.10.0.redhat-60015]

              ... 48 more

      Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node not found by com.fusesource.fusebyexample.JettySample [343]

              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)[org.apache.felix.framework-4.0.3.redhat-60015.jar:]

              at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)[org.apache.felix.framework-4.0.3.redhat-60015.jar:]

              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)[org.apache.felix.framework-4.0.3.redhat-60015.jar:]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_43]

              ... 56 more





      We followed a issue on StackOverFlow http://stackoverflow.com/questions/8118404/osgi-expose-an-classnotfoundexception-org-w3c-dom-error-when-release


      and added an import-packager directive like the following:


      <plugin>

              <groupId>org.apache.maven.plugins</groupId>

              <artifactId>maven-jar-plugin</artifactId>

              <configuration>

                <archive>

                  <index>true</index>

                  <manifestEntries>

                    <Import-Package>org.w3c.dom,*</Import-Package>

                   </manifestEntries>

                </archive>

              </configuration>

            </plugin>



      This adds the org.w3c.dom to the import but also makes other optional inclusions as manadatory, hence FAB cannot start now. Following is the list of new headers



      com.bea.xml.stream,

      com.sun.jdi,

      com.sun.jdi.connect,

      com.sun.jdi.event,

      com.sun.jdi.request,

      com.sun.org.apache.xml.internal.utils,

      com.sun.org.apache.xpath.internal,

      com.sun.org.apache.xpath.internal.objects,

      com.wutka.dtd,

      javax.el,

      javax.naming,

      javax.naming.spi,

      javax.net,

      javax.net.ssl,

      javax.security.auth,

      javax.security.cert,

      javax.servlet,

      javax.servlet.http,

      javax.servlet.jsp,

      javax.servlet.jsp.el,

      javax.servlet.jsp.tagext,

      javax.sql,

      javax.swing,

      javax.swing.border,

      javax.swing.event,

      javax.swing.plaf,

      javax.swing.table,

      javax.swing.tree,

      javax.xml.datatype,

      javax.xml.namespace,

      javax.xml.parsers,

      javax.xml.stream;version="[1.0.0.2,2)",

      javax.xml.transform,

      javax.xml.transform.dom,

      javax.xml.transform.sax,

      javax.xml.transform.stream,

      javax.xml.validation,

      javax.xml.xpath,

      net.sf.cglib.proxy,

      nu.xom,

      org.apache.camel,

      org.apache.camel.component.file,

      org.apache.commons.logging,

      org.apache.log,

      org.apache.log4j,

      org.apache.tools.ant,

      org.apache.tools.ant.taskdefs,

      org.apache.xml.utils,

      org.apache.xpath,

      org.apache.xpath.objects,

      org.codehaus.jettison,

      org.codehaus.jettison.mapped,

      org.dom4j,

      org.dom4j.io,

      org.dom4j.tree,

      org.jdom,

      org.jdom.input,

      org.jdom.output,

      org.joda.time,

      org.joda.time.format,

      org.kxml2.io,

      org.mozilla.javascript,

      org.osgi.service.blueprint;version="[1.0.0,2.0.0)",


      org.python.core,

      org.python.util,

      org.w3c.dom,

      org.w3c.dom.ls,

      org.w3c.dom.traversal,

      org.xml.sax,

      org.xml.sax.ext,

      org.xml.sax.helpers,

      org.zeroturnaround.javarebel,

      sun.misc,

      sun.reflect,

      sun.security.action,

      *

        • 1. Re: java.lang.NoClassDefFoundError: org/w3c/dom/Node
          Freeman(Yue) Fang Master

          Hi,

           

          What's your pom.xml looks like?

           

          Btw, you can specify all Import-Pacakge with optional resolution yourself in maven-jar-plugin configuration.

           

          Freeman

          • 2. Re: java.lang.NoClassDefFoundError: org/w3c/dom/Node
            Lalit Manchanda Newbie

            Hi,

            Thanks, but if I include my own as below in maven-jar-plugin, will fuse remove all optional descriptors, and if I need to keep them optional I need to define all of them in include explicitly?

             

            <plugin>

                    <groupId>org.apache.maven.plugins</groupId>

                    <artifactId>maven-jar-plugin</artifactId>

                    <configuration>

                      <archive>

                        <index>true</index>

                        <manifestEntries>

                          <Import-Package>org.w3c.dom,*</Import-Package>

                         </manifestEntries>

                      </archive>

                    </configuration>

                  </plugin>

            • 3. Re: java.lang.NoClassDefFoundError: org/w3c/dom/Node
              Freeman(Yue) Fang Master

              Hi,

               

              Yes,  thought not sure if it's the best way, at least it works.

               

              Btw, you may wanna take a look at [1] to get more details about how to configure a FAB.

               

              [1]https://access.redhat.com/site/documentation/en-US/JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/BuildFab-Configure.html

               

              Freeman

              1 of 1 people found this helpful
              • 4. Re: java.lang.NoClassDefFoundError: org/w3c/dom/Node
                Lalit Manchanda Newbie

                Hi Freeman,

                 

                I could solve the problem by adding org.w3.dom.Node to the list of Import-Package by following addition to the pom. Though as you also said this is not the best way to do things, beacause the whole purpose of FAB solving import/export dependencies is lost. Now onwards I need to add import-packages myself otherwise Fuse will make optional dependencies also mandatory, and then we need to fulfill all of them.

                 

                If this is the correct way I have used it, I seriously think redhat should do the correction to add dependencies properly (for resolution) when project owner includes some of its own.

                 

                <plugin>

                        <groupId>org.apache.maven.plugins</groupId>

                        <artifactId>maven-jar-plugin</artifactId>

                        <configuration>

                          <archive>

                            <index>true</index>

                            <manifestEntries>

                              <Import-Package>

                                          com.bea.xml.stream;resolution:="optional",

                                                         com.sun.jdi;resolution:="optional",

                                                         com.sun.jdi.connect;resolution:="optional",

                                                         com.sun.jdi.event;resolution:="optional",

                                                         com.sun.jdi.request;resolution:="optional",

                                                         com.sun.org.apache.xml.internal.utils;resolution:="optional",

                                                         com.sun.org.apache.xpath.internal;resolution:="optional",

                                                         com.sun.org.apache.xpath.internal.objects;resolution:="optional",

                                                         com.wutka.dtd;resolution:="optional",

                                                         javax.el;resolution:="optional",

                                                         javax.naming;resolution:="optional",

                                                         javax.naming.spi;resolution:="optional",

                                                         javax.net;resolution:="optional",

                                                         javax.net.ssl;resolution:="optional",

                                                         javax.security.auth;resolution:="optional",

                                                         javax.security.cert;resolution:="optional",

                                                         javax.servlet;resolution:="optional",

                                                         javax.servlet.http;resolution:="optional",

                                                         javax.servlet.jsp;resolution:="optional",

                                                         javax.servlet.jsp.el;resolution:="optional",

                                                         javax.servlet.jsp.tagext;resolution:="optional",

                                                         javax.sql;resolution:="optional",

                                                         javax.swing;resolution:="optional",

                                                         javax.swing.border;resolution:="optional",

                                                         javax.swing.event;resolution:="optional",

                                                         javax.swing.plaf;resolution:="optional",

                                                         javax.swing.table;resolution:="optional",

                                                         javax.swing.tree;resolution:="optional",

                                                         javax.xml.datatype;resolution:="optional",

                                                         javax.xml.namespace;resolution:="optional",

                                                         javax.xml.parsers;resolution:="optional",

                                                         javax.xml.stream;version="[1.0.0.2,2)",

                                                         javax.xml.transform;resolution:="optional",

                                                         javax.xml.transform.dom;resolution:="optional",

                                                         javax.xml.transform.sax;resolution:="optional",

                                                         javax.xml.transform.stream;resolution:="optional",

                                                         javax.xml.validation;resolution:="optional",

                                                         javax.xml.xpath;resolution:="optional",

                                                         net.sf.cglib.proxy;resolution:="optional",

                                                         nu.xom;resolution:="optional",

                                                         org.apache.camel;resolution:="optional",

                                                         org.apache.camel.component.file;resolution:="optional",

                                                         org.apache.commons.logging;resolution:="optional",

                                                         org.apache.log;resolution:="optional",

                                                         org.apache.log4j;resolution:="optional",

                                                         org.apache.tools.ant;resolution:="optional",

                                                         org.apache.tools.ant.taskdefs;resolution:="optional",

                                                         org.apache.xml.utils;resolution:="optional",

                                                         org.apache.xpath;resolution:="optional",

                                                         org.apache.xpath.objects;resolution:="optional",

                                                         org.codehaus.jettison;resolution:="optional",

                                                         org.codehaus.jettison.mapped;resolution:="optional",

                                                         org.dom4j;resolution:="optional",

                                                         org.dom4j.io;resolution:="optional",

                                                         org.dom4j.tree;resolution:="optional",

                                                         org.jdom;resolution:="optional",

                                                         org.jdom.input;resolution:="optional",

                                                         org.jdom.output;resolution:="optional",

                                                         org.joda.time;resolution:="optional",

                                                         org.joda.time.format;resolution:="optional",

                                                         org.kxml2.io;resolution:="optional",

                                                         org.mozilla.javascript;resolution:="optional",

                                                         org.osgi.service.blueprint;resolution:="optional";version="[1.0.0,2.0.0)",

                                                         org.python.core;resolution:="optional",

                                                         org.python.util;resolution:="optional",

                                                         org.w3c.dom;resolution:="optional",

                                                         org.w3c.dom.Node,

                                                         org.w3c.dom.ls;resolution:="optional",

                                                         org.w3c.dom.traversal;resolution:="optional",

                                                         org.xml.sax;resolution:="optional",

                                                         org.xml.sax.ext;resolution:="optional",

                                                         org.xml.sax.helpers;resolution:="optional",

                                                         org.zeroturnaround.javarebel;resolution:="optional",

                                                         sun.misc;resolution:="optional",

                                                         sun.reflect;resolution:="optional",

                                                         sun.security.action;resolution:="optional"

                             </Import-Package>

                             </manifestEntries>

                          </archive>

                        </configuration>

                      </plugin>

                • 5. Re: java.lang.NoClassDefFoundError: org/w3c/dom/Node
                  Lalit Manchanda Newbie

                  The answer to the question is to have wildcard packages also marked optional, as answered by Gert at https://community.jboss.org/message/831037