tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Trying to get past java.net.ConnectException
Date Wed, 08 Oct 2003 22:48:24 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message