Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 71666 invoked from network); 9 Oct 2003 16:04:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Oct 2003 16:04:14 -0000 Received: (qmail 67332 invoked by uid 500); 9 Oct 2003 16:03:40 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 67305 invoked by uid 500); 9 Oct 2003 16:03:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 67287 invoked from network); 9 Oct 2003 16:03:40 -0000 Received: from unknown (HELO asmodean.lupinesystems.net) (155.229.27.55) by daedalus.apache.org with SMTP; 9 Oct 2003 16:03:40 -0000 Received: from spadecat10 (spade-cat10 [192.168.1.101]) by asmodean.lupinesystems.net (Postfix) with ESMTP id CB335284E5 for ; Thu, 9 Oct 2003 09:03:42 -0700 (PDT) From: "jon yeargers" To: "'Tomcat Users List'" Subject: RE: Trying to get past java.net.ConnectException Date: Thu, 9 Oct 2003 09:03:34 -0700 Message-ID: <010101c38e7e$e7adb3d0$6501a8c0@spadecat10> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <3F849438.2070802@joedog.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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