Aha, ok let me try that. ...ant
On Fri, Oct 30, 2009 at 3:35 PM, Raymond Feng <[email protected]> wrote: > As I mentioned, if you use the tuscany maven bundle plugin 1.0.5-SNAPSHOT, > the problem will be solved. Before that the saxon-xqj jar exports > javax.xml.namespace which conflicts with the system package. > > Maybe we should release the maven bundle plugin. > > Thanks, > Raymond > > -------------------------------------------------- > From: "ant elder" <[email protected]> > Sent: Friday, October 30, 2009 1:35 AM > To: <[email protected]> > Subject: Re: Running Tuscany SCA 2.x with Apache Felix and Eclipse Equinox > >> On Thu, Oct 29, 2009 at 9:17 PM, Raymond Feng <[email protected]> wrote: >>> >>> Hi, >>> >>> I have successfully brought up the latest Tuscany 2.x code with Apache >>> Felix >>> 2.0.1 to run the OSGi remote service samples . Please see the >>> instructions >>> at [1]. >>> >>> The bundles in the Tuscany distribution needs to be generated using the >>> latest Tuscany maven-bundle-plugin. I just fixed an issue there under [2] >>> so >>> that the saxon jars won't export javax.xml.namespace to avoid conflicts >>> with >>> system packages. >>> >>> I noticed that tuscany-implementation-bpel-runtime module [3] has a >>> "hard" >>> dependency on one Equinox class "org.eclipse.core.runtime.FileLocator". >>> Can >>> we avoid that? >>> >>> [1] >>> >>> http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Running+Tuscany+SCA+2.x+with+Equinox+and+Felix >>> [2] http://svn.apache.org/viewvc?rev=831078&view=rev >>> [3] >>> >>> tuscany-implementation-bpel-runtime/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/EmbeddedODEServer.java >>> >>> Thanks, >>> Raymond >>> --- >> >> Thats great. >> >> I get a NoClassDefFoundError: javax/xml/namespace/QName when starting >> the tuscany sample bundles, is there something else I must be missing? >> >> ...ant >> >> -> 30-Oct-2009 08:30:58 >> org.apache.tuscany.sca.osgi.remoteserviceadmin.impl.TopologyManagerImpl >> added >> WARNING: Service listner without a filter is skipped: >> org.apache.felix.framework.util.listenerhookinfoi...@18f1e5e >> Warning: failed to load external object model: org/w3c/dom/Node >> Warning: failed to load external object model: org/w3c/dom/Node >> 30-Oct-2009 08:30:59 org.apache.tuscany.sca.monitor.Monitor logNullMonitor >> WARNING: Attempt to report error with id javax/xml/namespace/QName >> from class org.apache.tuscany.sca.contribution.processor.DefaultV >> alidatingXMLInputFactory but the monitor object was null >> ERROR: EventDispatcher: Error during dispatch. >> (java.lang.NoClassDefFoundError: javax/xml/namespace/QName) >> java.lang.NoClassDefFoundError: javax/xml/namespace/QName >> at >> com.ctc.wstx.sr.NsInputElementStack.getCurrentElementName(NsInputElementStack.java:651) >> at >> com.ctc.wstx.sr.BasicStreamReader.getName(BasicStreamReader.java:723) >> at >> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.read(ExtensibleStAXArtifactProcessor.java:1 >> 57) >> at >> org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:125) >> at >> org.apache.tuscany.sca.definitions.xml.DefinitionsDocumentProcessor.read(DefinitionsDocumentProcessor.java:1) >> at >> org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(Def >> aultURLArtifactProcessorExtensionPoint.java:288) >> at >> org.apache.tuscany.sca.definitions.xml.DefaultDefinitionsExtensionPoint.getDefinitions(DefaultDefinitionsExtensionPoint.j >> ava:110) >> at >> org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadSystemContribution(DeployerImpl.java:292) >> at >> org.apache.tuscany.sca.deployment.impl.DeployerImpl.init(DeployerImpl.java:278) >> at >> org.apache.tuscany.sca.deployment.impl.DeployerImpl.createMonitor(DeployerImpl.java:114) >> at >> org.apache.tuscany.sca.osgi.service.discovery.impl.LocalDiscoveryService.addingBundle(LocalDiscoveryService.java:139) >> at >> org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:439) >> at >> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261) >> at >> org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233) >> at >> org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413) >> at >> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800) >> at >> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728) >> at >> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610) >> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576) >> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1690) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) >> at >> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) >> at >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) >> at java.lang.Thread.run(Unknown Source) >> 30-Oct-2009 08:30:59 calculator.dosgi.impl.CalculatorActivator start > >
