tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wade Chandler" <>
Subject RE: Trying to get past
Date Thu, 09 Oct 2003 14:13:18 GMT
An applet isn't affected by your server settings.  What is your applet
trying to connect to?  What port.  Also what servlet or jsp is it
connecting to on your server.  The applet will be affected by the client
system it is running on.  Send the link to the url you need the applet
to connect to.  

I setup a URLConnection like this: url = new; urlc = url.openConnection();
      urlc.setUseCaches(false); pout = urlc.getOutputStream();//other
streams work as well, just an example.

But you need to understand where you are executing an applet and when
and where the security and settings matter.


-----Original Message-----
From: jon yeargers [] 
Sent: Wednesday, October 08, 2003 5:28 PM
Subject: Trying to get past

Problem: Im trying to use an Applet to interact with my Tomcat code via
sockets to transfer files. I get the following exception: Connection refused: connect
and it points to a line in my code where I call
All well and good. I can see where this needs to be protected. I STFW
for information about setting tomcat security (since my books don't seem
to cover it very well.. bad books I guess) and found this page:
Sounds like a good thing to try. My applet lives in
${catalina.home}/webapps/viewer so I added this line to my
catalina.policy file:
grant codebase "file:{catalina.home}/webapps/viewer/-" {
and restarted the server with 
bin/ -security
.. to no avail. The situation hasn't changed. 
is this the right approach? Am I barking up the wrong proverbial tree?
(The applet in question is signed with a test cert - it makes it past
client security and sees my local drive ok)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message