[DOSGI-96] Applying a patch on behalf of Ancoron Luciferis - thanks
authorSergey Beryozkin <sergeyb@apache.org>
Sun, 26 Jun 2011 16:13:52 +0000 (16:13 +0000)
committerSergey Beryozkin <sergeyb@apache.org>
Sun, 26 Jun 2011 16:13:52 +0000 (16:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/cxf/dosgi/trunk@1139830 13f79535-47bb-0310-9956-ffa450edef68

59 files changed:
discovery/distributed/cxf-discovery/pom.xml
discovery/distributed/zookeeper-server-config/pom.xml
discovery/distributed/zookeeper-server/pom.xml
discovery/distributed/zookeeper-wrapper/pom.xml
discovery/local/pom.xml
discovery/local/src/main/java/org/apache/cxf/dosgi/discovery/local/internal/Activator.java
distribution/multi-bundle/pom.xml
distribution/multi-bundle/src/main/assembly/assembly.xml
distribution/multi-bundle/src/main/resources/distro_bundles.xml
distribution/multi-bundle/src/main/resources/distro_discovery_bundles.xml
distribution/multi-bundle/src/main/xsl/equinox_distro_config.xslt
distribution/multi-bundle/src/main/xsl/felix_distro_config.xslt
distribution/single-bundle/pom.xml
distribution/sources/pom.xml
distribution/sources/src/main/assembly/src.xml
dsw/cxf-dsw/pom.xml
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/JaxRSHttpServiceConfigurationTypeHandler.java
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/JaxRSPojoConfigurationTypeHandler.java
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/ExportRegistrationImpl.java
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceAdminCore.java
dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/service/RemoteServiceadminFactory.java
dsw/cxf-osgi-remote-service-admin-interfaces/pom.xml
dsw/cxf-topology-manager/pom.xml
dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/TopologyManager.java
dsw/cxf-topology-manager/src/main/java/org/apache/cxf/dosgi/topologymanager/TopologyManagerImport.java
felix/profiles/pom.xml
felix/profiles/src/main/resources/client_bundles.txt
felix/profiles/src/main/resources/dosgi_bundles.txt
felix/profiles/src/main/resources/server_bundles.txt
felix/shell.tui/pom.xml
parent/pom.xml
pom.xml
samples/discovery/client/pom.xml
samples/discovery/impl/pom.xml
samples/discovery/interface/pom.xml
samples/ds/client/pom.xml
samples/ds/impl/pom.xml
samples/ds/interface/pom.xml
samples/greeter/client/pom.xml
samples/greeter/impl/pom.xml
samples/greeter/interface/pom.xml
samples/greeter_rest/client/pom.xml
samples/greeter_rest/impl/pom.xml
samples/greeter_rest/interface/pom.xml
samples/security_filter/pom.xml
samples/spring_dm/client/pom.xml
samples/spring_dm/impl/pom.xml
samples/spring_dm/interface/pom.xml
systests/common/pom.xml
systests/common_rest/pom.xml
systests2/common/pom.xml
systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/AbstractTestImportService.java
systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/test1/MyServiceTracker.java
systests2/common/src/main/java/org/apache/cxf/dosgi/systests2/common/test1/StartServiceTracker.java
systests2/multi-bundle/pom.xml
systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/MultiBundleTools.java
systests2/multi-bundle/src/test/java/org/apache/cxf/dosgi/systests2/multi/TestImportService.java
systests2/single-bundle/pom.xml

index feb7f6d..f7e4f06 100644 (file)
     </properties>
     
     <dependencies>
-        <dependency> 
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>${osgi.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.framework</artifactId>
             <version>${felix.version}</version>
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
         
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-local</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
 
                     <instructions>
                         <Bundle-Name>CXF Zookeeper-based Discovery Service Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains an implementation of the Distributed OSGi Discovery Service using Zookeeper</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Bundle-Activator>org.apache.cxf.dosgi.discovery.zookeeper.Activator</Bundle-Activator>
                         <Import-Package>
                             org.apache.zookeeper.*;version="[3.0.0,4.0.0)",
                             org.apache.cxf.dosgi.discovery.local.*,
                             org.osgi.framework;version="[1.4.0,2.0.0)",
-                            org.osgi.service.remoteserviceadmin;version="${remote.service.admin.interfaces.version}",
+                            org.osgi.service.remoteserviceadmin;version="[${remote.service.admin.interfaces.version},2)",
                             org.osgi.util.tracker;version="[1.3.0,2.0.0)",
                             *
                         </Import-Package>
-                        <Private-Package>org.apache.cxf.dosgi.discovery.zookeeper,org.apache.cxf.dosgi.discovery.zookeeper</Private-Package>
-                        <Export-Package>
-                            org.osgi.service.remoteserviceadmin;version="${remote.service.admin.interfaces.version}"
-                        </Export-Package>
+                        <Private-Package>
+                            org.apache.cxf.dosgi.discovery.zookeeper
+                        </Private-Package>
                     </instructions>
                 </configuration>
             </plugin> 
index 3d3daef..7eafe54 100644 (file)
     </properties>
     
     <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>${osgi.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <dependency> 
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.framework</artifactId>
@@ -61,7 +68,7 @@
                     <instructions>
                         <Bundle-Name>ZooKeeper server configuration bundle</Bundle-Name>
                         <Bundle-Description>This bundle can configure the ZooKeeper server in an OSGi Framework</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.discovery.zookeeper.server.config.Activator</Bundle-Activator>
                         <Import-Package>*</Import-Package>
                         <Private-Package>org.apache.cxf.dosgi.discovery.zookeeper.server.config</Private-Package>
index 9d8a5e8..aa25c59 100644 (file)
     </properties>
     
     <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>${osgi.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
         <dependency> 
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.framework</artifactId>
@@ -53,7 +60,7 @@
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
 
         <!-- This is a zookeeper dependency that we apparently have to list here -->
@@ -85,7 +92,7 @@
                     <instructions>
                         <Bundle-Name>ZooKeeper server control bundle</Bundle-Name>
                         <Bundle-Description>This bundle can run the ZooKeeper server in an OSGi Framework</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.discovery.zookeeper.server.Activator</Bundle-Activator>
                         <Import-Package>*</Import-Package>
                         <Private-Package>org.apache.cxf.dosgi.discovery.zookeeper.server</Private-Package>
index 4274933..9118eb8 100644 (file)
                     <instructions>
                         <Bundle-Name>ZooKeeper wrapper bundle</Bundle-Name>
                         <Bundle-Description>This bundle wraps the ZooKeeper library</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Import-Package>
                             !jline*,
+                            com.sun.jdmk.comm*;resolution:=optional,
+                            javax.jms*;resolution:=optional,
+                            javax.mail*;resolution:=optional,
                             *
                         </Import-Package>
-                        <Export-Package>*;version=${zookeeper.version}</Export-Package> 
+                        <Export-Package>*;-split-package:=merge-last;version=${zookeeper.version}</Export-Package> 
                     </instructions>
                 </configuration>
             </plugin> 
index bb0f9e5..fc1ee60 100644 (file)
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>  
             <groupId>org.jdom</groupId>  
             <artifactId>com.springsource.org.jdom</artifactId>  
-            <version>1.0.0</version> 
+            <version>1.1.0</version> 
         </dependency>
 
         <dependency>
                     <instructions>
                         <Bundle-Name>CXF Local Discovery Service Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation required by the CXF Local Discovery Service Bundle</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.discovery.local.internal.Activator</Bundle-Activator>
-                        <Import-Package>*</Import-Package>
+                        <Import-Package>
+                            org.osgi.service.remoteserviceadmin;version="[${remote.service.admin.interfaces.version},2.0)",
+                            *
+                        </Import-Package>
                         <Private-Package>org.apache.cxf.dosgi.discovery.local.internal</Private-Package>
                         <Export-Package>
-                            org.osgi.service.remoteserviceadmin;version="${remote.service.admin.interfaces.version}",
                             org.apache.cxf.dosgi.discovery.local
                         </Export-Package> 
                     </instructions>
index afbb853..d202036 100644 (file)
   */
 package org.apache.cxf.dosgi.discovery.local.internal;
 
+import java.util.logging.Logger;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 
 public class Activator implements BundleActivator {
+
+    private static final Logger LOG = Logger.getLogger(Activator.class.getName());
+
     LocalDiscovery localDiscovery;
     
     public synchronized void start(BundleContext context) {
         localDiscovery = new LocalDiscovery(context);
+        LOG.info("Local D-OSGi service discovery started");
     }
 
     public synchronized void stop(BundleContext context) {
         localDiscovery.shutDown();
+        LOG.info("Local D-OSGi service discovery stopped");
     }
 }
index 7de2dce..24bf437 100644 (file)
@@ -33,7 +33,7 @@
   </parent>
 
   <properties>
-    <dosgi.version>${pom.version}</dosgi.version>
+    <dosgi.version>${project.version}</dosgi.version>
     <topDirectoryLocation>../..</topDirectoryLocation>
   </properties>
 
@@ -46,7 +46,7 @@
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-activation_1.1_spec</artifactId>
-      <version>1.0.2</version>
+      <version>1.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
-      <version>1.1.2</version>
+      <version>1.1.3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-servlet_${servlet.version}_spec</artifactId>
+      <version>1.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
@@ -77,7 +82,7 @@
     <dependency>
       <groupId>org.jdom</groupId>
       <artifactId>com.springsource.org.jdom</artifactId>
-      <version>1.0.0</version>
+      <version>1.1.0</version>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <version>${spring.version}</version>
     </dependency>
     <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-asm</artifactId>
+      <version>${spring.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-expression</artifactId>
+      <version>${spring.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.springframework.osgi</groupId>
       <artifactId>spring-osgi-io</artifactId>
       <version>${spring.osgi.version}</version>
       <version>${spring.osgi.version}</version>
     </dependency>
     <dependency>
+      <groupId>org.eclipse.jetty.aggregate</groupId>
+      <artifactId>jetty-all-server</artifactId>
+      <version>${jetty.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.ops4j.pax.web</groupId>
-      <artifactId>pax-web-service</artifactId>
-      <version>0.5.1</version>
+      <artifactId>pax-web-spi</artifactId>
+      <version>1.0.3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.ops4j.pax.web</groupId>
+      <artifactId>pax-web-runtime</artifactId>
+      <version>1.0.3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.ops4j.pax.web</groupId>
+      <artifactId>pax-web-jetty</artifactId>
+      <version>1.0.3</version>
     </dependency>
     <dependency>
       <groupId>org.apache.servicemix.specs</groupId>
     </dependency>
     <dependency>
       <groupId>org.apache.servicemix.specs</groupId>
-      <artifactId>org.apache.servicemix.specs.jsr311-api-1.0</artifactId>
+      <artifactId>org.apache.servicemix.specs.jsr311-api-1.1.1</artifactId>
       <version>${servicemix.specs.version}</version>
     </dependency>
     <dependency>
-      <groupId>org.apache.servicemix.bundles</groupId> 
-      <artifactId>org.apache.servicemix.bundles.xmlschema</artifactId> 
+      <groupId>org.apache.ws.xmlschema</groupId>
+      <artifactId>xmlschema-core</artifactId>
       <version>${xmlschema.bundle.version}</version> 
     </dependency>
     <dependency>
       <version>${xmlresolver.bundle.version}</version> 
     </dependency>
     <dependency>
-       <groupId>org.apache.servicemix.bundles</groupId> 
-       <artifactId>org.apache.servicemix.bundles.neethi</artifactId> 
+       <groupId>org.apache.neethi</groupId> 
+       <artifactId>neethi</artifactId> 
        <version>${neethi.bundle.version}</version> 
     </dependency>
     <dependency>
        <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> 
+       <groupId>org.codehaus.woodstox</groupId> 
+       <artifactId>stax2-api</artifactId> 
+       <version>3.1.1</version> 
+    </dependency>
+    <dependency>
+       <groupId>org.codehaus.woodstox</groupId> 
+       <artifactId>woodstox-core-asl</artifactId> 
        <version>${woodstox.bundle.version}</version> 
     </dependency>
     <dependency>
        <version>${commons.pool.bundle.version}</version> 
     </dependency>
     <dependency>
+       <groupId>org.apache.servicemix.bundles</groupId> 
+       <artifactId>org.apache.servicemix.bundles.joda-time</artifactId>
+       <version>1.5.2_4</version>
+    </dependency>
+    <dependency>
+       <groupId>org.apache.servicemix.bundles</groupId> 
+       <artifactId>org.apache.servicemix.bundles.opensaml</artifactId>
+       <version>2.4.1_1</version>
+    </dependency>
+    <dependency>
       <groupId>org.apache.cxf</groupId>
       <artifactId>cxf-bundle-minimal</artifactId>
       <version>${cxf.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.cxf.dosgi</groupId>
+      <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.cxf.dosgi</groupId>
       <artifactId>cxf-dosgi-ri-discovery-local</artifactId>
       <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.configadmin</artifactId>
-      <version>1.0.10</version>
+      <version>1.2.8</version>
     </dependency>      
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.fileinstall</artifactId>
-      <version>1.0.0</version>
+      <version>3.1.10</version>
     </dependency>      
 
     <dependency> 
           <execution>
             <phase>compile</phase>
             <configuration>
-              <tasks>
+              <target>
                 <path id="current.dir.path">
                   <pathelement location="." />
                 </path>
                 <xslt processor="trax" in="target/classes/distro_discovery_bundles.xml" out="target/equinox.discovery.config.ini.append" style="src/main/xsl/equinox_buildsystem_config.xslt">
                       <param name="TargetDir" expression="${current.dir}/target/" />
                 </xslt>
-              </tasks>
+              </target>
             </configuration>
             <goals>
               <goal>run</goal>
index a47f420..9b23a7b 100644 (file)
@@ -1,4 +1,6 @@
-<assembly>
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/component-1.1.2.xsd">
 <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements. See the NOTICE file
@@ -17,6 +19,7 @@
   specific language governing permissions and limitations
   under the License.
 -->
+  <id>dir</id>
   <formats>
     <format>tar.gz</format>
     <format>zip</format>
index 61ed1f7..e6d4be9 100644 (file)
@@ -1,39 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <bundles>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-activation_1.1_spec-1.0.2.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-javamail_1.4_spec-1.2.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-ws-metadata_2.0_spec-1.1.2.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.apache.commons.logging-1.1.1.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.jdom-1.0.0.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-core-${spring.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-beans-${spring.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-context-${spring.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.aopalliance-1.0.0.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.slf4j.api-1.5.10.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-aop-${spring.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-io-${spring.osgi.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-core-${spring.osgi.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-extender-${spring.osgi.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/pax-web-service-0.5.1.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.jaxb-impl-${jaxbimpl.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.wsdl4j-${wsdl4j.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.xmlsec-${xmlsec.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.xmlschema-${xmlschema.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.asm-${asm.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.xmlresolver-${xmlresolver.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.neethi-${neethi.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.woodstox-${woodstox.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.commons-pool-${commons.pool.bundle.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.saaj-api-1.3-${servicemix.specs.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.stax-api-1.0-${servicemix.specs.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jaxb-api-2.1-${servicemix.specs.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jaxws-api-2.1-${servicemix.specs.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jsr311-api-1.0-${servicemix.specs.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-bundle-minimal-${cxf.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-annotation_1.0_spec-1.1.1.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-activation_1.1_spec-1.1.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-javamail_1.4_spec-1.2.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-servlet_3.0_spec-1.0.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/geronimo-ws-metadata_2.0_spec-1.1.3.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.apache.commons.logging-1.1.1.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.jdom-1.1.0.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-core-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-beans-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-context-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.aopalliance-1.0.0.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.slf4j.api-1.5.10.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.slf4j.jcl-1.5.10.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-aop-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-asm-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-expression-${spring.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-io-${spring.osgi.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-core-${spring.osgi.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/spring-osgi-extender-${spring.osgi.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/jetty-all-server-${jetty.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/pax-web-spi-1.0.3.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/pax-web-runtime-1.0.3.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/pax-web-jetty-1.0.3.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.jaxb-impl-${jaxbimpl.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.wsdl4j-${wsdl4j.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.xmlsec-${xmlsec.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/xmlschema-core-${xmlschema.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.asm-${asm.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.xmlresolver-${xmlresolver.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/neethi-${neethi.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/stax2-api-3.1.1.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/woodstox-core-asl-${woodstox.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.commons-pool-${commons.pool.bundle.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.saaj-api-1.3-${servicemix.specs.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.stax-api-1.0-${servicemix.specs.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jaxb-api-2.1-${servicemix.specs.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jaxws-api-2.1-${servicemix.specs.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.specs.jsr311-api-1.1.1-${servicemix.specs.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.joda-time-1.5.2_4.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.servicemix.bundles.opensaml-2.4.1_1.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-bundle-minimal-${cxf.version}.jar</bundle>
 
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-local-${pom.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-${pom.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-topology-manager-${pom.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-remote-service-admin-interfaces-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-local-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-dsw-cxf-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-topology-manager-${project.version}.jar</bundle>
 </bundles>
index 2285990..79e103f 100644 (file)
@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <bundles>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.felix.configadmin-1.0.10.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.felix.fileinstall-1.0.0.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.apache.log4j-${log4j.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper-${project.version}.jar</bundle>
-  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}.dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-distributed-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.felix.configadmin-1.2.8.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/org.apache.felix.fileinstall-3.1.10.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/com.springsource.org.apache.log4j-${log4j.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-remote-service-admin-interfaces-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper-${project.version}.jar</bundle>
+  <bundle>cxf-dosgi-ri-multibundle-distribution-${project.version}-dir/apache-cxf-dosgi-ri-${project.version}/dosgi_bundles/cxf-dosgi-ri-discovery-distributed-${project.version}.jar</bundle>
 </bundles>
index 6250542..68e7c5f 100644 (file)
@@ -2,7 +2,7 @@
 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
   <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>\r
   <xsl:param name="Version"/>\r
-  <xsl:variable name = "Basename">.dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>\r
+  <xsl:variable name = "Basename">-dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>\r
   <xsl:template match="/">\r
 org.ops4j.pax.web.session.timeout=30\r
 \r
index c8fa423..76c786f 100644 (file)
@@ -3,7 +3,7 @@
   <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>\r
   <xsl:param name="Version"/>\r
   <xsl:param name="Offset"/>\r
-  <xsl:variable name = "Basename">.dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>\r
+  <xsl:variable name = "Basename">-dir/apache-cxf-dosgi-ri-<xsl:value-of select="$Version"/>/dosgi_bundles/</xsl:variable>\r
   <xsl:template match="/">\r
 org.ops4j.pax.web.session.timeout=30\r
 org.osgi.framework.startlevel.beginning=<xsl:value-of select="count(//bundles/felix_deps) + count(//bundles/bundle) + $Offset"/>\r
index 4bc9ba8..0351dce 100644 (file)
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-activation_1.1_spec</artifactId>
-      <version>1.0.2</version>
+      <version>1.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-javamail_1.4_spec</artifactId>
-      <version>1.2</version>
+      <version>1.7.1</version>
     </dependency>
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
-      <version>1.1.2</version>
+      <version>1.1.3</version>
     </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
@@ -77,7 +77,7 @@
     <dependency>
       <groupId>org.jdom</groupId>
       <artifactId>com.springsource.org.jdom</artifactId>
-      <version>1.0.0</version>
+      <version>1.1.0</version>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
       <version>${spring.version}</version>
     </dependency>
     <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-asm</artifactId>
+      <version>${spring.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-expression</artifactId>
+      <version>${spring.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.springframework.osgi</groupId>
       <artifactId>spring-osgi-io</artifactId>
       <version>${spring.osgi.version}</version>
       <version>${spring.osgi.version}</version>
     </dependency>
     <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-servlet_3.0_spec</artifactId>
+      <version>1.0</version>
+    </dependency>
+    <dependency>
       <groupId>org.ops4j.pax.web</groupId>
-      <artifactId>pax-web-service</artifactId>
-      <version>0.5.1</version>
+      <artifactId>pax-web-runtime</artifactId>
+      <version>1.0.3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty.aggregate</groupId>
+      <artifactId>jetty-all-server</artifactId>
+      <version>8.0.0.M3</version>
+    </dependency>
+    <dependency>
+      <groupId>org.ops4j.pax.web</groupId>
+      <artifactId>pax-web-jetty</artifactId>
+      <version>1.0.3</version>
     </dependency>
     <dependency>
       <groupId>org.apache.servicemix.specs</groupId>
     </dependency>
     <dependency>
       <groupId>org.apache.servicemix.specs</groupId>
-      <artifactId>org.apache.servicemix.specs.jsr311-api-1.0</artifactId>
+      <artifactId>org.apache.servicemix.specs.jsr311-api-1.1.1</artifactId>
       <version>${servicemix.specs.version}</version>
     </dependency>
     <dependency>
-      <groupId>org.apache.servicemix.bundles</groupId> 
-      <artifactId>org.apache.servicemix.bundles.xmlschema</artifactId> 
+      <groupId>org.apache.ws.xmlschema</groupId>
+      <artifactId>xmlschema-core</artifactId>
       <version>${xmlschema.bundle.version}</version> 
     </dependency>
     <dependency>
       <version>${xmlresolver.bundle.version}</version> 
     </dependency>
     <dependency>
-       <groupId>org.apache.servicemix.bundles</groupId> 
-       <artifactId>org.apache.servicemix.bundles.neethi</artifactId> 
+       <groupId>org.apache.neethi</groupId> 
+       <artifactId>neethi</artifactId> 
        <version>${neethi.bundle.version}</version> 
     </dependency>
     <dependency>
     </dependency>
 
     <dependency>
-       <groupId>org.apache.servicemix.bundles</groupId> 
-       <artifactId>org.apache.servicemix.bundles.woodstox</artifactId> 
+       <groupId>org.codehaus.woodstox</groupId> 
+       <artifactId>stax2-api</artifactId> 
+       <version>3.1.1</version> 
+    </dependency>
+
+    <dependency>
+       <groupId>org.codehaus.woodstox</groupId> 
+       <artifactId>woodstox-core-asl</artifactId> 
        <version>${woodstox.bundle.version}</version> 
     </dependency>
 
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.configadmin</artifactId>
-      <version>1.0.10</version>
+      <version>1.2.8</version>
     </dependency>      
     <dependency>
       <groupId>org.apache.felix</groupId>
       <artifactId>org.apache.felix.fileinstall</artifactId>
-      <version>1.0.0</version>
+      <version>3.1.10</version>
     </dependency>      
 
     <dependency> 
       <artifactId>cxf-bundle-minimal</artifactId>
       <version>${cxf.version}</version>
     </dependency>
+
+    <dependency>
+      <groupId>org.apache.cxf.dosgi</groupId>
+      <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
+      <version>${project.version}</version>
+    </dependency>
     <dependency>
       <groupId>org.apache.cxf.dosgi</groupId>
       <artifactId>cxf-dosgi-ri-discovery-local</artifactId>
         <configuration>
           <instructions>
             <Bundle-Name>Distributed OSGi Distribution Software Single-Bundle Distribution</Bundle-Name>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
             <Bundle-Activator>org.apache.cxf.dosgi.singlebundle.AggregatedActivator</Bundle-Activator>
             <Include-Resource>
               {maven-resources}
             </Include-Resource>
             <Import-Package>
-              javax.servlet.*;version="[2.3.0,2.6.0)",
-              org.osgi.*
+              javax.servlet.descriptor;resolution:=optional,
+              javax.servlet.*;version="[2.3.0,4.0)",
+              org.osgi.service.blueprint*;resolution:=optional,
+              org.osgi.*,
             </Import-Package>
             <Export-Package>
               '=META-INF.cxf',
-              org.apache.cxf.dosgi.singlebundle;version="${pom.version}"
+              org.apache.cxf.dosgi.singlebundle;version="${project.version}"
             </Export-Package>
             <Embed-Dependency>*;scope=compile;inline=false</Embed-Dependency>
             <Embed-Directory>lib</Embed-Directory>
               javax.jws.*;version="2.0.0", 
               javax.xml.bind.annotation.*;version="2.1",
               javax.servlet.*;version="2.5.0",
-              org.apache.cxf.dosgi.*;version="${pom.version}",
+              org.apache.cxf.dosgi.*;version="${project.version}",
               org.apache.cxf.*;version="${cxf.version}",
-              org.jdom.*;version="1.0.0",
+              org.jdom.*;version="1.1.0",
               org.osgi.service.cm;version="1.2",
-              org.osgi.service.distribution;version="1.0.0",
-              org.osgi.service.discovery;version="1.0.0",
-              org.osgi.service.log;version="1.3",
               org.osgi.service.remoteserviceadmin;version="1.0.0",
               !*
             </_exportcontents> 
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>org.apache.felix</groupId>
+                  <groupId>org.osgi</groupId>
                   <artifactId>org.osgi.compendium</artifactId>
-                  <version>1.2.0</version>
+                  <version>${osgi.version}</version>
                   <type>jar</type>
                   <outputDirectory>target/deps</outputDirectory>
                 </artifactItem>
           <execution>
             <phase>package</phase>
             <configuration>
-              <tasks>
+              <target>
                 <!-- removing this directory as it confuses Eclipse when importing the bundle as a plugin -->
                 <delete dir="target/classes" />
 
@@ -376,7 +412,7 @@ osgi.bundles=org.eclipse.osgi.services@start,
                 </echo>
                 <echo message="${bundle}@start" file="target/equinox.config.ini.append" append="true" />
                 <replace file="target/equinox.config.ini.append" token="\" value="/" />
-              </tasks>
+              </target>
             </configuration>
             <goals>
               <goal>run</goal>
index e44b85c..8b6f4a8 100644 (file)
@@ -34,7 +34,7 @@
 
     <properties>
         <maven.test.skip>true</maven.test.skip>
-        <dosgi.version>${pom.version}</dosgi.version>
+        <dosgi.version>${project.version}</dosgi.version>
         <topDirectoryLocation>../..</topDirectoryLocation>
     </properties>
 
index 47e61ec..493e414 100644 (file)
@@ -18,7 +18,7 @@
  * under the License.
 -->
 <assembly>
-    <id></id>
+    <id>dist</id>
     <includeBaseDirectory>false</includeBaseDirectory>
     <formats>
         <format>tar.gz</format>
index b2a2ad8..33479dd 100644 (file)
     <properties>
         <topDirectoryLocation>../..</topDirectoryLocation>
         <bundle.import.package>
-            org.apache.cxf.ws.security.*,
             org.apache.cxf.ws.policy.*,
+            org.osgi.service.remoteserviceadmin;version="[${remote.service.admin.interfaces.version},2.0)",
+            javax.servlet*;version="[0.0,4)",
+            javax.xml.ws*;version="[2.1,3)",
             *
         </bundle.import.package>
         <bundle.export.package>
-            org.apache.cxf.dosgi.*;version="${pom.version}",
-            org.osgi.service.remoteserviceadmin;version="${remote.service.admin.interfaces.version}"
+            org.apache.cxf.dosgi.*;version="${project.version}"
         </bundle.export.package>
     </properties>
     
@@ -49,7 +50,7 @@
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
                 </exclusion>
             </exclusions>
         </dependency> 
-        <dependency>  
+        <dependency>
+            <groupId>org.osgi</groupId>  
+            <artifactId>org.osgi.compendium</artifactId>  
+            <version>${osgi.version}</version> 
+        </dependency>
+        <dependency>
             <groupId>org.jdom</groupId>  
             <artifactId>com.springsource.org.jdom</artifactId>  
-            <version>1.0.0</version> 
+            <version>1.1.0</version> 
         </dependency>
         <dependency>
             <groupId>junit</groupId>
                     <instructions>
                         <Bundle-Name>CXF dOSGi Remote Service Admin Implementation</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation required by the CXF Distributed Software Bundle</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Export-Package>${bundle.export.package}</Export-Package>
                         <DynamicImport-Package>*</DynamicImport-Package>
-                        <Private-Package>org.osgi.service.discovery,org.osgi.service.distribution</Private-Package>
+                        <Spring-Context>META-INF/spring/*.xml;create-asynchrously:=false</Spring-Context>
                     </instructions>
                 </configuration>
             </plugin> 
index 44456aa..4db8f5f 100644 (file)
@@ -87,6 +87,8 @@ public class Activator implements ManagedService,BundleContextAware {
                                      org.apache.cxf.dosgi.dsw.Constants.RS_CONFIG_TYPE
         };
         props.put("remote.configs.supported", supportedConfigs);
+        
+        LOG.info("Registering RemoteServiceAdminFactory...");
 
         rsaFactoryReg = bc.registerService(RemoteServiceAdmin.class.getName(), rsaf, props);
         return rsaf;
index 9e9c740..ee7d59a 100644 (file)
@@ -79,7 +79,7 @@ public class JaxRSHttpServiceConfigurationTypeHandler extends HttpServiceConfigu
         List<UserResource> resources = JaxRSUtils.getModel(callingContext, iClass);
         if (resources != null) {
             factory.setModelBeansWithServiceClass(resources, iClass);
-            factory.setServiceBeans(serviceBean);
+            factory.setServiceBeanObjects(serviceBean);
         } else {
             factory.setServiceClass(iClass);
             factory.setResourceProvider(iClass, new SingletonResourceProvider(serviceBean));
index 53df436..334d74f 100644 (file)
@@ -106,7 +106,7 @@ public class JaxRSPojoConfigurationTypeHandler extends PojoConfigurationTypeHand
         List<UserResource> resources = JaxRSUtils.getModel(callingContext, iClass);
         if (resources != null) {
             factory.setModelBeansWithServiceClass(resources, iClass);
-            factory.setServiceBeans(serviceBean);
+            factory.setServiceBeanObjects(serviceBean);
         } else {
             factory.setServiceClass(iClass);
             factory.setResourceProvider(iClass, new SingletonResourceProvider(serviceBean));
index 9d47d4f..83fd425 100644 (file)
@@ -22,11 +22,7 @@ import java.util.Map;
 import java.util.Set;
 import java.util.logging.Logger;
 
-import org.apache.commons.logging.Log;
-import org.apache.cxf.dosgi.dsw.handlers.IntentUnsatifiedException;
 import org.apache.cxf.endpoint.Server;
-import org.apache.cxf.frontend.ServerFactoryBean;
-import org.mortbay.jetty.servlet.PathMap.Entry;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.Constants;
 import org.osgi.framework.Filter;
index 25a6877..fcf7f2a 100644 (file)
@@ -49,8 +49,8 @@ public class RemoteServiceAdminCore implements RemoteServiceAdmin {
 
     private Logger LOG = Logger.getLogger(RemoteServiceAdminCore.class.getName());
 
-    private LinkedHashMap<ServiceReference, Collection<ExportRegistrationImpl>> exportedServices = new LinkedHashMap<ServiceReference, Collection<ExportRegistrationImpl>>();
-    private LinkedHashMap<EndpointDescription, Collection<ImportRegistrationImpl>> importedServices = new LinkedHashMap<EndpointDescription, Collection<ImportRegistrationImpl>>();
+    private final LinkedHashMap<ServiceReference, Collection<ExportRegistrationImpl>> exportedServices = new LinkedHashMap<ServiceReference, Collection<ExportRegistrationImpl>>();
+    private final LinkedHashMap<EndpointDescription, Collection<ImportRegistrationImpl>> importedServices = new LinkedHashMap<EndpointDescription, Collection<ImportRegistrationImpl>>();
 
     private BundleContext bctx;
 
@@ -61,7 +61,8 @@ public class RemoteServiceAdminCore implements RemoteServiceAdmin {
     private volatile String defaultHost;
 
     // protected because of tests
-    protected static List<String> supportedConfigurationTypes = new ArrayList<String>();
+    protected static final List<String> supportedConfigurationTypes = new ArrayList<String>();
+
     static {
         supportedConfigurationTypes.add(Constants.WSDL_CONFIG_TYPE);
         supportedConfigurationTypes.add(Constants.RS_CONFIG_TYPE);
index 2362d74..5823a51 100644 (file)
@@ -20,6 +20,7 @@ package org.apache.cxf.dosgi.dsw.service;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import org.apache.cxf.jaxws.javaee.ResAuthType;
@@ -42,14 +43,16 @@ public class RemoteServiceadminFactory implements ServiceFactory {
     }
 
     public Object getService(Bundle b, ServiceRegistration sr) {
-        LOG.finest("new RemoteServiceAdmin ServiceInstance created for Bundle "+b.getSymbolicName());
+        LOG.log(Level.FINEST, "new RemoteServiceAdmin ServiceInstance created for Bundle {0}",
+                b.getSymbolicName());
         RemoteServiceAdminInstance rsai = new RemoteServiceAdminInstance(bctx,rsaCore);
         rsaServiceInstances.add(rsai);
         return rsai;
     }
 
     public void ungetService(Bundle b, ServiceRegistration sr, Object serviceObject) {
-        LOG.finest("RemoteServiceAdmin ServiceInstance removed for Bundle "+b.getSymbolicName());
+        LOG.log(Level.FINEST, "RemoteServiceAdmin ServiceInstance removed for Bundle {0}",
+                b.getSymbolicName());
         if (serviceObject instanceof RemoteServiceAdminInstance) {
             RemoteServiceAdminInstance rsai = (RemoteServiceAdminInstance)serviceObject;
             rsai.close();
index f76e9db..bf64669 100644 (file)
     </properties>
     
     <dependencies>
-        <dependency> 
+        <dependency>
             <groupId>org.apache.felix</groupId>
             <artifactId>org.apache.felix.framework</artifactId>
-            <version>1.8.0</version>
+            <version>${felix.version}</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.apache.felix</groupId>
@@ -46,7 +46,7 @@
                 </exclusion>
             </exclusions>
             <scope>provided</scope>
-        </dependency> 
+        </dependency>
     </dependencies>
 
     <build>
             <plugin>
                 <groupId>org.apache.felix</groupId>
                 <artifactId>maven-bundle-plugin</artifactId>
-                <version>1.2.1</version>
                 <extensions>true</extensions>
                 <configuration>
                     <manifestLocation>META-INF</manifestLocation>
                     <instructions>
                         <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
-                        <Bundle-Version>${pom.version}</Bundle-Version>
-                        <Export-Package>${bundle.namespace}.*;version="${pom.version}"</Export-Package>
-                        <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
+                        <Bundle-Version>${project.version}</Bundle-Version>
+                        <Export-Package>${bundle.namespace}.*;version="${remote.service.admin.interfaces.version}"</Export-Package>
                         <Embed-Directory>target/dependency</Embed-Directory>
                         <Embed-StripGroup>true</Embed-StripGroup>
                     </instructions>
index d5eb93a..e084d0c 100644 (file)
 
     <properties>
         <topDirectoryLocation>../..</topDirectoryLocation>
-        <bundle.import.package>*</bundle.import.package>
+        <bundle.import.package>
+            org.osgi.service.remoteserviceadmin;version="[${remote.service.admin.interfaces.version},2)",
+            *
+        </bundle.import.package>
         <bundle.export.package>
-            org.apache.cxf.dosgi.*;version="${pom.version}",
-            org.osgi.service.remoteserviceadmin;version="${remote.service.admin.interfaces.version}"
+            org.apache.cxf.dosgi.*;version="${project.version}"
         </bundle.export.package>
     </properties>
 
@@ -54,7 +56,7 @@
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-remote-service-admin-interfaces</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
 
         <dependency>
@@ -80,7 +82,7 @@
                     <instructions>
                         <Bundle-Name>CXF dOSGi Topology Manager</Bundle-Name>
                         <Bundle-Description>Default CXF Topology Manager as described in OSGi Remote Service Admin specification.</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <Bundle-Activator>org.apache.cxf.dosgi.topologymanager.Activator</Bundle-Activator>
                         <Import-Package>${bundle.import.package}</Import-Package>
index 7ed347b..6a9df40 100644 (file)
@@ -20,6 +20,7 @@ package org.apache.cxf.dosgi.topologymanager;
 
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.Dictionary;
 import java.util.HashMap;
 import java.util.Hashtable;
@@ -30,6 +31,7 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.ThreadPoolExecutor;
 import java.util.concurrent.TimeUnit;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import org.osgi.framework.BundleContext;
@@ -56,7 +58,7 @@ public class TopologyManager {
     private ExecutorService execService = new ThreadPoolExecutor(5, 10, 50, TimeUnit.SECONDS,
                                                                  new LinkedBlockingQueue<Runnable>());
 
-    private RemoteServiceAdminList remoteServiceAdminList;
+    private final RemoteServiceAdminList remoteServiceAdminList;
 
     private ServiceListenerImpl serviceListerner;
 
@@ -77,14 +79,14 @@ public class TopologyManager {
      * 
      * </pre>
      */
-    private HashMap<ServiceReference, HashMap<RemoteServiceAdmin, Collection<ExportRegistration>>> exportedServices = new LinkedHashMap<ServiceReference, HashMap<RemoteServiceAdmin, Collection<ExportRegistration>>>();
+    private final HashMap<ServiceReference, HashMap<RemoteServiceAdmin, Collection<ExportRegistration>>> exportedServices = new LinkedHashMap<ServiceReference, HashMap<RemoteServiceAdmin, Collection<ExportRegistration>>>();
 
     private BundleContext bctx;
     // private List<RemoteServiceAdmin> remoteServiceAdmins = new ArrayList<RemoteServiceAdmin>();
 
     private ServiceTracker stEndpointListeners;
 
-    public TopologyManager(BundleContext ctx, RemoteServiceAdminList rsaList) {
+    public TopologyManager(BundleContext ctx, final RemoteServiceAdminList rsaList) {
         bctx = ctx;
 
         remoteServiceAdminList = rsaList;
@@ -228,43 +230,45 @@ public class TopologyManager {
         execService.execute(new Runnable() {
             @SuppressWarnings("unchecked")
             public void run() {
-                LOG.info("TopologyManager: exporting  serice ...");
+                LOG.info("TopologyManager: exporting service ...");
 
-                HashMap<RemoteServiceAdmin, Collection<ExportRegistration>> exports = null;
+                Map<RemoteServiceAdmin, Collection<ExportRegistration>> exports = null;
 
                 synchronized (exportedServices) {
-                    exports = exportedServices.get(sref);
+                    exports = Collections.synchronizedMap(exportedServices.get(sref));
                 }
                 // FIXME: Not thread safe...?
                 if (exports != null) {
-                    synchronized (exports) {
-                        synchronized (remoteServiceAdminList) {
-                            for (RemoteServiceAdmin remoteServiceAdmin : remoteServiceAdminList) {
-                                LOG
-                                    .info("TopologyManager: handling remoteServiceAdmin "
-                                          + remoteServiceAdmin);
-
-                                if (exports.containsKey(remoteServiceAdmin)) {
-                                    // already handled by this remoteServiceAdmin
-                                    LOG
-                                        .info("TopologyManager: already handled by this remoteServiceAdmin -> skipping");
+                    if(remoteServiceAdminList == null || remoteServiceAdminList.size() == 0) {
+                        LOG.log(Level.SEVERE, "No RemoteServiceAdmin available! Unable to export service from bundle {0}, interfaces: {1}",
+                                new Object[]{sref.getBundle().getSymbolicName(), sref.getProperty(org.osgi.framework.Constants.OBJECTCLASS)});
+                    }
+
+                    synchronized (remoteServiceAdminList) {
+                        for (final RemoteServiceAdmin remoteServiceAdmin : remoteServiceAdminList) {
+                            LOG
+                                .info("TopologyManager: handling remoteServiceAdmin "
+                                      + remoteServiceAdmin);
+
+                            if (exports.containsKey(remoteServiceAdmin)) {
+                                // already handled by this remoteServiceAdmin
+                                LOG.info("TopologyManager: already handled by this remoteServiceAdmin -> skipping");
+                            } else {
+                                // TODO: additional parameter Map ?
+                                LOG.info("TopologyManager: exporting ...");
+                                Collection<ExportRegistration> endpoints = remoteServiceAdmin
+                                    .exportService(sref, null);
+                                if (endpoints == null) {
+                                    // TODO export failed -> What should be done here?
+                                    LOG.info("TopologyManager: export failed");
+                                    exports.put(remoteServiceAdmin, null);
                                 } else {
-                                    // TODO: additional parameter Map ?
-                                    LOG.info("TopologyManager: exporting ...");
-                                    Collection<ExportRegistration> endpoints = remoteServiceAdmin
-                                        .exportService(sref, null);
-                                    if (endpoints == null) {
-                                        // TODO export failed -> What should be done here?
-                                        LOG.info("TopologyManager: export failed");
-                                        exports.put(remoteServiceAdmin, null);
-                                    } else {
-                                        LOG.info("TopologyManager: export sucessful Endpoints:" + endpoints);
-                                        // enqueue in local list of endpoints
-                                        exports.put(remoteServiceAdmin, endpoints);
-
-                                        // publish to endpoint listeners
-                                        nofifyListeners(endpoints);
-                                    }
+                                    LOG.info("TopologyManager: export sucessful Endpoints:" + endpoints);
+                                    // enqueue in local list of endpoints
+                                    exports.put(remoteServiceAdmin, endpoints);
+
+                                    // publish to endpoint listeners
+                                    nofifyListeners(endpoints);
                                 }
                             }
                         }
index ceb0374..90ad53f 100644 (file)
@@ -29,10 +29,10 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.ThreadPoolExecutor;
 import java.util.concurrent.TimeUnit;
+import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import org.osgi.framework.BundleContext;
-import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.service.remoteserviceadmin.EndpointDescription;
 import org.osgi.service.remoteserviceadmin.ImportReference;
 import org.osgi.service.remoteserviceadmin.ImportRegistration;
@@ -44,10 +44,10 @@ public class TopologyManagerImport {
     private ExecutorService execService = new ThreadPoolExecutor(5, 10, 50, TimeUnit.SECONDS,
                                                                  new LinkedBlockingQueue<Runnable>());
 
-    private EndpointListenerImpl endpointListener;
-    private BundleContext bctx;
-    private RemoteServiceAdminList remoteServiceAdminList;
-    private ListenerHookImpl listenerHook;
+    private final EndpointListenerImpl endpointListener;
+    private final BundleContext bctx;
+    private final RemoteServiceAdminList remoteServiceAdminList;
+    private final ListenerHookImpl listenerHook;
 
     /**
      * If set to false only one service is imported for each import interest even it multiple services are
@@ -62,7 +62,7 @@ public class TopologyManagerImport {
      * counter. If an interest is removed, the related ServiceInterest object is used to reduce the reference
      * counter until it reaches zero. in this case the interest is removed.
      */
-    private Map<String/* filter */, ImportInterest> importInterests = new HashMap<String, ImportInterest>();
+    private final Map<String/* filter */, ImportInterest> importInterests = new HashMap<String, ImportInterest>();
 
     private static class ImportInterest {
         String filter;
@@ -86,14 +86,18 @@ public class TopologyManagerImport {
     /**
      * FIXME: Documnet me .... !
      */
-    private Map<String /* filter */, List<EndpointDescription>> importPossibilities = new HashMap<String, List<EndpointDescription>>();
-    private Map<String /* filter */, List<ImportRegistration>> importedServices = new HashMap<String, List<ImportRegistration>>();
+    private final Map<String /* filter */, List<EndpointDescription>> importPossibilities = new HashMap<String, List<EndpointDescription>>();
+    private final Map<String /* filter */, List<ImportRegistration>> importedServices = new HashMap<String, List<ImportRegistration>>();
 
     public TopologyManagerImport(BundleContext bc, RemoteServiceAdminList rsaList) {
         bctx = bc;
         remoteServiceAdminList = rsaList;
         endpointListener = new EndpointListenerImpl(bctx, this);
         listenerHook = new ListenerHookImpl(bctx, this);
+        
+        if(rsaList == null || rsaList.size() == 0) {
+            LOG.log(Level.WARNING, "No RemoteServiceAdmin service available!");
+        }
     }
 
     public void start() {
@@ -134,8 +138,9 @@ public class TopologyManagerImport {
                 // remove reference
                 if (i.removeReference() <= 0) {
                     // last reference, remove from scope
-                    LOG.fine("last reference to import interest is gone -> removing interest  filter:"
-                             + exFilter);
+                    LOG.log(Level.FINE,
+                            "last reference to import interest is gone -> removing interest  filter: {0}",
+                            exFilter);
                     endpointListener.reduceScope(exFilter);
                     importInterests.remove(exFilter);
                     List<ImportRegistration> irs = importedServices.remove(exFilter);
@@ -171,7 +176,9 @@ public class TopologyManagerImport {
 
     public void addImportableService(String filter, EndpointDescription epd) {
 
-        LOG.fine("importable service added for filter " + filter + " -> " + epd);
+        LOG.log(Level.FINE, "importable service added for filter {0} -> {1}",
+                new Object[]{filter, epd});
+
         synchronized (importPossibilities) {
             List<EndpointDescription> ips = importPossibilities.get(filter);
             if (ips == null) {
@@ -187,7 +194,7 @@ public class TopologyManagerImport {
 
     private void triggerImport(final String filter) {
 
-        LOG.fine("import of a service for filter " + filter + " was queued");
+        LOG.log(Level.FINE, "import of a service for filter {0} was queued", filter);
 
         execService.execute(new Runnable() {
             public void run() {
@@ -304,6 +311,12 @@ public class TopologyManagerImport {
 
     private ImportRegistration importService(EndpointDescription ep) {
         synchronized (remoteServiceAdminList) {
+            if(remoteServiceAdminList == null || remoteServiceAdminList.size() == 0) {
+                LOG.log(Level.WARNING,
+                        "Unable to import service ({0}): no RemoteServiceAdmin service available!",
+                        ep);
+            }
+
             for (RemoteServiceAdmin rsa : remoteServiceAdminList) {
                 ImportRegistration ir = rsa.importService(ep);
                 if (ir != null && ir.getException() == null) {
index 109b335..863e34d 100644 (file)
         </dependency>
 
         <dependency>
-            <groupId>org.mortbay.jetty</groupId>
-            <artifactId>jetty</artifactId>
+            <groupId>org.eclipse.jetty</groupId>
+            <artifactId>jetty-server</artifactId>
             <version>${jetty.version}</version>
-        </dependency> 
+        </dependency>
 
         <dependency>
-            <groupId>org.mortbay.jetty</groupId>
+            <groupId>org.eclipse.jetty</groupId>
             <artifactId>jetty-util</artifactId>
             <version>${jetty.version}</version>
-        </dependency>      
+        </dependency>
 
         <dependency> 
            <groupId>org.apache.servicemix.specs</groupId> 
         <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
             <artifactId>geronimo-javamail_1.4_spec</artifactId>
-            <version>1.2</version>
+            <version>1.7.1</version>
         </dependency> 
         <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
             <artifactId>geronimo-activation_1.1_spec</artifactId>
-            <version>1.0.2</version>
+            <version>1.1</version>
         </dependency>
         <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
             <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
-            <version>1.1.2</version>
+            <version>1.1.3</version>
         </dependency>
         <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
-            <artifactId>geronimo-servlet_2.5_spec</artifactId>
-            <version>1.1.2</version>
+            <artifactId>geronimo-servlet_3.0_spec</artifactId>
+            <version>1.0</version>
         </dependency>
 
         <dependency>
         </dependency>
 
         <dependency>
-           <groupId>org.apache.servicemix.bundles</groupId> 
-           <artifactId>org.apache.servicemix.bundles.xmlschema</artifactId> 
+           <groupId>org.apache.ws.xmlschema</groupId> 
+           <artifactId>xmlschema-core</artifactId> 
            <version>${xmlschema.bundle.version}</version> 
         </dependency>
         <dependency>
            <version>${xmlresolver.bundle.version}</version> 
         </dependency>
         <dependency>
-           <groupId>org.apache.servicemix.bundles</groupId> 
-           <artifactId>org.apache.servicemix.bundles.neethi</artifactId> 
+           <groupId>org.apache.neethi</groupId> 
+           <artifactId>neethi</artifactId> 
            <version>${neethi.bundle.version}</version> 
         </dependency>
         <dependency>
         
         
         <dependency>
-           <groupId>org.apache.servicemix.bundles</groupId> 
-           <artifactId>org.apache.servicemix.bundles.woodstox</artifactId> 
-           <version>${woodstox.bundle.version}</version> 
-        </dependency> 
+           <groupId>org.codehaus.woodstox</groupId>
+           <artifactId>woodstox-core-asl</artifactId>
+           <version>${woodstox.bundle.version}</version>
+        </dependency>
         
         <dependency>  
            <groupId>org.aopalliance</groupId>  
index 58a4ea9..0bf6534 100644 (file)
@@ -1,16 +1,16 @@
 start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.1/geronimo-activation_1.1_spec-1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.3/geronimo-ws-metadata_2.0_spec-1.1.3.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.1.2/geronimo-servlet_2.5_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_3.0_spec/1.0/geronimo-servlet_3.0_spec-1.0.jar
 
 start file:${maven.repo.local}/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
 
-start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.0.0/com.springsource.org.jdom-1.0.0.jar
+start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.1.0/com.springsource.org.jdom-1.1.0.jar
 
 start file:${maven.repo.local}/org/jaxen/com.springsource.org.jaxen/1.1.1/com.springsource.org.jaxen-1.1.1.jar
 
@@ -24,15 +24,17 @@ start file:${maven.repo.local}/org/aopalliance/com.springsource.org.aopalliance/
 
 start file:${maven.repo.local}/org/springframework/spring-aop/${spring.version}/spring-aop-${spring.version}.jar
 
+start file:${maven.repo.local}/org/springframework/spring-expression/${spring.version}/spring-expression-${spring.version}.jar
+
+start file:${maven.repo.local}/org/springframework/spring-asm/${spring.version}/spring-asm-${spring.version}.jar
+
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-io/${spring.osgi.version}/spring-osgi-io-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-core/${spring.osgi.version}/spring-osgi-core-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-extender/${spring.osgi.version}/spring-osgi-extender-${spring.osgi.version}.jar
 
-start file:${maven.repo.local}/org/mortbay/jetty/jetty-util/${jetty.version}/jetty-util-${jetty.version}.jar
-
-start file:${maven.repo.local}/org/mortbay/jetty/jetty/${jetty.version}/jetty-${jetty.version}.jar
+start file:${maven.repo.local}/org/eclipse/jetty/aggregate/jetty-all-server/${jetty.version}/jetty-all-server-${jetty.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/specs/org.apache.servicemix.specs.locator/${servicemix.specs.version}/org.apache.servicemix.specs.locator-${servicemix.specs.version}.jar
 
@@ -52,15 +54,21 @@ start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicem
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wss4j/${wss4j.bundle.version}/org.apache.servicemix.bundles.wss4j-${wss4j.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlschema/${xmlschema.bundle.version}/org.apache.servicemix.bundles.xmlschema-${xmlschema.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/sws/xmlschema/xmlschema-core/${xmlschema.bundle.version}/xmlschema-core-${xmlschema.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.asm/${asm.bundle.version}/org.apache.servicemix.bundles.asm-${asm.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlresolver/${xmlresolver.bundle.version}/org.apache.servicemix.bundles.xmlresolver-${xmlresolver.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.neethi/${neethi.bundle.version}/org.apache.servicemix.bundles.neethi-${neethi.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/neethi/neethi/${neethi.bundle.version}/neethi-${neethi.bundle.version}.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/woodstox-core-asl/${woodstox.bundle.version}/woodstox-core-asl-${woodstox.bundle.version}.jar
+
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.joda-time/1.5.2_4/org.apache.servicemix.bundles.joda-time-1.5.2_4.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.woodstox/${woodstox.bundle.version}/org.apache.servicemix.bundles.woodstox-${woodstox.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.opensaml/2.4.1_1/org.apache.servicemix.bundles.opensaml-2.4.1_1.jar
 
 start file:${maven.repo.local}/org/apache/cxf/cxf-bundle-minimal/${cxf.version}/cxf-bundle-minimal-${cxf.version}.jar
 
index 8f61b2f..8506239 100644 (file)
@@ -1,16 +1,16 @@
 start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.1/geronimo-activation_1.1_spec-1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.3/geronimo-ws-metadata_2.0_spec-1.1.3.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.1.2/geronimo-servlet_2.5_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_3.0_spec/1.0/geronimo-servlet_3.0_spec-1.0.jar
 
 start file:${maven.repo.local}/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
 
-start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.0.0/com.springsource.org.jdom-1.0.0.jar
+start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.1.0/com.springsource.org.jdom-1.1.0.jar
 
 start file:${maven.repo.local}/org/jaxen/com.springsource.org.jaxen/1.1.1/com.springsource.org.jaxen-1.1.1.jar
 
@@ -24,15 +24,17 @@ start file:${maven.repo.local}/org/aopalliance/com.springsource.org.aopalliance/
 
 start file:${maven.repo.local}/org/springframework/spring-aop/${spring.version}/spring-aop-${spring.version}.jar
 
+start file:${maven.repo.local}/org/springframework/spring-expression/${spring.version}/spring-expression-${spring.version}.jar
+
+start file:${maven.repo.local}/org/springframework/spring-asm/${spring.version}/spring-asm-${spring.version}.jar
+
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-io/${spring.osgi.version}/spring-osgi-io-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-core/${spring.osgi.version}/spring-osgi-core-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-extender/${spring.osgi.version}/spring-osgi-extender-${spring.osgi.version}.jar
 
-start file:${maven.repo.local}/org/mortbay/jetty/jetty-util/${jetty.version}/jetty-util-${jetty.version}.jar
-
-start file:${maven.repo.local}/org/mortbay/jetty/jetty/${jetty.version}/jetty-${jetty.version}.jar
+start file:${maven.repo.local}/org/eclipse/jetty/aggregate/jetty-all-server/${jetty.version}/jetty-all-server-${jetty.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/specs/org.apache.servicemix.specs.locator/${servicemix.specs.version}/org.apache.servicemix.specs.locator-${servicemix.specs.version}.jar
 
@@ -52,15 +54,21 @@ start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicem
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wss4j/${wss4j.bundle.version}/org.apache.servicemix.bundles.wss4j-${wss4j.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlschema/${xmlschema.bundle.version}/org.apache.servicemix.bundles.xmlschema-${xmlschema.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/sws/xmlschema/xmlschema-core/${xmlschema.bundle.version}/xmlschema-core-${xmlschema.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.asm/${asm.bundle.version}/org.apache.servicemix.bundles.asm-${asm.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlresolver/${xmlresolver.bundle.version}/org.apache.servicemix.bundles.xmlresolver-${xmlresolver.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.neethi/${neethi.bundle.version}/org.apache.servicemix.bundles.neethi-${neethi.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/neethi/neethi/${neethi.bundle.version}/neethi-${neethi.bundle.version}.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/woodstox-core-asl/${woodstox.bundle.version}/woodstox-core-asl-${woodstox.bundle.version}.jar
+
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.joda-time/1.5.2_4/org.apache.servicemix.bundles.joda-time-1.5.2_4.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.woodstox/${woodstox.bundle.version}/org.apache.servicemix.bundles.woodstox-${woodstox.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.opensaml/2.4.1_1/org.apache.servicemix.bundles.opensaml-2.4.1_1.jar
 
 start file:${maven.repo.local}/org/apache/cxf/cxf-bundle-minimal/${cxf.version}/cxf-bundle-minimal-${cxf.version}.jar
 
index 98984bc..b15a054 100644 (file)
@@ -1,16 +1,16 @@
 start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-annotation_1.0_spec/1.1.1/geronimo-annotation_1.0_spec-1.1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.0.2/geronimo-activation_1.1_spec-1.0.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.1/geronimo-activation_1.1_spec-1.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.2/geronimo-javamail_1.4_spec-1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.2/geronimo-ws-metadata_2.0_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.3/geronimo-ws-metadata_2.0_spec-1.1.3.jar
 
-start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.1.2/geronimo-servlet_2.5_spec-1.1.2.jar
+start file:${maven.repo.local}/org/apache/geronimo/specs/geronimo-servlet_3.0_spec/1.0/geronimo-servlet_3.0_spec-1.0.jar
 
 start file:${maven.repo.local}/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
 
-start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.0.0/com.springsource.org.jdom-1.0.0.jar
+start file:${maven.repo.local}/org/jdom/com.springsource.org.jdom/1.1.0/com.springsource.org.jdom-1.1.0.jar
 
 start file:${maven.repo.local}/org/jaxen/com.springsource.org.jaxen/1.1.1/com.springsource.org.jaxen-1.1.1.jar
 
@@ -24,15 +24,17 @@ start file:${maven.repo.local}/org/aopalliance/com.springsource.org.aopalliance/
 
 start file:${maven.repo.local}/org/springframework/spring-aop/${spring.version}/spring-aop-${spring.version}.jar
 
+start file:${maven.repo.local}/org/springframework/spring-expression/${spring.version}/spring-expression-${spring.version}.jar
+
+start file:${maven.repo.local}/org/springframework/spring-asm/${spring.version}/spring-asm-${spring.version}.jar
+
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-io/${spring.osgi.version}/spring-osgi-io-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-core/${spring.osgi.version}/spring-osgi-core-${spring.osgi.version}.jar
 
 start file:${maven.repo.local}/org/springframework/osgi/spring-osgi-extender/${spring.osgi.version}/spring-osgi-extender-${spring.osgi.version}.jar
 
-start file:${maven.repo.local}/org/mortbay/jetty/jetty-util/${jetty.version}/jetty-util-${jetty.version}.jar
-
-start file:${maven.repo.local}/org/mortbay/jetty/jetty/${jetty.version}/jetty-${jetty.version}.jar
+start file:${maven.repo.local}/org/eclipse/jetty/aggregate/jetty-all-server/${jetty.version}/jetty-all-server-${jetty.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/specs/org.apache.servicemix.specs.locator/${servicemix.specs.version}/org.apache.servicemix.specs.locator-${servicemix.specs.version}.jar
 
@@ -52,15 +54,21 @@ start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicem
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wss4j/${wss4j.bundle.version}/org.apache.servicemix.bundles.wss4j-${wss4j.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlschema/${xmlschema.bundle.version}/org.apache.servicemix.bundles.xmlschema-${xmlschema.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/sws/xmlschema/xmlschema-core/${xmlschema.bundle.version}/xmlschema-core-${xmlschema.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.asm/${asm.bundle.version}/org.apache.servicemix.bundles.asm-${asm.bundle.version}.jar
 
 start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.xmlresolver/${xmlresolver.bundle.version}/org.apache.servicemix.bundles.xmlresolver-${xmlresolver.bundle.version}.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.neethi/${neethi.bundle.version}/org.apache.servicemix.bundles.neethi-${neethi.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/neethi/neethi/${neethi.bundle.version}/neethi-${neethi.bundle.version}.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar
+
+start file:${maven.repo.local}/org/codehaus/woodstox/woodstox-core-asl/${woodstox.bundle.version}/woodstox-core-asl-${woodstox.bundle.version}.jar
+
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.joda-time/1.5.2_4/org.apache.servicemix.bundles.joda-time-1.5.2_4.jar
 
-start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.woodstox/${woodstox.bundle.version}/org.apache.servicemix.bundles.woodstox-${woodstox.bundle.version}.jar
+start file:${maven.repo.local}/org/apache/servicemix/bundles/org.apache.servicemix.bundles.opensaml/2.4.1_1/org.apache.servicemix.bundles.opensaml-2.4.1_1.jar
 
 start file:${maven.repo.local}/org/apache/cxf/cxf-bundle-minimal/${cxf.version}/cxf-bundle-minimal-${cxf.version}.jar
 
index 2b4987d..1c1a126 100644 (file)
@@ -77,8 +77,8 @@
           <instructions>
             <Private-Package>org.apache.felix.shell.tui.*</Private-Package>
             <Bundle-Activator>org.apache.felix.shell.tui.Activator</Bundle-Activator>
-            <Bundle-DocURL>http://oscar-osgi.sf.net/obr2/${pom.artifactId}/</Bundle-DocURL>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-DocURL>http://oscar-osgi.sf.net/obr2/${project.artifactId}/</Bundle-DocURL>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
             <Import-Service>org.apache.felix.shell.ShellService</Import-Service>
           </instructions>
index 8bb2ad3..5f21611 100644 (file)
          generally caused by the fact that not all versions are available yet as 
          OSGi bundles. -->
     <properties>
-        <cxf.version>2.2.9</cxf.version>
-        <felix.version>1.8.0</felix.version>
-        <spring.version>2.5.6</spring.version>
-        <spring.osgi.version>1.2.0</spring.osgi.version>
+        <!-- portable text resource processing -->
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+        <osgi.version>4.2.0</osgi.version>
+
+        <cxf.version>2.4.1</cxf.version>
+        <cxf.build-utils.version>2.3.2</cxf.build-utils.version>
+        <felix.version>3.0.8</felix.version>
+        <spring.version>3.0.5.RELEASE</spring.version>
+        <spring.osgi.version>1.2.1</spring.osgi.version>
         <zookeeper.version>3.2.1</zookeeper.version>
 
         <remote.service.admin.interfaces.version>1.0.0</remote.service.admin.interfaces.version>
 
-        <servicemix.specs.version>1.3.0</servicemix.specs.version>
+        <servicemix.specs.version>1.8.0</servicemix.specs.version>
 
-        <servlet.version>2.5</servlet.version>
+        <servlet.version>3.0</servlet.version>
         <log4j.version>1.2.15</log4j.version>
-        <jetty.version>6.1.16</jetty.version>
-        <xmlschema.bundle.version>1.4.3_1</xmlschema.bundle.version> <!-- CXF uses 1.4.4 -->
-        <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> <!-- CXF uses 1.6.2 -->
-        <xmlsec.bundle.version>1.3.0_1</xmlsec.bundle.version>
-        <asm.bundle.version>2.2.3_1</asm.bundle.version> 
+        <jetty.version>7.4.2.v20110526</jetty.version>
+        <xmlschema.bundle.version>2.0</xmlschema.bundle.version>
+        <xmlresolver.bundle.version>1.2_4</xmlresolver.bundle.version>          
+        <neethi.bundle.version>3.0.0</neethi.bundle.version>
+        <wsdl4j.bundle.version>1.6.2_5</wsdl4j.bundle.version> <!-- CXF uses 1.6.2 -->
+        <xmlsec.bundle.version>1.4.5_1</xmlsec.bundle.version>
+        <asm.bundle.version>3.3_2</asm.bundle.version> 
         <commons.pool.bundle.version>1.5.4_1</commons.pool.bundle.version>
-        <woodstox.bundle.version>3.2.7_1</woodstox.bundle.version> <!-- CXF uses 3.2.8 -->
-        <jaxbimpl.bundle.version>2.1.6_1</jaxbimpl.bundle.version> <!-- CXF uses 2.1.9 -->
+        <woodstox.bundle.version>4.1.1</woodstox.bundle.version> <!-- CXF 2.4.1 uses 4.1.1 -->
+        <jaxbimpl.bundle.version>2.1.13_2</jaxbimpl.bundle.version> <!-- CXF 2.4.1 uses 2.1.13_2 -->
         <slf4j.version>1.5.0</slf4j.version>
 
-        <felix.plugin.version>1.4.0</felix.plugin.version>
+        <felix.plugin.version>2.3.4</felix.plugin.version>
     </properties>
 
     <dependencyManagement>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-assembly-plugin</artifactId>
-                    <version>2.2-beta-2</version>
+                    <version>2.2.1</version>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-surefire-plugin</artifactId>
-                    <version>2.4.2</version>
+                    <version>2.8.1</version>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-compiler-plugin</artifactId>
-                    <version>2.0.2</version>
+                    <version>2.3.2</version>
                     <configuration>
                         <source>1.5</source>
                         <target>1.5</target>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-antrun-plugin</artifactId>
-                    <version>1.1</version>
+                    <version>1.6</version>
                     <dependencies>
                         <dependency>
                             <groupId>ant</groupId>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-resources-plugin</artifactId>
-                    <version>2.2</version>
+                    <version>2.5</version>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-dependency-plugin</artifactId>
-                    <version>2.0</version>
+                    <version>2.2</version>
                 </plugin>
 
                 <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-remote-resources-plugin</artifactId>
-                    <version>1.0</version>
+                    <version>1.2</version>
                     <dependencies>
                         <dependency>
-                            <groupId>org.apache.cxf</groupId>
+                            <groupId>org.apache.cxf.build-utils</groupId>
                             <artifactId>cxf-buildtools</artifactId>
-                            <version>${project.version}</version>
+                            <version>${cxf.build-utils.version}</version>
                         </dependency>
                 </dependencies>
                 <executions>
 
         <plugins>
             <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-remote-resources-plugin</artifactId>
-                <version>1.0</version>
+                <version>1.2</version>
                 <dependencies>
                     <dependency>
-                        <groupId>org.apache.cxf</groupId>
+                        <groupId>org.apache.cxf.build-utils</groupId>
                         <artifactId>cxf-buildtools</artifactId>
-                        <version>${cxf.version}</version>
+                        <version>${cxf.build-utils.version}</version>
                     </dependency>
                 </dependencies>
                 <executions>
diff --git a/pom.xml b/pom.xml
index d3a2bde..51c43e7 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <maven>2.0.9</maven>
     </prerequisites>
 
-    <properties>
-        <jetty.version>6.1.9</jetty.version>
-        <woodstox.bundle.version>3.2.7_1</woodstox.bundle.version> 
-    </properties>
-
     <distributionManagement>
         <repository>
             <id>apache.releases.https</id>
                     <plugin>
                         <inherited>true</inherited>
                         <artifactId>maven-deploy-plugin</artifactId>
-                        <version>2.4</version>
+                        <version>2.6</version>
                         <configuration>
                             <altDeploymentRepository>${deploy.altRepository}</altDeploymentRepository>
                             <updateReleaseInfo>true</updateReleaseInfo>
                     <!-- We want to sign the artifact, the POM, and all attached artifacts -->
                     <plugin>
                         <artifactId>maven-gpg-plugin</artifactId>
-                        <version>1.0-alpha-4</version>
+                        <version>1.3</version>
                         <executions>
                             <execution>
                                 <goals>
index 0affc09..d63f5bc 100644 (file)
@@ -58,7 +58,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the client-side implementation of the Distributed OSGi Discovery sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Activator>org.apache.cxf.dosgi.samples.discovery.consumer.Activator</Bundle-Activator>
             <Import-Package>
               org.apache.cxf.dosgi.samples.discovery, 
index 42110f4..71a9695 100644 (file)
@@ -58,7 +58,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the server-side implementation of the Distributed OSGi Discovery sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Activator>org.apache.cxf.dosgi.samples.discovery.impl.Activator</Bundle-Activator>
             <Import-Package>
               org.apache.cxf.dosgi.samples.discovery,
index c4b666f..c810e74 100644 (file)
@@ -40,7 +40,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the interfaces of the Distributed OSGi Discovery sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package />
             <Export-Package>org.apache.cxf.dosgi.samples.discovery</Export-Package> 
           </instructions>
index 8a00127..52ba69d 100644 (file)
@@ -53,7 +53,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the client-side implementation of the Distributed OSGi with Declarative Services sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Activator>org.apache.cxf.dosgi.samples.ds.consumer.Activator</Bundle-Activator>
             <Import-Package>*</Import-Package> 
             <Private-Package>org.apache.cxf.dosgi.samples.ds.consumer</Private-Package> 
index 38feb65..797ad27 100644 (file)
@@ -47,7 +47,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the server-side implementation of the Distributed OSGi with Declarative Services sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package>org.apache.cxf.dosgi.samples.ds</Import-Package> 
             <Private-Package>org.apache.cxf.dosgi.samples.ds.impl</Private-Package> 
             <Service-Component>OSGI-INF/component.xml</Service-Component>
index db4076a..80756ec 100644 (file)
@@ -40,7 +40,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains the interfaces of the Distributed OSGi with Declarative Services sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package />
             <Export-Package>org.apache.cxf.dosgi.samples.ds</Export-Package> 
           </instructions>
index 43cfcc9..84b3fd6 100644 (file)
@@ -65,7 +65,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Demo Client Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation the Distributed OSGi Greeter Demo Client</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.samples.greeter.client.Activator</Bundle-Activator>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Private-Package>${bundle.private.package}</Private-Package> 
index 9adae4e..6cc1702 100644 (file)
@@ -65,7 +65,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Demo Service Implementation Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation of the CXF Distributed OSGi Greeter Demo Implementation Bundle</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.samples.greeter.impl.Activator</Bundle-Activator>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Private-Package>${bundle.private.package}</Private-Package> 
index cb2a182..8e67170 100644 (file)
@@ -59,7 +59,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Demo Interface Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation of the CXF Distributed OSGi Greeter Demo Interfaces</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Export-Package>${bundle.export.package}</Export-Package> 
                     </instructions>
index c9ba3a2..b0952b0 100644 (file)
@@ -65,7 +65,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Rest Demo Client Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation the Distributed OSGi Greeter Rest Demo Client</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.samples.greeter.client.rest.Activator</Bundle-Activator>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Private-Package>${bundle.private.package}</Private-Package> 
index 8b12fc1..d074800 100644 (file)
@@ -65,7 +65,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Demo Service Rest Implementation Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation of the CXF Distributed OSGi Greeter Rest Demo Implementation Bundle</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Activator>org.apache.cxf.dosgi.samples.greeter.impl.rest.Activator</Bundle-Activator>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Private-Package>${bundle.private.package}</Private-Package> 
index 528946d..b784855 100644 (file)
@@ -64,7 +64,7 @@
                     <instructions>
                         <Bundle-Name>CXF Distributed OSGi Greeter Rest Demo Interface Bundle</Bundle-Name>
                         <Bundle-Description>This bundle contains the implementation of the CXF Distributed OSGi Greeter Rest Demo Interfaces</Bundle-Description>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Import-Package>${bundle.import.package}</Import-Package>
                         <Export-Package>${bundle.export.package}</Export-Package> 
                     </instructions>
index 4ce5d93..48b2657 100644 (file)
@@ -45,9 +45,9 @@
           </exclusions>
       </dependency> 
       <dependency>
-        <groupId>javax.servlet</groupId>
-        <artifactId>servlet-api</artifactId>
-        <version>${servlet.version}</version>
+        <groupId>org.apache.geronimo.specs</groupId>
+        <artifactId>geronimo-servlet_${servlet.version}_spec</artifactId>
+        <version>1.0</version>
       </dependency>
       <dependency>
         <groupId>org.apache.servicemix.specs</groupId>
@@ -65,7 +65,7 @@
           <instructions>
             <Bundle-Name>${pom.name}</Bundle-Name>
             <Bundle-Description>This bundle contains an example Distributed OSGi endpoint that passes requests through a security filter.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Private-Package>org.apache.cxf.dosgi.samples.security</Private-Package>
             <Bundle-Activator>org.apache.cxf.dosgi.samples.security.Activator</Bundle-Activator>
           </instructions>
index 7452b29..7ea861b 100644 (file)
@@ -47,7 +47,7 @@
           <instructions>
             <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Client Bundle</Bundle-Name>
             <Bundle-Description>This bundle contains the client-side implementation of the Distributed OSGi with Spring-DM sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package>org.apache.cxf.dosgi.samples.springdm</Import-Package> 
             <Private-Package>org.apache.cxf.dosgi.samples.springdm.client</Private-Package> 
           </instructions>
index 55c52cb..1b9a619 100644 (file)
@@ -47,7 +47,7 @@
           <instructions>
             <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Implementation Bundle</Bundle-Name>
             <Bundle-Description>This bundle contains the server-side implementation of the Distributed OSGi with Spring-DM sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package>org.apache.cxf.dosgi.samples.springdm</Import-Package> 
             <Private-Package>org.apache.cxf.dosgi.samples.springdm.impl</Private-Package> 
           </instructions>
index cfcb80b..74e475d 100644 (file)
@@ -40,7 +40,7 @@
           <instructions>
             <Bundle-Name>CXF Distributed OSGi Spring-DM Sample Interface Bundle</Bundle-Name>
             <Bundle-Description>This bundle contains the interfaces of the Distributed OSGi with Spring-DM sample.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Import-Package />
             <Export-Package>org.apache.cxf.dosgi.samples.springdm</Export-Package> 
           </instructions>
index cba1dc2..3b4c54a 100644 (file)
@@ -36,7 +36,7 @@
     <topDirectoryLocation>../..</topDirectoryLocation>
     <bundle.import.package>*</bundle.import.package>
     <bundle.export.package>
-      org.apache.cxf.dosgi.systests.common;version="${pom.version}"
+      org.apache.cxf.dosgi.systests.common;version="${project.version}"
     </bundle.export.package>
   </properties>
   
@@ -95,7 +95,7 @@
           <instructions>
             <Bundle-Name>CXF DOSGi System Tests Common Bundle</Bundle-Name>
             <Bundle-Description>This bundle contains common classes used by the system tests.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
             <Import-Package>${bundle.import.package}</Import-Package>
             <Export-Package>${bundle.export.package}</Export-Package> 
index ae13f48..430d179 100644 (file)
@@ -36,7 +36,7 @@
     <topDirectoryLocation>../..</topDirectoryLocation>
     <bundle.import.package>*</bundle.import.package>
     <bundle.export.package>
-      org.apache.cxf.dosgi.systests.common.rest;version="${pom.version}" 
+      org.apache.cxf.dosgi.systests.common.rest;version="${project.version}" 
     </bundle.export.package>
   </properties>
   
@@ -97,7 +97,7 @@
           <instructions>
             <Bundle-Name>CXF DOSGi System Tests Rest Common Bundle</Bundle-Name>
             <Bundle-Description>This bundle contains common classes used by the system rest tests.</Bundle-Description>
-            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+            <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
             <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
             <Import-Package>${bundle.import.package}</Import-Package>
             <Export-Package>${bundle.export.package}</Export-Package> 
index 73e6f9b..cd9e202 100644 (file)
 
     <dependencies>
         <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <version>${osgi.version}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
             <groupId>org.ops4j.pax.swissbox</groupId>
             <artifactId>pax-swissbox-tinybundles</artifactId>
-            <version>1.2.0</version>
+            <version>1.3.1</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-impl</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-interface</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
 
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
                 <configuration>
+                    <excludeDependencies>true</excludeDependencies>
                     <instructions>
                         <Bundle-Name>Bundle containing common code for the CX DOSGi system tests</Bundle-Name>
-                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
+                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                         <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
                         <!-- The TinyBundles are only used during the 'configure' stage and are therefore not
                              needed at runtime.
index 4179879..dadc41e 100644 (file)
@@ -97,14 +97,24 @@ public abstract class AbstractTestImportService {
             ServiceReference ref = waitService(String.class.getName(), "(testResult=test1)");
             Assert.assertEquals("HiOSGi", ref.getProperty("result"));
         } finally {
-            server.stop(); 
+            if(server != null) {
+                server.stop();
+            } 
             Thread.currentThread().setContextClassLoader(cl);
         }
     }
     
     private ServiceReference waitService(String cls, String filter) throws Exception {        
         ServiceReference[] refs = null;
-        for (int i=0; i < 20; i++) {
+        
+        String timeoutStr = System.getProperty("org.apache.cxf.dosgi.test.serviceWaitTimeout", "20");
+        
+        int timeout = Integer.valueOf(timeoutStr);
+        if(timeout <= 0) {
+            timeout = Integer.MAX_VALUE;
+        }
+        
+        for (int i=0; i < timeout; i++) {
             refs = getBundleContext().getServiceReferences(cls, filter);
             if (refs != null && refs.length > 0) {
                 return refs[0];
index 95385e4..88f6a56 100644 (file)
@@ -37,6 +37,7 @@ public class MyServiceTracker extends ServiceTracker {
     public Object addingService(ServiceReference reference) {
         Object svc = super.addingService(reference);
         if (svc instanceof GreeterService) {
+            System.out.println("[client] Got a GreeterService...");
             invokeGreeter((GreeterService) svc);
         }
         return svc;
@@ -47,16 +48,23 @@ public class MyServiceTracker extends ServiceTracker {
     }
 
     private void invokeGreeter(GreeterService svc) {
-        Map<GreetingPhrase, String> result = svc.greetMe("OSGi");
-        for (Map.Entry<GreetingPhrase, String> e : result.entrySet()) {
-            GreetingPhrase key = e.getKey();
-            invocationResult.append(key.getPhrase());
-            invocationResult.append(e.getValue());
+        try {
+            Map<GreetingPhrase, String> result = svc.greetMe("OSGi");
+            for (Map.Entry<GreetingPhrase, String> e : result.entrySet()) {
+                GreetingPhrase key = e.getKey();
+                invocationResult.append(key.getPhrase());
+                invocationResult.append(e.getValue());
+            }
+
+            Hashtable<String, Object> props = new Hashtable<String, Object>();
+            props.put("result", invocationResult.toString());
+            props.put("testResult", "test1");
+
+            System.out.println("[client] Successfully invoked remote service. Registering test response service...");
+            context.registerService(String.class.getName(), "test1", props);
+        } catch(Exception x) {
+            System.err.println("[client] Error during remote service invocation:");
+            x.printStackTrace(System.err);
         }
-        
-        Hashtable<String, Object> props = new Hashtable<String, Object>();
-        props.put("result", invocationResult.toString());
-        props.put("testResult", "test1");
-        context.registerService(String.class.getName(), "test1", props);
     }    
 }
\ No newline at end of file
index c42c4cb..a99d91b 100644 (file)
@@ -33,6 +33,7 @@ public class StartServiceTracker extends ServiceTracker {
 
     @Override
     public Object addingService(ServiceReference reference) {
+        System.out.println("Test object available, so starting the service client tracker...");
         tracker.open();
         return super.addingService(reference);
     }
index c2fc73b..f5adec1 100644 (file)
     <packaging>jar</packaging>
 
     <name>Distributed OSGi System Tests Multi-Bundle</name>
+    
+    <properties>
+        <!-- this is temporary! -->
+        <!--
+        <maven.test.skip>true</maven.test.skip>
+        -->
+    </properties>
 
     <dependencies>
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-junit</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-container-default</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.swissbox</groupId>
             <artifactId>pax-swissbox-tinybundles</artifactId>
-            <version>1.2.0</version>
+            <version>1.3.1</version>
         </dependency>
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>4.1.0</version>
+            <version>${osgi.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.compendium</artifactId>
-            <version>4.1.0</version>
+            <version>${osgi.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.systests</groupId>
             <artifactId>cxf-dosgi-ri-systests2-common</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-server</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>           
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-impl</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-interface</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
 
         <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
-            <version>1.1</version>
+            <version>1.1.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-jcl</artifactId>
+            <version>1.5.10</version>
             <scope>test</scope>
         </dependency>
         <dependency>
                     </options>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemPropertyVariables>
+                        <!--
+                        <org.apache.cxf.dosgi.test.debug.port>5005</org.apache.cxf.dosgi.test.debug.port>
+                        <org.apache.cxf.dosgi.test.serviceWaitTimeout>180</org.apache.cxf.dosgi.test.serviceWaitTimeout>
+                        -->
+                        <java.util.logging.config.file>${project.build.directory}/test-classes/logging.properties</java.util.logging.config.file>
+                    </systemPropertyVariables>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 </project>
index 64470f8..319b21e 100644 (file)
@@ -44,7 +44,7 @@ public class MultiBundleTools {
     }
     
     private static int getDistroBundles(File mdRoot, String pomVersion, Map<Integer, String> bundles, boolean discovery) throws Exception {
-        File distroDir = new File(mdRoot, "target/cxf-dosgi-ri-multibundle-distribution-" + pomVersion + ".dir");
+        File distroDir = new File(mdRoot, "target/cxf-dosgi-ri-multibundle-distribution-" + pomVersion + "-dir");
         Properties p = new Properties();
         File confDir = new File(distroDir, "apache-cxf-dosgi-ri-" + pomVersion + "/conf");
         p.load(new FileInputStream(new File(confDir, "felix.config.properties.append")));
index 45d08f1..9612c74 100644 (file)
@@ -29,6 +29,7 @@ import org.junit.runner.RunWith;
 import org.ops4j.pax.exam.CoreOptions;
 import org.ops4j.pax.exam.Inject;
 import org.ops4j.pax.exam.Option;
+import org.ops4j.pax.exam.container.def.PaxRunnerOptions;
 import org.ops4j.pax.exam.junit.Configuration;
 import org.ops4j.pax.exam.junit.JUnit4TestRunner;
 import org.osgi.framework.BundleContext;
@@ -58,11 +59,19 @@ public class TestImportService extends AbstractTestImportService {
         opts.add(CoreOptions.mavenBundle().groupId("org.apache.cxf.dosgi.systests").artifactId("cxf-dosgi-ri-systests2-common").versionAsInProject().startLevel(++startLevel));
         opts.add(CoreOptions.provision(getTestClientBundle()));
         opts.add(CoreOptions.systemProperty("org.osgi.framework.startlevel.beginning").value("" + startLevel));
-        
+
+        opts.add(CoreOptions.systemProperty("java.util.logging.config.file").value(System.getProperty("java.util.logging.config.file")));
+
         // For debugging...
-        // opts.add(PaxRunnerOptions.vmOption( "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005" ));
-        // opts.add(CoreOptions.waitForFrameworkStartup());
+        final String debugPort = System.getProperty("org.apache.cxf.dosgi.test.debug.port");
+        if(debugPort != null) {
+            opts.add(PaxRunnerOptions.vmOption( "-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=" + debugPort ));
+            opts.add(CoreOptions.waitForFrameworkStartup());
+        }
         // end debugging section.
+
+        // service wait timeout (this should also be increased for debugging)...
+        opts.add(CoreOptions.systemProperty("org.apache.cxf.dosgi.test.serviceWaitTimeout").value(System.getProperty("org.apache.cxf.dosgi.test.serviceWaitTimeout", "20")));
         
         return CoreOptions.options(opts.toArray(new Option[opts.size()]));
     }
index 37c2717..c29ad54 100644 (file)
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-junit</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.exam</groupId>
             <artifactId>pax-exam-container-default</artifactId>
-            <version>1.2.0</version>
+            <version>1.2.4</version>
         </dependency>
         <dependency>
             <groupId>org.ops4j.pax.swissbox</groupId>
             <artifactId>pax-swissbox-tinybundles</artifactId>
-            <version>1.2.0</version>
+            <version>1.3.1</version>
         </dependency>
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.core</artifactId>
-            <version>4.1.0</version>
+            <version>${osgi.version}</version>
         </dependency>
 
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.compendium</artifactId>
-            <version>4.1.0</version>
+            <version>${osgi.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.systests</groupId>
             <artifactId>cxf-dosgi-ri-systests2-common</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-singlebundle-distribution</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>           
             <exclusions>
                 <exclusion>
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi</groupId>
             <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-server</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>           
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-impl</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf.dosgi.samples</groupId>
             <artifactId>cxf-dosgi-ri-samples-greeter-interface</artifactId>
-            <version>${pom.version}</version>
+            <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
 
         <dependency>
             <groupId>commons-logging</groupId>
             <artifactId>commons-logging</artifactId>
-            <version>1.1</version>
+            <version>1.1.1</version>
             <scope>test</scope>
         </dependency>
         <dependency>