Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2715

DefaultBeanArchiveScanner trys to detect JNLPClassLoader of Iced Tea in the wrong package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.0.1.Final
    • 2.4.x
    • None
    • None

      DefaultBeanArchiveScanner
                      // 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]

              manovotn Matěj Novotný
              m-neuling Mattias Neuling (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: