diff --git a/assemblies/features/base/pom.xml b/assemblies/features/base/pom.xml index bcfbd98..e81f3ab 100644 --- a/assemblies/features/base/pom.xml +++ b/assemblies/features/base/pom.xml @@ -37,6 +37,59 @@ + + javax.xml.bind + jaxb-api + 2.3.0 + + + javax.activation + activation + 1.1.1 + + + com.sun.xml.bind + jaxb-core + ${jaxb.version} + + + org.glassfish.jaxb + jaxb-core + + + org.glassfish.jaxb + txw2 + + + + + com.sun.xml.bind + jaxb-impl + ${jaxb.version} + + + javax.xml.bind + jsr173_api + + + javax.xml + jsr173 + + + javax.activation + activation + + + javax.xml.bind + activation + + + javax.xml.bind + jaxb-api + + + + org.apache.karaf.specs org.apache.karaf.specs.locator @@ -135,25 +188,26 @@ - org.apache.karaf.specs - org.apache.karaf.specs.locator - target/classes/resources/lib/endorsed + javax.xml.bind + jaxb-api + target/classes/resources/lib/boot - org.apache.karaf.specs - org.apache.karaf.specs.java.xml - target/classes/resources/lib/endorsed + javax.activation + activation + target/classes/resources/lib/boot - org.apache.karaf.specs - org.apache.karaf.specs.java.xml.ws - target/classes/resources/lib/endorsed + com.sun.xml.bind + jaxb-core + target/classes/resources/lib/boot - org.apache.karaf.specs - org.apache.karaf.specs.activator + com.sun.xml.bind + jaxb-impl target/classes/resources/lib/boot + org.apache.karaf org.apache.karaf.main diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf index 36c0ca6..9cea2aa 100644 --- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf +++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf @@ -273,10 +273,6 @@ run() { if [ "${ROOT_INSTANCE_RUNNING}" = "false" ] || [ "${CHECK_ROOT_INSTANCE_RUNNING}" = "false" ] ; then if [ "${VERSION}" -gt "8" ]; then ${KARAF_EXEC} "${JAVA}" ${JAVA_OPTS} \ - --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,java.xml.ws,ALL-UNNAMED \ - --patch-module java.base=lib/endorsed/org.apache.karaf.specs.locator-@@project.version@@.jar \ - --patch-module java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-@@project.version@@.jar \ - --patch-module java.xml.ws=lib/endorsed/org.apache.karaf.specs.java.xml.ws-@@project.version@@.jar \ --add-opens java.base/java.security=ALL-UNNAMED \ --add-opens java.base/java.net=ALL-UNNAMED \ --add-opens java.base/java.lang=ALL-UNNAMED \ @@ -289,7 +285,6 @@ run() { --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime=ALL-UNNAMED \ --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED \ --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED \ - --add-modules java.xml.ws.annotation,java.corba,java.transaction,java.xml.bind,java.xml.ws \ -Dkaraf.instances="${KARAF_HOME}/instances" \ -Dkaraf.home="${KARAF_HOME}" \ -Dkaraf.base="${KARAF_BASE}" \ diff --git a/assemblies/features/base/src/main/filtered-resources/resources/etc/config.properties b/assemblies/features/base/src/main/filtered-resources/resources/etc/config.properties index 1426918..7e8cbeb 100644 --- a/assemblies/features/base/src/main/filtered-resources/resources/etc/config.properties +++ b/assemblies/features/base/src/main/filtered-resources/resources/etc/config.properties @@ -122,6 +122,12 @@ equinox-capabilities= \ osgi.service;objectClass:List=org.eclipse.osgi.service.security.TrustEngine;osgi.signedcontent.trust.engine=org.eclipse.osgi, \ osgi.service;objectClass:List=org.eclipse.osgi.service.urlconversion.URLConverter;protocol:List="bundleentry,bundleresource" +eecap-11= osgi.ee; osgi.ee="OSGi/Minimum"; version:List="1.0,1.1,1.2", \ + osgi.ee; osgi.ee="JavaSE"; version:List="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9.0,10.0,11.0", \ + osgi.ee; osgi.ee="JRE"; version:List="1.0,1.1", \ + osgi.ee; osgi.ee="JavaSE/compact1"; version:List="1.8,9.0,10.0,11.0", \ + osgi.ee; osgi.ee="JavaSE/compact2"; version:List="1.8,9.0,10.0,11.0", \ + osgi.ee; osgi.ee="JavaSE/compact3"; version:List="1.8,9.0,10.0,11.0" eecap-10= osgi.ee; osgi.ee="OSGi/Minimum"; version:List="1.0,1.1,1.2", \ osgi.ee; osgi.ee="JavaSE"; version:List="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9.0,10.0", \ osgi.ee; osgi.ee="JRE"; version:List="1.0,1.1", \ diff --git a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties index d3d9898..a7ac0c5 100644 --- a/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties +++ b/assemblies/features/base/src/main/filtered-resources/resources/etc/jre.properties @@ -293,14 +293,6 @@ jre-1.7= \ javax.xml.transform.stax, \ javax.xml.transform.stream, \ javax.xml.validation, \ - javax.xml.ws;version="2.2", \ - javax.xml.ws.handler;version="2.2", \ - javax.xml.ws.handler.soap;version="2.2", \ - javax.xml.ws.http;version="2.2", \ - javax.xml.ws.soap;version="2.2", \ - javax.xml.ws.spi;version="2.2", \ - javax.xml.ws.wsaddressing;version="2.2", \ - javax.xml.ws.spi.http;version="2.2", \ javax.xml.xpath, \ org.ietf.jgss, \ org.omg.CORBA, \ @@ -550,7 +542,6 @@ jre-9= \ javax.accessibility, \ javax.activation;version="1.1", \ javax.activity, \ - javax.annotation;version="1.0", \ javax.annotation.processing;version="1.0", \ javax.crypto, \ javax.crypto.interfaces, \ @@ -562,8 +553,6 @@ jre-9= \ javax.imageio.plugins.jpeg, \ javax.imageio.spi, \ javax.imageio.stream, \ - javax.jws, \ - javax.jws.soap, \ javax.lang.model, \ javax.lang.model.element, \ javax.lang.model.type, \ @@ -643,7 +632,6 @@ jre-9= \ javax.xml.datatype, \ javax.xml.namespace, \ javax.xml.parsers, \ - javax.xml.soap;version="1.3", \ javax.xml.stream;version="1.2", \ javax.xml.stream.events;version="1.2", \ javax.xml.stream.util;version="1.2", \ @@ -653,14 +641,6 @@ jre-9= \ javax.xml.transform.stax, \ javax.xml.transform.stream, \ javax.xml.validation, \ - javax.xml.ws;version="2.2", \ - javax.xml.ws.handler;version="2.2", \ - javax.xml.ws.handler.soap;version="2.2", \ - javax.xml.ws.http;version="2.2", \ - javax.xml.ws.soap;version="2.2", \ - javax.xml.ws.spi;version="2.2", \ - javax.xml.ws.wsaddressing;version="2.2", \ - javax.xml.ws.spi.http;version="2.2", \ javax.xml.xpath, \ javafx.animation, \ javafx.application, \ @@ -744,3 +724,4 @@ jre-9= \ org.xml.sax.helpers jre-10 = ${jre-9} +jre-11 = ${jre-10} diff --git a/assemblies/features/framework/src/main/feature/feature.xml b/assemblies/features/framework/src/main/feature/feature.xml index ffd7b33..134285e 100644 --- a/assemblies/features/framework/src/main/feature/feature.xml +++ b/assemblies/features/framework/src/main/feature/feature.xml @@ -36,6 +36,9 @@ mvn:org.apache.felix/org.apache.felix.fileinstall/${felix.fileinstall.version} mvn:org.apache.karaf.features/org.apache.karaf.features.core/${project.version} + mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.5.0 + mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.11_1 + mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.5.0 + + + java9-plus + + 3.1.0 + --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-modules java.activation,java.xml.ws.annotation,java.corba,java.transaction,java.xml.bind,java.xml.ws -Djava.io.tmpdir=${project.build.directory} + + + + javax.xml.bind + jaxb-api + ${jaxb.version} + + + javax.activation + activation + 1.1.1 + + + com.sun.xml.bind + jaxb-core + ${jaxb.version} + + + org.glassfish.jaxb + jaxb-core + + + org.glassfish.jaxb + txw2 + + + + + com.sun.xml.bind + jaxb-impl + ${jaxb.version} + + + javax.xml.bind + jsr173_api + + + javax.xml + jsr173 + + + javax.activation + activation + + + javax.xml.bind + activation + + + javax.xml.bind + jaxb-api + + + + + + [9,) + + + diff --git a/service/guard/src/test/java/org/apache/karaf/service/guard/impl/GuardProxyCatalogTest.java b/service/guard/src/test/java/org/apache/karaf/service/guard/impl/GuardProxyCatalogTest.java index 1385ac4..7538638 100644 --- a/service/guard/src/test/java/org/apache/karaf/service/guard/impl/GuardProxyCatalogTest.java +++ b/service/guard/src/test/java/org/apache/karaf/service/guard/impl/GuardProxyCatalogTest.java @@ -1308,7 +1308,12 @@ public class GuardProxyCatalogTest { // Test that the actual proxy invokes the original service... ServiceFactory proxyServiceSF = (ServiceFactory) serviceMap.get(proxySR); - Object proxyService = proxyServiceSF.getService(clientBundle, null); + Object proxyService = null; + try { + proxyService = proxyServiceSF.getService(clientBundle, null); + } catch (Exception ex) { + ex.printStackTrace(); + } assertNotSame("The proxy should not be the same object as the original service", testService, proxyService); return proxyService; diff --git a/tooling/karaf-maven-plugin/pom.xml b/tooling/karaf-maven-plugin/pom.xml index 2872122..3cba2a6 100644 --- a/tooling/karaf-maven-plugin/pom.xml +++ b/tooling/karaf-maven-plugin/pom.xml @@ -392,12 +392,31 @@ - java9 + java9-plus 3.1.0 - --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-modules java.activation,java.xml.ws.annotation,java.corba,java.transaction,java.xml.bind,java.xml.ws -Djava.io.tmpdir=${project.build.directory} + --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.xml.bind/com.sun.xml.internal.bind.v2.runtime=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED -Djava.io.tmpdir=${project.build.directory} + + org.easymock + easymock + test + + + org.ow2.asm + asm + + + + + + + + org.ow2.asm + asm + 6.2-SNAPSHOT + javax.xml.bind jaxb-api @@ -452,7 +471,7 @@ - 9 + [9,)