PureConnect

 View Only
Discussion Thread View
  • 1.  PSDK Support on Java 11

    Posted 01-03-2023 12:46

    We will be soon reaching an end of life state for java8 for our microservices. Our microservices integrated with platform sdk and connecting to configServer using ConfigProtocol are unable to run on java 11. Can you please suggest which psdk version for running on Java 11, and any other breaking changes.

    Example of exception is below.

    Caused by: java.lang.RuntimeException: Exception loading configuration schema
    at com.genesyslab.platform.configuration.protocol.metadata.CfgMetadata.(CfgMetadata.java:153)
    ... 67 common frames omitted
    Caused by: com.genesyslab.platform.commons.protocol.ProtocolException: Exception initializing JAXBContext
    at com.genesyslab.platform.configuration.protocol.metadata.CfgMetadata.bindCfglibschema(CfgMetadata.java:932)
    at com.genesyslab.platform.configuration.protocol.metadata.CfgMetadata.(CfgMetadata.java:147)
    ... 67 common frames omitted
    Caused by: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:278)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:391)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662)
    at com.genesyslab.platform.configuration.protocol.metadata.CfgMetadata.bindCfglibschema(CfgMetadata.java:930)
    ... 68 common frames omitted
    Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
    at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:72)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1220)
    at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:122)
    at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:155)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:276)

    We have tried adding the following dependencies to address:

    [javax.xml.ws](https://javax.xml.ws/) jaxws-api 2.3.1 [com.sun.xml.ws](https://com.sun.xml.ws/) jaxws-ri 2.3.2 pom

    But this is not fixing the issue.


    #ArchitectureandDesign
    #Implementation


Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources