More info:

If I specify:
        
        <javase>1.8</javase>

In the karaf-maven-plugin configuration, then I get error:

        missing requirement [xxx] osgi.ee; 
filter:="(&(osgi.ee=JavaSE)(version=13))"

And, if I specify:

        <javase>13</javase>      or
        <javase>1.13</javase>

Then I get error:

        missing requirement [xxx] osgi.wiring.package; 
filter:="(osgi.wiring.package=javax.xml.parsers)”

Any hint will be appreciated.
Best regards,
Alex soto




> On Feb 20, 2020, at 9:44 AM, Alex Soto <alex.s...@envieta.com> wrote:
> 
> Anybody’s done migration of Karaf app to Java 13?  (I said 11 before, but it 
> is actually 13)
> 
> Some of the errors I am getting from karaf-maven-plugin:4.2.8:verify:
> 
> 
> [WARNING] Unable to resolve root: missing requirement [root] osgi.identity; 
> osgi.identity=framework; type=karaf.feature; 
> filter:="(&(osgi.identity=framework)(type=karaf.feature))" [caused by: Unable 
> to resolve framework/4.2.8: missing requirement [framework/4.2.8] 
> osgi.identity; osgi.identity=org.ops4j.pax.logging.pax-logging-api; 
> type=osgi.bundle; version="[1.11.4,1.11.4]"; resolution:=mandatory [caused 
> by: Unable to resolve org.ops4j.pax.logging.pax-logging-api/1.11.4: missing 
> requirement [org.ops4j.pax.logging.pax-logging-api/1.11.4] 
> osgi.wiring.package; filter:="(osgi.wiring.package=javax.xml.parsers)"]]
> 
> 
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 
>> On Feb 19, 2020, at 1:26 PM, Alex Soto <alex.s...@envieta.com 
>> <mailto:alex.s...@envieta.com>> wrote:
>> 
>> Hello,
>> 
>> I am migrating to Java 11 (from Java 8).  Everything builds successfully, 
>> but running Pax-Exam integration tests produces this error:
>> 
>> 
>> WARNING: package org.apache.karaf.specs.locator not in java.base
>> ERROR: Error parsing system bundle export statement: 
>> org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework;version="1.8",org.osgi.framework.dto;version="1.8";uses:="org.osgi.dto",org.osgi.framework.hooks.bundle;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.resolver;version="1.0";uses:="org.osgi.framework.wiring",org.osgi.framework.hooks.service;version="1.1";uses:="org.osgi.framework",org.osgi.framework.hooks.weaving;version="1.1";uses:="org.osgi.framework.wiring",org.osgi.framework.launch;version="1.2";uses:="org.osgi.framework",org.osgi.framework.namespace;version="1.1";uses:="org.osgi.resource",org.osgi.framework.startlevel;version="1.0";uses:="org.osgi.framework",org.osgi.framework.startlevel.dto;version="1.0";uses:="org.osgi.dto",org.osgi.framework.wiring;version="1.2";uses:="org.osgi.framework,org.osgi.resource",org.osgi.framework.wiring.dto;version="1.2";uses:="org.osgi.dto,org.osgi.resource.dto",org.osgi.service.co
>>  
>> <http://org.osgi.service.co/>ndpermadmin;version="1.1.1";uses:="org.osgi.framework,org.osgi.service.permissionadmin",org.osgi.service.packageadmin;version="1.2";uses:="org.osgi.framework",org.osgi.service.permissionadmin;version="1.2",org.osgi.service.resolver;version="1.0";uses:="org.osgi.resource",org.osgi.service.startlevel;version="1.1";uses:="org.osgi.framework",org.osgi.service.url;version="1.0",org.osgi.util.tracker;version="1.5.1";uses:="org.osgi.framework",org.apache.karaf.version;version="4.2.8",org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.2.8",org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.2.8",org.apache.karaf.info
>>  <http://he.karaf.info/>;version="4.2.8",,org.apache.karaf.branding, 
>> sun.misc, com.sun.jmx.remote.protocol, com.sun.jmx.remote.protocol.jmxmp, 
>> org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version=4.2.8,
>>  
>> org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version=4.2.8,
>>  org.apache.karaf.diagnostic.core;uses:=org.osgi.framework;version=4.2.8, 
>> org.apache.karaf.diagnostic.core.common;uses:=org.apache.karaf.diagnostic.core;version=4.2.8
>> org.osgi.framework.BundleException: Exported package names cannot be zero 
>> length.
>>      at 
>> org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:876)
>>      at 
>> org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:215)
>>      at 
>> org.apache.felix.framework.ExtensionManager.<init>(ExtensionManager.java:261)
>>      at org.apache.felix.framework.Felix.<init>(Felix.java:429)
>>      at 
>> org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
>>      at org.apache.karaf.main.Main.launch(Main.java:256)
>>      at org.apache.karaf.main.Main.main(Main.java:178)
>> 
>> 
>> I understand there is an empty package export (two consecutive commas in red 
>> color above),  but I don’t know where it is coming from. Any ideas?
>> 
>> Best regards,
>> Alex soto
>> 
>> 
>> 
>> 
> 

Reply via email to