Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 18382 invoked from network); 29 Oct 2008 16:20:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2008 16:20:38 -0000 Received: (qmail 40093 invoked by uid 500); 29 Oct 2008 16:20:30 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 40063 invoked by uid 500); 29 Oct 2008 16:20:30 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 40052 invoked by uid 99); 29 Oct 2008 16:20:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 09:20:30 -0700 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of doepain@gmail.com designates 216.239.58.191 as permitted sender) Received: from [216.239.58.191] (HELO gv-out-0910.google.com) (216.239.58.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 16:19:16 +0000 Received: by gv-out-0910.google.com with SMTP id n8so44428gve.39 for ; Wed, 29 Oct 2008 09:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type:references; bh=MzpcOLAL3S6ETlNKeYYr679hZL6gbiiyFcI8Ei7oyeA=; b=DT8+EJg0jhQ+uQnjn1WZnQWkxHOxDguFRyRHZth1rzdtjnKZQfRMEdXcg76HIOa+CB 9l/Cd8TNMmbB3/zybYyZllxBSySQkuCOfScNo7B0BXdLq0GbDPZ6GEYQyiBrxsmv/OyV uBLmQSeAvN9SzK+fDKdQcid4MLmaidZ91iri0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:references; b=SqMSMvxyI7EuizYuxKb3ycaW7qSXBygWSERg3RcZHNTtxI0aVViKC246X8O6o07xr3 /ci3jdVFjJm3BCzav6mE/LkaXAkLSyQwKQsXiODGXUDX+z9toLyInS2pGiFS/dbY5Qxk JLEvmbdpUvIyJNLVpk2VbZhiiyEC4jlw1q8Bk= Received: by 10.103.241.5 with SMTP id t5mr4280454mur.72.1225297194197; Wed, 29 Oct 2008 09:19:54 -0700 (PDT) Received: by 10.103.123.18 with HTTP; Wed, 29 Oct 2008 09:19:54 -0700 (PDT) Message-ID: Date: Wed, 29 Oct 2008 12:19:54 -0400 From: dOE Reply-To: doepain@gmail.com To: "Tomcat Users List" Subject: Re: How can I hard code the IP address on a single server with multiple Tomcat instances. In-Reply-To: <680cbe0e0810290803w878a9e1t9a9e2346cef1c33c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_117536_18485195.1225297194181" References: <680cbe0e0810290617p14be04c7w3512fcb34b84076@mail.gmail.com> <680cbe0e0810290640q767917e6t502705de1721f77e@mail.gmail.com> <680cbe0e0810290803w878a9e1t9a9e2346cef1c33c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_117536_18485195.1225297194181 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You say the page not found errors are good... *IT IS GOOD BECAUSE IT TELLS ME THE SERVER IS BEING HIT. PRIOR TO YOUR HELP THE WRONG SERVER WAS OPENING ON ALL PORTS AND IP's NO LONGER THE CASE. * The configuration of the connectors looks ok Are there any errors in the logs and have you configured an identifiable error page for both instances? ( inside web.xml) *THE ERROR LOG IS "BARK" ABOUT: *StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester* (UNRELATED). THE SERVER (server 2) IS NOT SERVING ANY PAGES, TRIED TO VIEW A GIF THROUGH URL AND IT WOULD NOT LOAD. HONESTLY DO NOT HAVE THE SKILLS TO FIGURE OUT HOW TO GET TO WORK RIGHT.* That way you can determine which tomcat is serving the error. Do the other connectors have an address defined *CONNECTORS I ASSUME YOU ARE REFERRING TO ARE PORTS 8009, AND 8109, BOTH HAVE ADDRESSES HARD CODED IN SERVER.XML*. The fact you get a 400 indicates that a tomcat is responding, you now only have to determine if it is the right one and what causes the error (what type of content are you serving, static dynamic) *I AM SITES ARE ALL JSP PAGES (I BELIEVE THAT TEY ARE ALL DYNAMIC) * On Wed, Oct 29, 2008 at 11:03 AM, Serge Fonville wrote: > You say the page not found errors are good...The configuration of the > connectors looks ok > Are there any errors in the logs and have you configured an identifiable > error page for both instances? ( inside web.xml) > That way you can determine which tomcat is serving the error. > Do the other connectors have an address defined > The fact you get a 400 indicates that a tomcat is responding, you now only > have to determine if it is the right one and what causes the error (what > type of content are you serving, static dynamic) > > > Regards, > > Serge Fonville > > > On Wed, Oct 29, 2008 at 3:49 PM, dOE wrote: > >> Hi Serge, >> >> Below are the values from both of my server.xml files. I specified the >> address that the port should listen on, and I am unable to open * >> http://192.168.100.2:8080* (GOOD!). When I attempt to open * >> http://192.168.100.2:8180* I get a 400, and *http://192.168.100.1:8180* >> the >> "request" returns "Page Cannot Be Found"(GOOD!). >> >> 192.168.100.1 has ports 8080, 8009 >> 192.168.100.2 has ports 8180, 8109 >> >> The correct ports are open, its just that I can not open the site on >> 192.168.100.2 through Tomcat. >> Should I have only edited one server.xml, rather than hard coding the IP >> in >> both? >> >> (Server 1) 192.168.100.1 >> >> > maxThreads="150" >> minSpareThreads="25" >> maxSpareThreads="75" >> enableLookups="false" >> redirectPort="8443" >> acceptCount="100" >> debug="0" >> connectionTimeout="20000" >> disableUploadTimeout="true" >> address="192.168.100.1" /> >> >> (Server 2) 192.168.100.2 >> >> > maxThreads="150" >> minSpareThreads="25" >> maxSpareThreads="75" >> enableLookups="false" >> redirectPort="8543" >> acceptCount="100" >> debug="0" >> connectionTimeout="20000" >> disableUploadTimeout="true" >> address="192.168.100.2" /> >> >> >> >> >> >> >> >> >> >> >> On Wed, Oct 29, 2008 at 9:40 AM, Serge Fonville > >wrote: >> >> > Place inside a element> > connectionTimeout="20000" >> > redirectPort="443" >> > address="127.0.0.1"/> >> > and the output of netstat contains an entry for 127.0.0.1:80 instead of >> > the usual 0.0.0.0:80 >> > >> > Regards, >> > >> > Serge Fonville >> > >> > On Wed, Oct 29, 2008 at 2:31 PM, dOE wrote: >> > >> >> Serge thanks for the reply... >> >> >> >> so to hard code the IP its just a matter of ONLY adding > >> address=' >> >> 192.168.1.1'> ? >> >> >> >> The online document site does not give any syntax examples. >> >> >> >> On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville < >> serge.fonville@gmail.com >> >> >wrote: >> >> >> >> > There is an address attribute inside the connector that specifies the >> >> > address of the listening socket >> >> > http://tomcat.apache.org/tomcat-6.0-doc/config/http.html >> >> > http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html >> >> > >> >> > Hope this helps >> >> > >> >> > Regards, >> >> > >> >> > Serge Fonville >> >> > >> >> > On Wed, Oct 29, 2008 at 2:06 PM, dOE wrote: >> >> > >> >> >> I have a server that I am hosting multiple Tomcat servers from, and >> the >> >> >> issue I am running into is... - I have multiple IP's bound to the >> >> servers >> >> >> interface, Tomcat _1 has port 8080 specified as its connector port. >> >> The >> >> >> second Tomcat_2 has port 8180 set as its conector port in its >> >> server.xml, >> >> >> but regardless of these custom ports I am only able to reach >> Tomcat_1 >> >> >> through 8080, and 8180. Is it possible to hard code the IP you want >> >> that >> >> >> particular instance to listen on? >> >> >> >> >> > >> >> > >> >> >> > >> > >> > > ------=_Part_117536_18485195.1225297194181--