EJB programming & troubleshooting: I have Applet and JSP Problem

  1. I have Applet and JSP Problem (1 messages)

    Hi Friends, i have some problem. I am using WebSphere 5.1 How can i solve this problem. Thanks. JSP: Applet: public class Applet1 extends JApplet { boolean isStandalone = false; TextArea textArea1 = new TextArea(); GridLayout gridLayout1 = new GridLayout(1,2); public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); } public void init() { try { textArea1.setText(""); this.setSize(new Dimension(400, 296)); this.getContentPane().setLayout(gridLayout1); this.getContentPane().add(textArea1, null); } catch(Exception e) { e.printStackTrace(); } } //Get Applet information public String getAppletInfo() { return "Applet Information"; } //Get parameter info public String[][] getParameterInfo() { return null; } } CLASSPATH : ERROR: load: class Applet1.class not found. java.lang.ClassNotFoundException: Applet1.class 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:9080/rota/tr/gov/ego/rota/action/Applet1/class.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: Applet1.class

    Threaded Messages (1)

  2. Re: Egg White Wash List[ Go to top ]

    check you Applet1.class ,somewhere maybe wrong