-
Bug
-
Resolution: Done
-
Major
-
2.4.x
-
None
-
None
// Detecting if running inside icedtea-web JNLP runtime if (jnlpClClass.getName().equals("net.sourceforge.jnlp.runtime.JNLPClassLoader")) { // Try to get field net.sourceforge.jnlp.runtime.JNLPClassLoader#tracker from icedtea-web 1.5 Field f = jnlpClassLoader.getClass().getDeclaredField("tracker"); f.setAccessible(true);
In the latest version of Iced Tea the class JNLPClassLoader is located in the child package `classloader`.
Therefore the exception as follows occurs in an Iced Tea environment.
java.lang.NoSuchMethodException: net.sourceforge.jnlp.runtime.classloader.JNLPClassLoader.getJarFile(java.net.URL)
at java.lang.Class.newNoSuchMethodException(Class.java:561) ~[?:1.8.0_292]
at java.lang.Class.throwExceptionOrReturnNull(Class.java:1238) ~[?:1.8.0_292]
at java.lang.Class.getMethodHelper(Class.java:1324) ~[?:1.8.0_292]
at java.lang.Class.getMethod(Class.java:1230) ~[?:1.8.0_292]
at org.jboss.weld.environment.deployment.discovery.DefaultBeanArchiveScanner.getBeanArchiveReferenceForJar(DefaultBeanArchiveScanner.java:153) [weld-se-2.4.2.SP1.jar:2.4.2.SP1]