I'm having a terrible time getting an applet to work in Tomcat 5.5. I have an application webapps/rdWeb. I've copied in the JDK TicTacToe.class and example1.html into rdWeb. It works properly under IIS. However I get "applet noinited" when I do the same under Tomcat 5.5. It fails the same under IE, and Firefox. It fails on Windows 2003 server and Suse Linux. I've tried modifying catalina.policyas follows:
The Java Console is installed (SE 6).It says that it can't find TicTacToe.class even though it's exactly where the classloader is looking. What do I have to do to get Tomcat 5.5 to work with applets? Thanks, Clif...
How are you forming the URL for the class file? Can you post the relevant part of the JSP or HTML page that hosts the applet?
I doubt this has to do with catalina.permissions.
Joined: Jan 09, 2008
Here is the Sun example1.html. It runs fine with IIS but generates a Class not found exception in Tomcat 5.5. --Clif
<html> <head> <title>TicTacToe v1.1</title> </head> <body> <h1>TicTacToe v1.1</h1> <hr> <applet code="TicTacToe.class" width=120 height=120> alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag! </applet> <hr> <a href="TicTacToe.java">The source.</a> </body> </html>
Joined: Mar 22, 2005
Welcome to JavaRanch.
First off, whatever the problem turns out to be, you do not need to modify the security policy file. That is definitely not part of the issue.
Might it be a file permission problem? Can you use the browser to download the class file manually (by accessing http://localhost:8080/rdWeb/TicTacToe.class)? The file permissions might have been changed during copying, or maybe Tomcat runs under a special account.