• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet not loading

 
Prashant Sehgal
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a web application that contains an applet that talks to a bunch of servlets that in turn talk to some POJOs in the background. It's deployed on JBoss 4.0.4 and build using jdk 1.5.0_07.

When I deploy this on the server and try hitting it from different machines, it loads in some browsers but not in others. Some where it gives the error load: class MigrationApplet not found; at others it gives the error load:MigrationApplet notinited. I suspected that this could be due to the difference between the JVMs on the browsers and the one that I used to build the app. but was unpleasantly surprized when it started loading from some other terminals which had even more different browser JVMs.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the applet tag look like? What is the directory on the server where the applet resides? Are there any error messages in the Java Console?
[ October 16, 2007: Message edited by: Ulf Dittmer ]
 
Prashant Sehgal
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are no exceptions in the java console. The applet is a singed applet that resides inside a war file and is accessible from a jsp within the same war file. The war file resides inside the deploy directory of Jboss. It's running fine on atleast 2 browsers and not on 3 others. So that (in a way) does rule out classpath or config related issues.

The applet tag looks like this:


[ October 16, 2007: Message edited by: Prashant Sehgal ]
[ October 16, 2007: Message edited by: Prashant Sehgal ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So that (in a way) does rule out classpath or config related issues.

Not at all.



Use a path that's relative to the directory the applet JSP is in, and then it should work.
[ October 16, 2007: Message edited by: Ulf Dittmer ]
 
Prashant Sehgal
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then how come it's showing on some browsers and not on others?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prashant Sehgal:
Then how come it's showing on some browsers and not on others?

Does it still do that after you fixed it in the way I suggested?
 
Prashant Sehgal
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup . It still shows erratically on some browsers and not on others.
 
Bling Chen
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's showing up erratically in some browsers and not others, then it might be a simple browser configuration issue. Your applet isn't starting probably due to the JRE not firing up. You'll probably see some what of a grey box or something.

To fix this, goto Control Panel -> Java -> Click on Advance Tab -> explode the <APPLET> tab support -> and check off the browser you want to by default fire up the JRE.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic