Hi Bob,

Better Java 9/10/11 support is planned for Karaf 4.2.1: we did a lot of
changes and dependency updates to have a better support.

Regards
JB

On 16/08/2018 22:48, Bob Paulin wrote:
> Hi,
> 
> I am running Apache Karaf 4.2.0 + Apache Camel 2.22.0 on Java 10.  At
> startup I was getting the following error:
> 
> Caused by: java.lang.IllegalAccessError: class
> javax.xml.stream.$FactoryFinder (in module java.xml) cannot access class
> java.util.logging.Logger (in module java.logging) because module
> java.xml does not read module java.logging
> 
> I was able to fix this by adding:
> 
> --add-reads java.xml=java.logging,ALL-UNNAMED ^
> 
> to the karaf script.
> 
> 
> I was also able to get it to work by setting the env var
> 
> "KARAF_OPTS=--add-reads java.xml=java.logging,ALL-UNNAMED ^"
> 
> Adding the option to the KARAF_OPTS seems easier enough to support but
> I'm wondering if something as common as logging would be better off
> added to the karaf script.   Or perhaps a separate ENV VAR for Java
> Module System options would be better. Thoughts?
> 
> - Bob
> 
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to