Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 23725 invoked from network); 10 Sep 2003 17:48:00 -0000 Received: from unknown (HELO mta4.rcsntx.swbell.net) (151.164.30.28) by daedalus.apache.org with SMTP; 10 Sep 2003 17:48:00 -0000 Received: from pacbell.net (adsl-63-197-19-160.dsl.snfc21.pacbell.net [63.197.19.160]) by mta4.rcsntx.swbell.net (8.12.9/8.12.3) with ESMTP id h8AHlhtv013486 for ; Wed, 10 Sep 2003 12:47:53 -0500 (CDT) Message-ID: <3F5F63BF.9040602@pacbell.net> Date: Wed, 10 Sep 2003 10:47:43 -0700 From: Steve Kelem Reply-To: steve@kelem.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Help! JSP not working in Tomcat 5 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I get a connection timed out message, even though I told the socket in my java program not to time out. I'm trying to deploy a bot from the book "Programming Spiders, Bots, and Aggregators in Java". It's the "translate" program in chapter 4, which is supposed to translate a page into pig latin. Whenever I run it in Tomcat, I get a connection timed out message, even though I told my socket not to time out. 1. Does Tomcat restrict access to network connections? If so, how do I enable my application to talk to any site? (You're supposed to be able to enter the url of the site you want to translate into the .jsp form, and then the java program will do the translation and then output the translated page.) 2. I tried adding the following lines to conf/catalina.policy: grant codeBase "file:${catalina.home}/webapps/translate/-" { permission java.net.SocketPermission "*", "connect, accept, connect, listen, resolve"; }; grant codeBase "file:${catalina.home}/webapps/translate.war" { permission java.net.SocketPermission "*", "connect, accept, connect, listen, resolve"; }; Is the specification "*" okay? I hope I don't have to list every possible url. 3. I tried stopping the Tomcat service and addint the -security "start parameter" in the Windows Services Properties window. How do I get the tomcat service to use this parameter always? Thanks, Steve Kelem --------------------------------------------------------------------- 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