tags:

views:

41

answers:

0

Dear all,

I just found a very strange question. I am using the Spring DM Server + spring MVC. In a jsp page , I just insert an applet, but always, this applet could not displayed, no matter where I put on the folder, still the same problem.

the following exception:

java.lang.ClassNotFoundException: Drawlines 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://localhost:8080/ted/Drawlines.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)

But I just copy it to any webapps of tomcat, it works. Does anybody know this problem.

I am not sure if there should setting the security on the server or add a MVC url mapping to forward the Applet class.

Thanks in advance