[Zope3-dev] Re: Java applets and zope3
Tres Seaver
tseaver at palladion.com
Wed Dec 13 12:55:45 EST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Theune wrote:
> Hi,
>
> Paul Carduner wrote:
>> <h3>Fractals</h3>
>> <applet code="/Programs/Fractals/Attractor.class" height=100 width=600></applet>
>>
>> On the static site, this html loads the java applet perfectly. On the
>> zope3 site however the browser recognizes the java applet, but it
>> fails to load. Opening up the java console, I get the following error
>> message(s):
>>
>> load: class http://www.carduner.net/Programs/Fractals/Attractor.class not found.
>> java.lang.ClassNotFoundException:
>> http:..www.carduner.net.Programs.Fractals.Attractor.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
>>
>> Of course, the url that "failed to load" seems to work fine when I
>> type it into the browser because the file is obviously there. Does
>> anyone know why this might not be working? Google searches have
>> turned up nothing for me :/.
>
> I don't know Java and applets very well, here are some standard thoughts:
>
> - Does the .class file require a certain MIME type to be shown when it
> gets downloaded?
> - Does this work (with the HTML) when you put it on a static web server
> (is that what you mean by static site? or did you mean it works on your
> local machine using file:// urls?)
>
> Zope in general doesn't do very much that would disable applets and friends.
Another possiblitiy would be Zope's messing with the <base> tag; that
should only affect "relative" URLs, however.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFgD6h+gerLs4ltQ4RApxiAKDYaXpim+NxP6LqHLg1GiZvOyVoKgCbBx/4
mKQCZdpjf2QcIF17qbdT3h0=
=95f0
-----END PGP SIGNATURE-----
More information about the Zope3-dev
mailing list