-
1. Re: Is it possible to make a dynamic module have a higher class loader precedence over a static one?
john.ho.sv Mar 9, 2017 10:09 PM (in response to john.ho.sv)I tried this version of the jboss-deployment-structure.xml file but still got the error "java.lang.NoSuchMethodError: io.netty.util.internal.PlatformDependent.getByte([BI)B"
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="javax.api"/>
<module name="sun.jdk"/>
<module name="org.javassist" optional="true"/>
</dependencies>
<resources>
<resource-root path="WEB-INF/lib/netty-all-4.1.8.Final.jar" />
</resources>
<local-last value="false" />
</deployment>
</jboss-deployment-structure>
-
2. Re: Is it possible to make a dynamic module have a higher class loader precedence over a static one?
john.ho.sv Mar 9, 2017 10:16 PM (in response to john.ho.sv)I also tried this version of the jboss-deployment-structure.xml file but still got the error "java.lang.NoSuchMethodError: io.netty.util.internal.PlatformDependent.getByte([BI)B" for the io.netty.util.AsciiString.byteAt(byte[], int) call which doesn't exist in netty-4.0 but in netty-4.1.
<jboss-deployment-structure>
<module name="deployment.io.netty" >
<dependencies>
<module name="javax.api"/>
<module name="sun.jdk"/>
<module name="org.javassist" optional="true"/>
</dependencies>
<resources>
<resource-root path="WEB-INF/lib/netty-all-4.1.8.Final.jar" />
</resources>
</module>
</jboss-deployment-structure>
-
3. Re: Is it possible to make a dynamic module have a higher class loader precedence over a static one?
john.ho.sv Mar 10, 2017 1:52 PM (in response to john.ho.sv)Netty is not one of the “Implicit Module Dependencies”. Adding the exclusion to jboss-deployment-structure.xml (below) doesn't work because the classes in the old version netty-4.0.32.Final.jar (instead of the new netty-4.1.8.Final.jar) are used when my test code was executed in WildFly 10.0.0.Final.
<!-- Exclusions allow you to prevent the server from automatically adding some dependencies -->
<
exclusions
>
<
module
name
=
"io.netty"
/>
</
exclusions
>
Are there any known issues? I appreciate any comments/feedback.
-
4. Re: Is it possible to make a dynamic module have a higher class loader precedence over a static one?
john.ho.sv Mar 10, 2017 9:16 PM (in response to john.ho.sv)Found the issue. I use one of the modules that depends on netty. That makes the netty jar one of the implicit dependencies. I can't do it in this case.