Re: Cannot access Tomcat from remote box
Hi Vincent - one more idea... Have you checked Tomcat's server.xml for what port it thinks it should be serving from? I recently installed tomcat 5.0 on a FreeBSD box from a BSD-package* and either because of the way the BSD-package was configured, or because of some other check, Tomcat ended up serving from 8180. So of course the box refused a connection on 8080. Tim *actually a BSD port but that's just too confusing... --- Am Freitag, 13. Mai 2005 00:35 schrieb Vincent Yau: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Thanks. I did double check and it is 8080. I changed to port 80 and Tomcat is running just fine. This is truly odd. From: Tim Diggins [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Cannot access Tomcat from remote box Date: Fri, 13 May 2005 09:00:16 +0100 Hi Vincent - one more idea... Have you checked Tomcat's server.xml for what port it thinks it should be serving from? I recently installed tomcat 5.0 on a FreeBSD box from a BSD-package* and either because of the way the BSD-package was configured, or because of some other check, Tomcat ended up serving from 8180. So of course the box refused a connection on 8080. Tim *actually a BSD port but that's just too confusing... --- Am Freitag, 13. Mai 2005 00:35 schrieb Vincent Yau: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot access Tomcat from remote box
Hi: I have a very odd error hope someone can tell me how to fix it. I am not a new Tomcat user, been using it on and off for the last few years. I never really dive into the setup as my need had always been very simple. Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. I have also tried Tomcat version 5.0.28, 5.5.7, 5.5.8. I have also tried Java 1.4.2 and Java 1.5. I have no idea why browser on the local host loaded the Tomcat front page just fine but not from any other machine on the network. Is there a new Tomcat option that disabled remote connection? Thanks for any tip... --Vincent _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Vincent Yau wrote: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. Almost certainly wrong -- most new distros have iptables enabled by default. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. But have you tried `telnet thatbox 8080` -- which is what would actually confirm there's something listening (unblocked) there? :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Hi Vincent, Am Freitag, 13. Mai 2005 00:35 schrieb Vincent Yau: Today, I got hold of 2 boxes that I need to setup tomcat. Both are Linux. One with Kernel 2.4, the other is 2.6.10. I have a 3rd box with Tomcat up and running that I setup a few months ago (version 5.0.28). So I downloaded Tomcat 5.0.28 on box boxes earlier today. They ran fine with a local browser accessing it. However, no other box on the network can access it. I got Connection Refused when trying to load the front page from any other machine (http://thatbox:8080). There is no firewall on either machine. I have tried ping, ssh, scp, httpd and all traffic goes through fine on both boxes. Are you really sure that there is no firewall running? And what does you mean when mentioning that HTTPD traffic passes through? Have you also checked port 8080 which is Tomcat's default port? I have no idea why browser on the local host loaded the Tomcat front page just fine but not from any other machine on the network. Is there a new Tomcat option that disabled remote connection? No, why should this be. It's a server. :-) But I have a few ideas: 1. Once again port 8080: When you try to access the server from another machine, which browser configuration do you have there? Do you use a proxy, and could it be that port 8080 is then disallowed? What does happen when you disable the proxy for the connections to the machine hosting the Tomcat server? 2. What does happen if you try to get a connection to the Tomcat server from another machine by using the ip address, i.e. http://192.168.0.80:8080/? If this should work, you should simply have a dns problem. The dns server, you are using, must have to know which ip belongs to thatbox so that it can resolve thatbox properly. 3. How did you configure the host and context? A mis-configuration can cause that the request in fact reaches the machine but Tomcat does not respond because it doesn't feel responsible due to the configuration settings. Best wishes Lutz 3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot access Tomcat from remote box
Are you really sure that there is no firewall running? And what does you mean when mentioning that HTTPD traffic passes through? Have you also checked port 8080 which is Tomcat's default port? Here is output of iptables: Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhereicmp any ACCEPT ipv6-crypt-- anywhere anywhere ACCEPT ipv6-auth-- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 ACCEPT udp -- anywhere anywhereudp dpt:ipp ACCEPT all -- anywhere anywherestate RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:http ACCEPT tcp -- anywhere anywherestate NEW tcp dpt:ftp REJECT all -- anywhere anywherereject-with icmp-host-prohibited But I have a few ideas: 1. Once again port 8080: When you try to access the server from another machine, which browser configuration do you have there? Do you use a proxy, and could it be that port 8080 is then disallowed? What does happen when you disable the proxy for the connections to the machine hosting the Tomcat server? when I telnet to that box and port 80, I connect just fine. when I telnet to that box and port 8080, I got no route to host. There is no proxy. 2. What does happen if you try to get a connection to the Tomcat server from another machine by using the ip address, i.e. http://192.168.0.80:8080/? If this should work, you should simply have a dns problem. The dns server, you are using, must have to know which ip belongs to thatbox so that it can resolve thatbox properly. I did try with just IP and I got the same behavior. 3. How did you configure the host and context? A mis-configuration can cause that the request in fact reaches the machine but Tomcat does not respond because it doesn't feel responsible due to the configuration settings. I am not even at that point yet. I just want to load the default index.jsp page that comes with Tomcat. I don't think I need to configure any context to load the first page, do I? thanks _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]