Hi Dan.
Thank you for your reply.

I think I found a minimal (?) set of OSGi bundles to use CXF on
Spring-DM environment (please see the list below).  I can create a
Spring bean from the service and I access it from a simple client
which is also managed by Spring-DM container.  Now I have a new
problem.  It works fine on Equinox, but if I use Felix, it crashes
(frozen) at initialization time.  Is this a Felix problem or CXF?  I
checked the CPU usage and looks like it uses 100% of a core after
Apache Felix Shell starts.

I used the following command to run the bundles:

mvn pax:provision "-Dprofiles=log" "-Dframework=equinox"

but If I run them without "-Dframework=equinox" option, i.e., run on
Felix, it just crashes.

Thanks.
Kei

        <dependencies>
                
                <dependency>
                        <groupId>org.osgi</groupId>
                        <artifactId>osgi_R4_core</artifactId>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>org.osgi</groupId>
                        <artifactId>osgi_R4_compendium</artifactId>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.2</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-test</artifactId>
                        <version>${spring.maven.artifact.version}</version>
                        <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>${spring.maven.artifact.version}</version>
                        <scope>provided</scope>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
                        <version>${spring.maven.artifact.version}</version>
                        <scope>provided</scope>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-beans</artifactId>
                        <version>${spring.maven.artifact.version}</version>
                        <scope>provided</scope>
                        <optional>true</optional>
                </dependency>
                <dependency>
                        <groupId>org.springframework.osgi</groupId>
                        <artifactId>spring-osgi-extender</artifactId>
                        <version>1.1.2</version>
                        <scope>provided</scope>
                </dependency>



                <dependency>
                        <groupId>org.apache.cxf</groupId>
                        <artifactId>cxf-bundle</artifactId>
                        <version>2.1.4</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.specs</groupId>
                        
<artifactId>org.apache.servicemix.specs.jaxws-api-2.1</artifactId>
                        <version>1.2.0</version>
                </dependency>

                <dependency>
                        <groupId>org.apache.servicemix.specs</groupId>
                        
<artifactId>org.apache.servicemix.specs.jaxb-api-2.1</artifactId>
                        <version>1.2.0</version>
                        <scope>compile</scope>
                </dependency>

                <dependency>
                        <groupId>org.apache.servicemix.specs</groupId>
                        
<artifactId>org.apache.servicemix.specs.stax-api-1.0</artifactId>
                        <version>1.2.0</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>

                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-activation_1.1_spec</artifactId>
                        <version>1.0.2</version>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.apache.servicemix.specs</groupId>

                        
<artifactId>org.apache.servicemix.specs.saaj-api-1.3</artifactId>
                        <version>1.2.0</version>
                        <scope>compile</scope>
                </dependency>

                <dependency>
                        <groupId>org.apache.servicemix.bundles</groupId>
                        
<artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId>
                        <version>1.6.1_1</version>
                </dependency>

                <dependency>
                        <groupId>javax.jws</groupId>
                        <artifactId>com.springsource.javax.jws</artifactId>
                        <version>2.0.0</version>
                </dependency>

                <dependency>
                        <groupId>org.apache.geronimo.specs</groupId>
                        <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
                        <version>1.1.2</version>
                </dependency>
                <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-javamail_1.4_spec</artifactId>
                        <version>1.5</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.jaxb-impl</artifactId>
                        <version>2.1.6_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.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.wsdl4j</artifactId>
                        <version>1.6.1_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.xmlsec</artifactId>
                        <version>1.3.0_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>javax.servlet</groupId>
                        <artifactId>com.springsource.javax.servlet</artifactId>
                        <version>2.5.0</version>
                </dependency>

                <dependency>

                        <groupId>org.apache.servicemix.bundles</groupId>
                        
<artifactId>org.apache.servicemix.bundles.fastinfoset</artifactId>
                        <version>1.2.2_1</version>
                </dependency>
        </dependencies>

2009/2/20 Daniel Kulp <[email protected]>:
>
>
> This is DEFINITELY something I'd ask on the ServiceMix list.   They would have
> MUCH more experience on this.   I THINK that have a couple CXF demos as well
> for running CXF using Spring DM in SMX4.
>
> Actually, if you use SMX4, it has CXF bundles and everything it needs already
> deployed in it's OSGi environment.   You should just need to create your
> application bundle and deploy into it.
>
> Dan
>
>
> On Thu February 19 2009 3:08:57 pm Keiichiro Ono wrote:
>> Hi.
>> I'm trying to create a toy example to access a web service from
>> OSGi+CXF based client.  It's easy to do this on non-OSGi environment,
>> but I cannot do it on OSGi + Spring DM.
>>
>> What's the minimal set of bundles I need to run the following process?
>>  I want to do the following:
>>
>> 1. Generate client code from WSDL by Maven cxf plugin.
>> 2. Create a bean from web service stub class
>> 3. Inject it to my client code
>>
>> I thought this was simple, but even a "hello world" style toy web
>> service client is very hard to implement due to the complicated
>> dependency...
>>
>> I'm trying to use the following public services:
>>  http://www.ebi.ac.uk/intact/psicquic/webservices
>>  http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/eutils.wsdl
>>
>> Environment:
>> RHEL 5 (2.6.18-92.1.13.el5) 64bit
>> Java SE 6 64 bit build 1.6.0_11-b03
>>
>> Dependency:
>>       <dependencies>
>>               <dependency>
>>                       <groupId>org.apache.commons</groupId>
>>                       
>> <artifactId>com.springsource.org.apache.commons.logging</artifactId>
>>                       <version>1.1.1</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.jdom</groupId>
>>                       <artifactId>com.springsource.org.jdom</artifactId>
>>                       <version>1.0.0</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework</groupId>
>>                       <artifactId>spring-core</artifactId>
>>                       <version>${spring.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework</groupId>
>>                       <artifactId>spring-beans</artifactId>
>>                       <version>${spring.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework</groupId>
>>                       <artifactId>spring-context</artifactId>
>>                       <version>${spring.version}</version>
>>               </dependency>
>>               <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>${spring.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework.osgi</groupId>
>>                       <artifactId>spring-osgi-io</artifactId>
>>                       <version>${spring.osgi.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework.osgi</groupId>
>>                       <artifactId>spring-osgi-core</artifactId>
>>                       <version>${spring.osgi.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.springframework.osgi</groupId>
>>                       <artifactId>spring-osgi-extender</artifactId>
>>                       <version>${spring.osgi.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.ops4j.pax.web</groupId>
>>                       <artifactId>pax-web-service</artifactId>
>>                       <version>0.5.1</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.specs</groupId>
>>                       
>> <artifactId>org.apache.servicemix.specs.locator</artifactId>
>>                       <version>${servicemix.specs.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.specs</groupId>
>>                       
>> <artifactId>org.apache.servicemix.specs.saaj-api-1.3</artifactId>
>>                       <version>${servicemix.specs.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.specs</groupId>
>>                       
>> <artifactId>org.apache.servicemix.specs.stax-api-1.0</artifactId>
>>                       <version>${servicemix.specs.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.specs</groupId>
>>                       
>> <artifactId>org.apache.servicemix.specs.jaxb-api-2.1</artifactId>
>>                       <version>${servicemix.specs.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.specs</groupId>
>>                       
>> <artifactId>org.apache.servicemix.specs.jaxws-api-2.1</artifactId>
>>                       <version>${servicemix.specs.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.xmlschema</artifactId>
>>                       <version>${xmlschema.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.xmlresolver</artifactId>
>>                       <version>${xmlresolver.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.neethi</artifactId>
>>                       <version>${neethi.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId>
>>                       <version>${wsdl4j.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.xmlsec</artifactId>
>>                       <version>${xmlsec.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.wss4j</artifactId>
>>                       <version>${wss4j.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.jaxb-impl</artifactId>
>>                       <version>${jaxbimpl.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.asm</artifactId>
>>                       <version>${asm.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.servicemix.bundles</groupId>
>>                       
>> <artifactId>org.apache.servicemix.bundles.woodstox</artifactId>
>>                       <version>${woodstox.bundle.version}</version>
>>               </dependency>
>>               <dependency>
>>                       <groupId>org.apache.cxf</groupId>
>>                       <artifactId>cxf-bundle</artifactId>
>>                       <version>${cxf.version}</version>
>>               </dependency>
>>
>>       </dependencies>
>>
>>       <properties>
>>               <cxf.version>2.1.4</cxf.version>
>>               <felix.version>1.4.1</felix.version>
>>               <spring.version>2.5.6</spring.version>
>>               <spring.osgi.version>1.1.2</spring.osgi.version>
>>               <servicemix.specs.version>1.1.1</servicemix.specs.version>
>>               <jetty.version>6.1.9</jetty.version>
>>               <xmlschema.bundle.version>1.4.2_1</xmlschema.bundle.version>
>>               <xmlresolver.bundle.version>1.2_1</xmlresolver.bundle.version>
>>               <neethi.bundle.version>2.0.4_1</neethi.bundle.version>
>>               <wsdl4j.bundle.version>1.6.1_1</wsdl4j.bundle.version>
>>               <wss4j.bundle.version>1.5.4_1</wss4j.bundle.version>
>>               <xmlsec.bundle.version>1.3.0_1</xmlsec.bundle.version>
>>               <asm.bundle.version>2.2.3_1</asm.bundle.version>
>>               <woodstox.bundle.version>3.2.7_1</woodstox.bundle.version>
>>               <jaxbimpl.bundle.version>2.1.6_1</jaxbimpl.bundle.version>
>>               <felix.plugin.version>1.4.0</felix.plugin.version>
>>       </properties>
>>
>>
>> Thanks.
>> Kei
>
> --
> Daniel Kulp
> [email protected]
> http://www.dankulp.com/blog
>



-- 
Keiichiro Ono    [email protected]

Cytoscape Core Developer Team: http://www.cytoscape.org/
UCSD Bioengineering Ideker Lab: http://chianti.ucsd.edu/idekerlab/

Reply via email to