I'm trying to load an
applet I wrote from a web page (
JSP). It will load just fine when I do it locally inside an HTML page, but when I try accessing it from the web server it says that the applet cannot be found.
Here is what I have:
The page loads fine but the applet will not load because it cannot find the DisplayMonoApplet.class.
Here is the exact error:
load: class DisplayMonoApplet.class not found.
java.lang.ClassNotFoundException: DisplayMonoApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
My DisplayMonoApplet can be found in the WAR file in the following location:
WEB-INF\classes\myapp\DisplayMonoApplet.class
I have tried every configuration I can think of (myapp/DisplayMonoApplet,
http://myserver:18080/myapp/.....etc.) but no luck.
I've tried using a CODEBASE too but still no luck.
Please help me find out what I'm doing wrong before I go insane!
THANKS!
[ May 06, 2005: Message edited by: Darrin Smith ]