tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jon yeargers" <j...@lupinesystems.net>
Subject RE: Trying to get past java.net.ConnectException
Date Thu, 09 Oct 2003 16:03:34 GMT
I guess Im confused as it worked fine when run against the same server
code runnning in my IDE. I assumed that Tomcat would have more security
to prevent hostile apps from doing damage.


-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org] 
Sent: Wednesday, October 08, 2003 2:48 PM
To: Tomcat Users List
Subject: Re: Trying to get past java.net.ConnectException


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



---------------------------------------------------------------------
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