I have one
jsp (Main.jsp) in which i am embedding One.Class file by using the following tag:
<
applet codebase = "http://localhost:8080/ExceleRATE/" code="One" height="350" width="650" alt="Applet Not Supported by this Browser" archive="http://localhost:8080/ExceleRATE/dom4j-1.6.1.jar,http://localhost:8080/ExceleRATE/One.jar">
This applet (One.java) reads the XML file and displays the data in tree structure.
I kept the One.class file, and all the jar files in the same folder where jsp is there. All the files are in tomcat/webapps/ExceleRATE (project folder).
This is working fine in the machine where i am running
tomcat(for running applets separate setting neet to be made for java.policy file ..that i did in my machine and client machine....), but not working from the different machine, i.e client machine (here my machine will act as server).
I am getting the following error in client machine:
load: class One not found.
java.lang.ClassNotFoundException: One
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://c10831:8080/ExceleRATE/One.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: One
Dump
thread stack ...
Can you please help me where I am doing wrong.
Thank in Advance..