Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 5811 invoked from network); 15 May 2003 04:12:25 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 May 2003 04:12:24 -0000 Received: (qmail 14978 invoked by uid 97); 15 May 2003 04:14:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 14971 invoked from network); 15 May 2003 04:14:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 May 2003 04:14:38 -0000 Received: (qmail 4408 invoked by uid 500); 15 May 2003 04:12:11 -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 4396 invoked from network); 15 May 2003 04:12:11 -0000 Received: from sccrmhc03.attbi.com (204.127.202.63) by daedalus.apache.org with SMTP; 15 May 2003 04:12:11 -0000 Received: from nicki.visi.com (c-24-118-17-192.mn.client2.attbi.com[24.118.17.192]) by attbi.com (sccrmhc03) with SMTP id <20030515041220003009k07he>; Thu, 15 May 2003 04:12:20 +0000 Message-Id: <5.2.0.9.2.20030514215829.02f1d9a0@shell.visi.com> X-Sender: hoju@shell.visi.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 14 May 2003 22:04:43 -0500 To: "Tomcat Users List" From: Jacob Kjome Subject: Re: server.xml (with mod_jk configuration) being rewritten In-Reply-To: <3EC42205.2010809@tre-sc.gov.br> References: <3EC415A7.5040608@tre-sc.gov.br> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_654349531==.ALT" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=====================_654349531==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed The ant "deploy" task definitely will cause Tomcat to rewrite the server.xml. This is to persist the information about the context so it can serve it up after a restart. However, the server.xml rewrite shouldn't remove data (other than comments) from the server.xml. What it does seem to do is write each element with every possible attribute, but that isn't a big deal. If some of your non-commented elements in server.xml are being removed upon server.xml rewrite, then you should report this as a bug to http://nagoya.apache.org/bugzilla/ . BTW, using Apache with a context deployed via the ant manager "deploy" task kind of defeats the purpose of using Apache. Usually, the idea is to let Apache serve static content to take the burden off of Tomcat so it can peacefully serve dynamic content. However, since context's deployed via the ant manager "deploy" task are served directly from the .war file, there is no static content for Apache to serve since Apache requires the context to be in a directory, not in a .war file. You might want to use the ant manager "install" task instead of the "deploy" task. The server.xml will not be rewritten. However, upon each restart of Tomcat, you will have to do the install again because it is not persisted across restarts. Jake At 08:25 PM 5/15/2003 -0300, you wrote: >please, anyone could answer me? i'm without clues. I have to use auto-conf >of apache and remote deploy of tomcat. but remote-deploy changes the >server.xml, loosing the configuration of mod_jk (it rewrites the >server.xml), so the next time i startup apache and/or tomcat, it will not >get the configuration of mod_jk. Any clue??????????? > >thanks in advance >Emerson > > >Emerson Cargnin wrote: > >>when I deploy a new app into tomcat, my server.xml (with mod_jk >>configuration) is being rewritten, so the next time I restart apache and >>Tomcat it does not take in account my configuration. I need to change >>the server.xml in evert apache and tomcat restart? And the contexts >>created dnamically through deploy ant taks? >> >>I need to solve this because feature ( automatically deploy 4.1) was >>the reason to use auto-conf of apache-tomcat. > >-- >Emerson Cargnin >Analista de Sitemas >Setor de Desenvolvimento de Sistemas - TRE-SC >tel : (048) - 251-3700 - Ramal 3181 > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --=====================_654349531==.ALT--