-
1. Re: ClassNotFoundException / NoClassDefError com/sun/org/apache/xerces/internal/impl/dv/util/Base64 in WildFly
claudio4j May 11, 2017 9:17 AM (in response to valsaraj007)Hi Valsaraj, can you provide the full stacktrace ? Which Wildfly version ?
There is no jar in wildfly that provides that class. Which class or library depends on the mentioned Base64 class ?
-
2. Re: ClassNotFoundException / NoClassDefError com/sun/org/apache/xerces/internal/impl/dv/util/Base64 in WildFly
valsaraj007 May 11, 2017 10:25 AM (in response to claudio4j)Hi Claudio,
It looks for the com/sun/org/apache/xerces/internal/impl/dv/util/Base64 in jdk and shows this error. I wonder how to resolve this in WidFly since the class itself in jdk. The error exists in wildfly 8 and 10. It works fine in JBoss-4.2.
-
3. Re: ClassNotFoundException / NoClassDefError com/sun/org/apache/xerces/internal/impl/dv/util/Base64 in WildFly
claudio4j May 11, 2017 12:31 PM (in response to valsaraj007)Ah, com/sun/org/apache/xerces/internal/impl/dv/util/Base64 is from JDK. This package is not exposed as module, so you should create a module for it, see modules/system/layers/base/sun/jdk/main/module.xml as an example.
-
4. Re: ClassNotFoundException / NoClassDefError com/sun/org/apache/xerces/internal/impl/dv/util/Base64 in WildFly
valsaraj007 May 22, 2017 11:28 AM (in response to claudio4j)Since com/sun/org/apache/xerces/internal/impl/dv/util/Base64 is internal and proprietary and may be removed and probably, used different class which has no class loading issue. Applied the solution mentioned here: how to avoid warning for the Base 64?
For Java 8, Base64 Encoding in Java