-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert,

Robert Harper wrote:
> Snippet of the HTML
> 
> <applet code=com.iat.ctimpact.CTImpactStatisticsApplet.class height=300
> width=584>
> <param name=Link
> value='https://127.0.0.1:8443/ctimpact/servlet/CTImpact/?User=001TEST&List=C
> 001MAIN'>
> <param name=Timer value=5000>
> </applet>

You need to provide the "codebase" attribute for the <applet> tag, which
tells the browser where to find your code.

You can find more information here:
http://java.sun.com/j2se/1.4.2/docs/guide/misc/applet.html
or here:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

Hope that helps.

- -chris


> 
> 
> Snippet from Java Console
> network: Connecting
> https://localhost/ctimpact/servlet/com/iat/ctimpact/CTImpactStatisticsApplet
> /class.class with proxy=DIRECT
> load: class com.iat.ctimpact.CTImpactStatisticsApplet.class not found.
> java.lang.ClassNotFoundException:
> com.iat.ctimpact.CTImpactStatisticsApplet.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
> basic: Exception: java.lang.ClassNotFoundException:
> com.iat.ctimpact.CTImpactStatisticsApplet.class
> java.lang.ClassNotFoundException:
> com.iat.ctimpact.CTImpactStatisticsApplet.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
> basic: Modality pushed
> 
> I have plastered the class all over the place with the full path from the
> app root out. I started with it landing in the same location as the servlet
> code and then added it to the application root. 
> 
> Robert S. Harper
> Information Access Technology, Inc.
> 
> -----Original Message-----
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 16, 2006 1:20 PM
> To: Tomcat Users List
> Subject: Re: Serving up applets
> 
> Robert,
> 
> Robert Harper wrote:
>>> This has probably been covered before but I'm having a hard time getting
>>> an applet on a servlet generated page to load. I keep getting a
>>> ClassNotFound exception even though the class is in several possible
>>> areas for it to load. It is a package that is like
>>> com.company.service.MyApplet.class. If Tomcat can provide the images,
>>> why can't it find and send the applet class?
> 
> Give us the relevant code from your HTML page that shows the applet.
> We'll start from there.
> 
> -chris
> 

- ---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





- ---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFXNNz9CaO5/Lv0PARAptEAJ9TqSC4+67k3IaO2ML/gQDtYOOXvgCgn4Bp
z+iaCabtNsVf9h4nS1z7nbg=
=IIE+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to