Hi Ivy team,
We are using Ivy engine version 8.0.8.2008031433 and facing problem with class not found.
Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory cannot be found by ch.ivyteam.ivy.security_8.0.8.202008031231
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:514)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:425)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at javax.xml.bind.ServiceLoaderUtil.nullSafeLoadClass(ServiceLoaderUtil.java:92)
at javax.xml.bind.ServiceLoaderUtil.safeLoadClass(ServiceLoaderUtil.java:125)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:230)
... 66 more
Currently our engine is deployed 3 modules. Here is the part of .classpath files of those modules:
Module 1:
<classpathentry exported="true" kind="con" path="IVY_CONTAINER"/>
<classpathentry kind="con" path="WEBAPP_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="lib" path="lib/provided/lombok.jar"/>
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="classes"/>
Module 2:
<classpathentry exported="true" kind="con" path="IVY_CONTAINER"/>
<classpathentry kind="con" path="WEBAPP_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry exported="true" kind="con" path="WS_CALL_AXIS2_CONTAINER"/>
<classpathentry kind="lib" path="lib/provided/lombok.jar"/>
<classpathentry exported="true" kind="lib" path="lib/compile/tika-core.jar"/>
<classpathentry exported="true" kind="lib" path="lib/compile/freemarker.jar"/>
<classpathentry exported="true" kind="lib" path="lib/compile/java-jwt.jar"/>
<classpathentry kind="lib" path="lib/provided/jersey-common.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
<classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/>
<classpathentry exported="true" kind="lib" path="lib/compile/commons-validator.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/DocFactory"/>
<classpathentry kind="output" path="classes"/>
Module 3:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="IVY_CONTAINER"/>
<classpathentry kind="con" path="WEBAPP_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="WS_CALL_AXIS2_CONTAINER"/>
<classpathentry kind="lib" path="lib/provided/lombok.jar"/>
<classpathentry kind="lib" path="lib/compile/cloning.jar"/>
<classpathentry kind="lib" path="lib_ws/client/wsClient_16A2E4887C982FB2.jar"/>
<classpathentry kind="lib" path="lib/compile/objenesis.jar"/>
<classpathentry kind="lib" path="lib/compile/jersey-client.jar"/>
<classpathentry kind="lib" path="lib/compile/mapstruct.jar"/>
<classpathentry kind="output" path="classes"/>
Do we have any ideal to resolved this issue?
Please let me know if I need to provided more info.
Best Regards,
Anh Pham