• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Applet not working

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using Tomcat 4.1 as the server. i have a simple java applet HelloWorld.java . have kept the class file and html calling applet in proper loction. am using https.
Problem: the applet is accessible from the same machine(i.e. machine where tomcat is installed) url:https://<DNS>:8443/chat/index.html , where index.html has the applet tag. note: DNS is registered

but when i try to open the url from any other machine, the html page loads but NOT the applet. i cant reaaly find the problem..browser says:Applet not inited. neeed urgent help!!

Below is the message in Java Console:-
load: class HelloWorld.class not found.

java.lang.ClassNotFoundException: HelloWorld.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: Authentication failure

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

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

URGENT HELP NEEDED !!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Regarding the urgency of your question, Ease Up.

Note that the error message says "class HelloWorld.class not found", not "class HelloWorld not found". You probably have code="HelloWorld.class" in your applet tag instead of code="HelloWorld".
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what's the jdk version are you using to compile the applet?as I know, you must use jdk1.3 or earlier to compile the source, IE will find the class, or it will say class not found.and you'd better use jdk1.1 language syntax to fie MS jre.
sorry for my english, and hope be helpful.
 
chetan verma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ulf..
i mentioned it before that the applet is loading on the same machine.

as far as knew, the .class extension may/maynot be used in <applet code="">

anyways, i checked and changed code="HelloWorld" and the same error has occured. the applet is loading successfully on the same machine.. but not on other,, the message in java console is same as before with 1 change:

java.lang.ClassNotFoundException: HelloWorld

NOTE: May be some kind of security issue is there, if u see the console msg carefully it says: Caused by: java.io.IOException: Authentication failure

any idea wat does dat mean??

My aim is not to run this HelloWorld applet.. its actually a test applet i made juct to check whether simple applets are loading properly or not..

As for JDK. im using j2sdk1.4.2_08
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing a similar problem. Did you get any solution for it?
 
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic