Hello, I'm having a problem displaying a very simple applet. System Info: httpd -v Server version: Apache/1.3.33 (Darwin) Server built: Mar 20 2005 15:08:27 MacOSX 10.4.9 Firefox 2.0.0.3Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
The problem also appears using the Safari browser that ships with OSX. Symptom:Very simple applet, SimpleApplet.class from SimpleApplet.java (attached) called from SimpleApplet.html (attached).
On my local machine, which is running httpd-1.3.33, hitting the URL http://mymachine.fully.qualified.address/~rickl/SimpleApplet.html fails to load. I get a diagnostic that reads:
java.lang.ClassNotFoundException: SimpleApplet.class several lines of detail Caused by: java.io.IOException: open HTTP connection failed at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271) more lines of detail.However, when I hit the URL http://localhost/~rickl/SimpleApplet.html everything works fine. Also, if I hit the fully qualified address from any other machine, the applet works fine.
This behavior only happens in a browser running on the machine that is hosting the page/applet.
Any thoughts? Rick
import java.applet.Applet; import java.awt.Graphics; import java.awt.Color; public class SimpleApplet extends Applet{ String text = "I'm a simple applet"; public void init() { text = "I'm a simple applet"; setBackground(Color.cyan); } public void start() { System.out.println("starting..."); } public void stop() { System.out.println("stopping..."); } public void destroy() { System.out.println("preparing to unload..."); } public void paint(Graphics g){ System.out.println("Paint"); g.setColor(Color.blue); g.drawRect(0, 0, getSize().width -1, getSize().height -1); g.setColor(Color.red); g.drawString(text, 15, 25); } }
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx