Christian,

Our project infrastructure is all Tycho builds and it felt more natural to
keep it all that way.

This article helped make the decision more clear for me:  OSGi Application
Testing with Tycho <http://java.sys-con.com/node/1839682>   

I did get this to finally work at the end of the workday yesterday and
wanted to follow up. 

I am not 100% sure if all of the start orders are correct here ( mostly
whether I needed to control all of the list bundles start number ) but here
is what worked for me:

<plugin>
                    <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-surefire-plugin</artifactId>
                <version>${tycho-version}</version>
                <configuration>
                  
<testSuite>my.company.dot.com.integration.test</testSuite>
                     
<testClass>my.company.dot.com.integration.test.EnvoyIntegrationTest</testClass> 
                
                   <dependencies>
                     <dependency>
                        <type>eclipse-plugin</type>
                        <artifactId>javax.servlet</artifactId>
                        <version>2.5.0</version>
                     </dependency>
                     <dependency>
                        <type>eclipse-plugin</type>
                        <artifactId>javax.xml.stream</artifactId>
                        <version>1.0.1.v201004272200</version>
                     </dependency>
                     <dependency>
                        <type>eclipse-plugin</type>
                       
<artifactId>org.apache.servicemix.bundles.jaxb-impl</artifactId>
                        <version>2.2.1.1_2</version>
                     </dependency>
                     <dependency>
                        <type>eclipse-plugin</type>
                       
<artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId>
                        <version>1.6.2.6</version>
                     </dependency>                   
                   </dependencies>  
                   <bundleStartLevel>
                        <bundle>
                            <id>org.apache.ws.xmlschema.core</id>
                            <level>1</level>
                            <autoStart>true</autoStart>
                        </bundle>
                        <bundle>
                            <id>org.apache.cxf.cxf-rt-core</id>
                            <level>1</level>
                            <autoStart>true</autoStart>
                        </bundle>
                        <bundle>
                            <id>org.apache.servicemix.bundles.wsdl4j</id>
                            <level>1</level>
                            <autoStart>true</autoStart>
                        </bundle> 
                        <bundle>
                            <id>org.apache.servicemix.bundles.jaxb-impl</id>
                            <level>4</level>
                            <autoStart>true</autoStart>
                        </bundle>
                       <bundle>
                           
<id>org.apache.servicemix.specs.jaxb-api-2.2</id>
                            <level>5</level>
                            <autoStart>true</autoStart>
                        </bundle> 
                         <bundle>
                            <id>org.apache.cxf.cxf-rt-bindings-soap</id>
                            <level>6</level>
                            <autoStart>true</autoStart>
                        </bundle> 
                       <bundle>
                            <id>org.apache.cxf.cxf-rt-frontend-simple</id>
                            <level>9</level>
                            <autoStart>true</autoStart>
                        </bundle>
                       <bundle> 
                            <id>org.apache.cxf.cxf-rt-frontend-jaxws</id>
                            <level>20</level>
                            <autoStart>true</autoStart>
                        </bundle>                        
                        <bundle>
                            <id>org.apache.cxf.cxf-rt-transports-http</id>
                            <level>22</level>
                            <autoStart>true</autoStart>
                        </bundle>
                       <bundle>
                           
<id>org.apache.servicemix.specs.stax-api-1.0</id>
                            <level>29</level>
                            <autoStart>true</autoStart>
                        </bundle>                       
                        <bundle>
                            <id>org.apache.cxf.cxf-api</id>
                            <level>30</level>
                            <autoStart>true</autoStart>
                        </bundle>
                    </bundleStartLevel>                 
                </configuration>
               </plugin>

Adding javax.xml.stream was the final dependency that pulled me over the
finish line. 

Thanks for all the help everyone,
Neil



--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXFDOSGI-1-4-Jaxb-Classloader-issue-tp5739840p5739949.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to