If your applet is bombing with java.net.ConnectException, then your applet is the problem, not tomcat.

-Tim

jon yeargers wrote:

Problem: Im trying to use an Applet to interact with my Tomcat code via
sockets to transfer files. I get the following exception:
java.net.ConnectException: Connection refused: connect
and it points to a line in my code where I call
URLConnection::getOutputStream();
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: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/security-manager-howto.h
tml
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/-" {
permission java.security.AllPermission;
};


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to