If you manage to get it working with the pax tools, let us know! I
think it would be useful to include those instructions in the DOSGi
documentation as well!

Cheers,

David

2009/6/16 Ivanhoe Abrahams <[email protected]>:
> Hi David.
>
> Thanks for you reply... I followed your suggestion and followed the greeter
> demo walkthrough, and that works just great.
>
> So I guess it must one of the bundles in my pom or one of the properties
> thats causing this problem :-(
>
> I really like the pax runner and pax construct set of tools, and I'd like to
> get everything working through that, so I guess I'll head over to the pax
> mailing list and poke around there.
>
> Anyway, thanks for your help
>
>
> On Tue, Jun 16, 2009 at 12:51 PM, David Bosschaert <
> [email protected]> wrote:
>
>> Hi Ivanhoe,
>>
>> I haven't used the pax tools to start the DOSGi bundles yet.
>> I guess it might be good to try and isolate the problem. Are you able
>> to run the demos using the Felix 1.8.0 (or Equinox 3.5) by following
>> the demo documentation (e.g. this page:
>> http://cxf.apache.org/distributed-osgi-greeter-demo-walkthrough.html)?
>>
>> If that works for you, you may want to look at your pax tools
>> configuration. Maybe someone more knowledgeable in that area could
>> help (you could try the pax mailing lists).
>>
>> Cheers,
>>
>> David
>>
>> 2009/6/16 Ivanhoe Abrahams <[email protected]>:
>> > Sorry, the previous mail is incomplete...here goes again
>> >
>> > Hi
>> >
>> > I am currently trying out cxf dosgi. but I am having no joy in getting it
>> to
>> > work
>> > I have made a pom file and am using that to start felix...using pax tools
>> >
>> > Felix starts up just fine and all the bundles are in active state.
>> >
>> > I then manually install the greeter demo from the svn trunk  which
>> > consists of 3 bundles the interface, impl and client
>> >
>> > Starting the interface works fine but when I attempt to start the impl or
>> > the client I get the following exception
>> >
>> > java.lang.NoSuchMethodError: org.apache.ws.commons.schema.
>> > XmlSchemaType.getBaseSchemaTypeName()Ljavax/xml/namespace/QName;
>> > ERROR: EventDispatcher: Error during dispatch.
>> (java.lang.NoSuchMethodError:
>> >
>> org.apache.ws.commons.schema.XmlSchemaType.getBaseSchemaTypeName()Ljavax/xml/namespace/QName;)
>> >        at
>> >
>> org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImportsType(SchemaCollection.java:355)
>> >        at
>> >
>> org.apache.cxf.common.xmlschema.SchemaCollection.addOneSchemaCrossImports(SchemaCollection.java:338)
>> >        at
>> >
>> org.apache.cxf.common.xmlschema.SchemaCollection.addCrossImports(SchemaCollection.java:317)
>> >
>> > <snip>
>> >
>> > Can someone please help me with this? vey frustrated by now
>> >
>> > Below is my pom file
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> >    xmlns="http://maven.apache.org/POM/4.0.0";
>> >    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > http://maven.apache.org/maven-v4_0_0.xsd";>
>> >
>> >    <!--
>> >        | put company details here <organization> <name>...</name>
>> >        <url>http://...</url> </organization>
>> >    -->
>> >
>> >    <!--
>> >        | put license details here <licenses> <license> <name>...</name>
>> >        <url>http://...</url> <comments> </comments> </license>
>> </licenses>
>> >    -->
>> >
>> >    <modelVersion>4.0.0</modelVersion>
>> >    <groupId>org.mytest.osgi.modules</groupId>
>> >    <artifactId>mobile-mina</artifactId>
>> >    <version>1.0-SNAPSHOT</version>
>> >
>> >    <name>org.mytest.osgi.modules.mobile-mina (OSGi project)</name>
>> >
>> >    <properties>
>> >
>> >        <felix.log.level>5</felix.log.level>
>> >
>> >
>> <org.osgi.framework.startlevel.beginning>6</org.osgi.framework.startlevel.beginning>
>> >        <felix.startlevel.bundle>5</felix.startlevel.bundle>
>> >
>> >
>> <org.osgi.framework.executionenvironment>J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JRE-1.1,JavaSE-1.6,OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2</org.osgi.framework.executionenvironment>
>> >        <org.osgi.framework.system.packages>
>> >
>> javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,
>> > javax.net
>> >
>> ,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,
>> > javax.xml.ws
>> >
>> ,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.TypeCodePackage,org.omg.CORBA.portable,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.ServantLocatorPackage,org.omg.PortableServer.portable,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,
>> > org.w3c.dom.ls
>> ,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views
>> > ,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers,org.osgi.framework;
>> > version=1.4.0, org.osgi.framework.hooks.service; version=1.4.0,
>> > org.osgi.service.packageadmin; version=1.2.0,
>> org.osgi.service.startlevel;
>> > version=1.1.0, org.osgi.service.url; version=1.0.0,
>> org.osgi.util.tracker;
>> > version=1.3.3
>> >        </org.osgi.framework.system.packages>
>> >
>> >    </properties>
>> >
>> >    <description>Generated using Pax-Construct</description>
>> >    <packaging>pom</packaging>
>> >    <dependencies>
>> >
>> > <!-- Pax Logging -->
>> >        <dependency>
>> >            <groupId>org.ops4j.pax.logging</groupId>
>> >            <artifactId>pax-logging-api</artifactId>
>> >            <version>1.3.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.ops4j.pax.logging</groupId>
>> >            <artifactId>pax-logging-service</artifactId>
>> >            <version>1.3.0</version>
>> >        </dependency>
>> >
>> > <!-- SERVICEMIX -->
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >
>>  <artifactId>org.apache.servicemix.bundles.jaxb-impl</artifactId>
>> >            <version>2.1.6_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >            <artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId>
>> >            <version>1.6.1_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >            <artifactId>org.apache.servicemix.bundles.xmlsec</artifactId>
>> >            <version>1.3.0_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >            <artifactId>org.apache.servicemix.bundles.wss4j</artifactId>
>> >            <version>1.5.4_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >
>>  <artifactId>org.apache.servicemix.bundles.xmlschema</artifactId>
>> >            <version>1.4.2_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >            <artifactId>org.apache.servicemix.bundles.asm</artifactId>
>> >            <version>2.2.3_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >
>> > <artifactId>org.apache.servicemix.bundles.xmlresolver</artifactId>
>> >            <version>1.2_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >            <artifactId>org.apache.servicemix.bundles.neethi</artifactId>
>> >            <version>2.0.4_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.bundles</groupId>
>> >
>>  <artifactId>org.apache.servicemix.bundles.woodstox</artifactId>
>> >            <version>3.2.7_1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.specs</groupId>
>> >
>> > <artifactId>org.apache.servicemix.specs.saaj-api-1.3</artifactId>
>> >            <version>1.1.1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.specs</groupId>
>> >
>> > <artifactId>org.apache.servicemix.specs.stax-api-1.0</artifactId>
>> >            <version>1.1.1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.specs</groupId>
>> >
>> > <artifactId>org.apache.servicemix.specs.jaxb-api-2.1</artifactId>
>> >            <version>1.1.1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.servicemix.specs</groupId>
>> >
>> > <artifactId>org.apache.servicemix.specs.jaxws-api-2.1</artifactId>
>> >            <version>1.1.1</version>
>> >        </dependency>
>> >
>> > <!-- Geronimo -->
>> >        <dependency>
>> >            <groupId>org.apache.geronimo.specs</groupId>
>> >            <artifactId>geronimo-annotation_1.0_spec</artifactId>
>> >            <version>1.1.1</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.geronimo.specs</groupId>
>> >            <artifactId>geronimo-activation_1.1_spec</artifactId>
>> >            <version>1.0.2</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.geronimo.specs</groupId>
>> >            <artifactId>geronimo-javamail_1.4_spec</artifactId>
>> >            <version>1.2</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.geronimo.specs</groupId>
>> >            <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
>> >            <version>1.1.2</version>
>> >        </dependency>
>> >
>> >
>> > <!-- JDOM -->
>> >        <dependency>
>> >            <groupId>org.jdom</groupId>
>> >            <artifactId>com.springsource.org.jdom</artifactId>
>> >            <version>1.0.0</version>
>> >        </dependency>
>> >
>> > <!-- Pax Web 0.6.0 -->
>> >        <dependency>
>> >            <groupId>org.ops4j.pax.web</groupId>
>> >            <artifactId>pax-web-service</artifactId>
>> >            <version>0.6.0</version>
>> >        </dependency>
>> >
>> > <!-- SOME Transitive dependencies -->
>> >
>> >        <dependency>
>> >            <groupId>edu.emory.mathcs.backport</groupId>
>> >
>> > <artifactId>com.springsource.edu.emory.mathcs.backport</artifactId>
>> >            <version>3.1.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>net.sourceforge.cglib</groupId>
>> >            <artifactId>com.springsource.net.sf.cglib</artifactId>
>> >            <version>2.1.3</version>
>> >        </dependency>
>> >
>> > <!--SPRING FRAMEWORK DEPS -->
>> >        <dependency>
>> >            <groupId>org.aopalliance</groupId>
>> >            <artifactId>com.springsource.org.aopalliance</artifactId>
>> >            <version>1.0.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework</groupId>
>> >            <artifactId>spring-aop</artifactId>
>> >            <version>2.5.6</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework</groupId>
>> >            <artifactId>spring-beans</artifactId>
>> >            <version>2.5.6</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework</groupId>
>> >            <artifactId>spring-context</artifactId>
>> >            <version>2.5.6</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework</groupId>
>> >            <artifactId>spring-context-support</artifactId>
>> >            <version>2.5.6</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework</groupId>
>> >            <artifactId>spring-core</artifactId>
>> >            <version>2.5.6</version>
>> >        </dependency>
>> >
>> >
>> > <!--SPRING DM -->
>> >        <dependency>
>> >            <groupId>org.springframework.osgi</groupId>
>> >            <artifactId>spring-osgi-annotation</artifactId>
>> >            <version>1.2.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework.osgi</groupId>
>> >            <artifactId>spring-osgi-core</artifactId>
>> >            <version>1.2.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework.osgi</groupId>
>> >            <artifactId>spring-osgi-extender</artifactId>
>> >            <version>1.2.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework.osgi</groupId>
>> >            <artifactId>spring-osgi-io</artifactId>
>> >            <version>1.2.0</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.springframework.osgi</groupId>
>> >            <artifactId>spring-osgi-io</artifactId>
>> >            <version>1.2.0</version>
>> >        </dependency>
>> >
>> >
>> > <!--CXF.DOSGI -->
>> >
>> >            <dependency>
>> >              <groupId>org.apache.cxf.dosgi</groupId>
>> >
>> >
>> <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
>> >              <version>1.1-SNAPSHOT</version>
>> >            </dependency>
>> >            <dependency>
>> >              <groupId>org.apache.cxf.dosgi</groupId>
>> >              <artifactId>cxf-dosgi-ri-discovery-distributed</artifactId>
>> >              <version>1.1-SNAPSHOT</version>
>> >            </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.cxf.dosgi</groupId>
>> >            <artifactId>cxf-dosgi-ri-dsw-cxf</artifactId>
>> >            <version>1.1-SNAPSHOT</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.cxf</groupId>
>> >            <artifactId>cxf-bundle-minimal</artifactId>
>> >            <version>2.3.0-SNAPSHOT</version>
>> >        </dependency>
>> >        <dependency>
>> >            <groupId>org.apache.cxf.dosgi</groupId>
>> >            <artifactId>cxf-dosgi-ri-discovery-local</artifactId>
>> >            <version>1.1-SNAPSHOT</version>
>> >        </dependency>
>> > <!--
>> >        <dependency>
>> >            <groupId>org.apache.cxf.dosgi</groupId>
>> >
>>  <artifactId>cxf-dosgi-ri-singlebundle-distribution</artifactId>
>> >            <version>1.1-SNAPSHOT</version>
>> >        </dependency>
>> > -->
>> >    </dependencies>
>> >
>> >    <build>
>> >        <plugins>
>> >            <plugin>
>> >                <groupId>org.ops4j</groupId>
>> >                <artifactId>maven-pax-plugin</artifactId>
>> >                <version>1.4</version>
>> >                <configuration>
>> >                    <!--
>> >           | some example Pax-Runner settings
>> >          -->
>> >                    <provision>
>> >                        <param>--platform=felix</param>
>> >                    </provision>
>> >                </configuration>
>> >                <executions>
>> >                    <!--
>> >                        | uncomment to auto-generate IDE files <execution>
>> >                        <id>ide-support</id> <goals> <goal>eclipse</goal>
>> > </goals>
>> >                        </execution>
>> >                    -->
>> >                </executions>
>> >            </plugin>
>> >        </plugins>
>> >    </build>
>> >
>> >    <repositories>
>> >
>> >    <repository>
>> >      <id>apache-incubating</id>
>> >      <name>Apache Incubating Repository</name>
>> >      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
>> >    </repository>
>> >          <repository>
>> >              <id>local</id>
>> >              <name>Local</name>
>> >              <url>file://C:\Users\Abrahamse\.m2\repository</url>
>> >        </repository>
>> >        <repository>
>> >              <id>smx_asf</id>
>> >              <name>smx asf</name>
>> >              <url>http://svn.apache.org/repos/asf/servicemix/m2-repo/
>> </url>
>> >        </repository>
>> >        <repository>
>> >              <id>pax-scm</id>
>> >              <name>PAX SCM </name>
>> >              <url>
>> > https://repository.apache.org/content/repositories/snapshots</url>
>> >        </repository>
>> >
>> >        <repository>
>> >              <id>spring-maven-milestone</id>
>> >              <name>Springframework Maven Repository</name>
>> >              <url>
>> > http://s3.amazonaws.com/maven.springframework.org/milestone</url>
>> >        </repository>
>> >        <repository>
>> >              <id>spring-maven-snapshot</id>
>> >              <snapshots><enabled>true</enabled></snapshots>
>> >              <name>Springframework Maven SNAPSHOT Repository</name>
>> >              <url>
>> > http://s3.amazonaws.com/maven.springframework.org/snapshot</url>
>> >        </repository>
>> >        <repository>
>> >              <id>spring-osgified-artifacts</id>
>> >              <snapshots><enabled>true</enabled></snapshots>
>> >              <name>Springframework Maven OSGified Artifacts
>> > Repository</name>
>> >              <url>http://s3.amazonaws.com/maven.springframework.org/osgi
>> > </url>
>> >        </repository>
>> >        <repository>
>> >            <id>apache.snapshots</id>
>> >            <name>Apache Maven Snapshot Repository</name>
>> >            <url>http://repository.apache.org/content/groups/snapshots/
>> > </url>
>> >            <releases>
>> >                <enabled>false</enabled>
>> >            </releases>
>> >            <snapshots>
>> >                <enabled>true</enabled>
>> >            </snapshots>
>> >        </repository>
>> >        <repository>
>> >            <id>central</id>
>> >            <name>Default maven repo</name>
>> >            <url>http://repo1.maven.org/maven2</url>
>> >            <releases>
>> >                <enabled>true</enabled>
>> >            </releases>
>> >            <snapshots>
>> >                <enabled>false</enabled>
>> >            </snapshots>
>> >        </repository>
>> >        <repository>
>> >            <id>com.springsource.repository.bundles.external</id>
>> >            <name>SpringSource Enterprise Bundle Repository - External
>> > Bundle Releases</name>
>> >            <url>
>> http://repository.springsource.com/maven/bundles/external</url>
>> >
>> >        </repository>
>> >        <repository>
>> >            <id>ops4j</id>
>> >            <url>http://repository.ops4j.org/maven2/</url>
>> >            <snapshots>
>> >                <enabled>false</enabled>
>> >            </snapshots>
>> >        </repository>
>> >        <repository>
>> >            <id>springmilestone</id>
>> >            <url>
>> http://repository.springsource.com/maven/bundles/milestone
>> > </url>
>> >            <snapshots>
>> >                <enabled>false</enabled>
>> >            </snapshots>
>> >        </repository>
>> >        <repository>
>> >            <id>springexternal</id>
>> >            <url>
>> http://repository.springsource.com/maven/bundles/snapshot
>> > </url>
>> >            <snapshots>
>> >                <enabled>false</enabled>
>> >            </snapshots>
>> >        </repository>
>> >        <repository>
>> >            <id>springrelease</id>
>> >            <url>http://repository.springsource.com/maven/bundles/release
>> > </url>
>> >            <snapshots>
>> >                <enabled>false</enabled>
>> >            </snapshots>
>> >        </repository>
>> >
>> >
>> >    </repositories>
>> >
>> > </project>
>> >
>> >
>> >
>> > Thank you in advance
>> >
>>
>

Reply via email to