4 Replies Latest reply on Oct 5, 2013 5:18 PM by WesStupar

    Class not found exception loading applet

    WesStupar

      Why will this applet not load?

      Platform: Windows XP SP3, Firefox 23.0.1, Java Plug-in 10.25.2.17, JRE version 1.7.0_25-b17, Apache24
      1. TestPlugin.jar:
      Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.4 Created-By: 1.7.0_21-b11 (Oracle Corporation)
      Class-Path: X-COMMENT: Main-Class will be added automatically by build
      Main-Class: testplugin.TestPlugin
      2. test.htm:
      Hello to all...
      This is followed by an applet that contains:
      code=testplugin.TestPlugin
      archive="TestPlugin.jar"
      width=400 height=50
      3. Error indications after authentication:
      Popup: Application Error; General Exception; Name: testplugin.TestPlugin; runtime Exception: java.lang.reflect.InvocationTargetException
      4. Page on Browser:
      Hello to all...(followed by the applet rectangle containing "Error. Click for details")
      5. After click: Popup: Application Error; RuntimeException: java.lang.reflect.InvocationTargetException
      6. After removing the package callout in test.htm (testplugin.) 4., above, is repeated. But 5., above, now shows "Application Error; ClassNotFoundException, TestPlugin"
      7. Java Console Output:

      basic: PluginMain.unregisterApplet: 4 from mananger sun.plugin2.applet.Applet2Manager@ab8b3b
      basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@13b4ce4 basic: Plugin2ClassLoader.addURL parent called for
      http://192.168.1.70/TestPlugin.jar
      network: Cache entry not found [url:
      http://192.168.1.70/TestPlugin.class, version: null]
      network: Connecting
      http://192.168.1.70/TestPlugin.class with proxy=DIRECT
      network: Connecting
      http://192.168.1.70:80/ with proxy=DIRECT
      network: Cache entry not found [url:
      http://192.168.1.70/TestPlugin.class, version: null]
      network: Connecting
      http://192.168.1.70/TestPlugin.class with proxy=DIRECT
      java.lang.ClassNotFoundException: TestPlugin
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      basic: load: class TestPlugin not found.
      java.lang.ClassNotFoundException: TestPlugin
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Ignored exception: java.lang.ClassNotFoundException: TestPlugin
      basic: Dialog type is not candidate for embedding
      basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@13b4ce4
      security: Reset deny session certificate store