Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 33348 invoked from network); 2 Dec 2009 02:48:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Dec 2009 02:48:44 -0000 Received: (qmail 91621 invoked by uid 500); 2 Dec 2009 02:48:43 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 91554 invoked by uid 500); 2 Dec 2009 02:48:43 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 91544 invoked by uid 99); 2 Dec 2009 02:48:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Dec 2009 02:48:42 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.57] (HELO smtp102.prem.mail.sp1.yahoo.com) (98.136.44.57) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 02 Dec 2009 02:48:29 +0000 Received: (qmail 3344 invoked from network); 2 Dec 2009 02:48:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=dyFo/f1U98SFy9FCiP1Ll18dLJhBGZpn6yKTE66965jhl+t7qX1n//Qe94O3v/mCm71d8DDRY3b3nvc5rEsoUtum/GsXOIBtnwb8zTgWvB1+S2MFpRR3CBzFTekOir8g5gJEk5cmJA6f55cR8Gl4MWASIEZwE9C68gI2CAqTB64= ; Received: from 076-076-148-215.pdx.net (david_jencks@76.76.148.215 with plain) by smtp102.prem.mail.sp1.yahoo.com with SMTP; 01 Dec 2009 18:48:06 -0800 PST X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- X-YMail-OSG: 4GBoT0sVM1n0KH.96NVbXjF6unOTSH1LZRme1R84vFBsweKNT0AQ0KXSW2IfyL2DtXZwkTWwOPpb9zwBr1iY6CtgIB.FU6Fqf8NYE1.odyQ8p0bi0YMupmLqIlcSuXQoDcH9IPaxRGC4wngjXQKPazb0Hg_HxEMVmS6gtBRJET8gZTxBAkcIWMok5w7ZAQ.rkkBgWuvKEirgpUHHjrW8DuDWV.XjUngZ69a1NE8yJQ_YvjJhIqKBG9JYUw88behJG_0BIs9ot8gJM0jiske.W02eybojYXf0GummKZdPCsp7.DpvChRgXUxDi7BPMxOKeus0G7tDgiZrHWo42x_v6HIENyB5rNAA1axrP_5n4yhtaqtTmGLZegvD1JiCUQJizhJgVKfLu4WboRhosS6_E5_ZBJLefAJ_V6RcfXqFPdua55cKuTPTfSQR1HWdjSp87TS2t0uXjG.eJqXdrwS8iaC7ZnXZLKm1uQhV0bkAyFt3PS7JGO83TJM4iuHxcjVGn.dhQd1VSGy7phQG7iAtmVxY8FxIxos.U0Z9Ed90Kdplp.VWVql6_UGb4rUv4tZ9z0iGTVPXZVAyMEFyo5lQhwabwgYKNi_ICRbVdnUmbH2T4w-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <7A3618F4-23A9-48AE-AA50-637D6041CF58@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <26601435.post@talk.nabble.com> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: defining Context root Date: Tue, 1 Dec 2009 18:48:05 -0800 References: <26601435.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org In addition to Chi Runhua's good advice... On Dec 1, 2009, at 5:30 PM, nileshnjoshi wrote: > > Hi, > > I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few =20 > things: > > 1. I am not able to write correct context root. Details steps will =20= > help a > lot. > History: I have deployed a war file on apache-tomcat 6.0.20 and I =20 > access the > application like: > http://abc.test.com/MailApp > > Now I have switched to geronimo-tomcat6. I have deployed same war =20 > which > works fine. However I want to change the context root. I want to =20 > access the > application on URL below: > http://abc.test.com/test/mail/ > > Before creating a new war file, I have created a file called > =91geronimo-web.xml=92 and placed in WEB-INF. However I observed that =20= > file is > not available after deploying application. > > What all things I need to do to achieve above. > > > 2. I would like to define the directory where I can deploy new =20 > applications. > > When I deploy an application using GUI, it created directory =20 > structure like > below: > > /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/=20 > 2258680823503/MailApp-2258680823503.war > > I want to get rid of MailApp/1258680823503 and number. I would like =20= > to have > directory structure like: > /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp.war > > I need this structure so that my scripts can deploy war file directly. Don't try to do this. You should either a. call the geronimo deployer supplying the location of your war file =20= from your script or b. use maven to "pre-deploy" your war into a geronimo plugin and have =20= your script install the plugin by using the geronimo deployer or (my preference) c. use geronimo 2.2, and use maven to assemble a custom server =20 including the plugin as in 2. In this case your script would just =20 unpack the server and start it. If you copy an ee app into the geronimo repository geronimo won't know =20= about it and there will be no way to tell geronimo to use it. You =20 have to go through the geronimo deployment process so geronimo can set =20= up additional info about your app, such as the fact that it should be =20= started with the server (recorded in var/config/config.xml) thanks david jencks > > 3. Can geronimo-tomcat6 create directory for MailApp.war similar to = =20 > tomcat? > > > The help is really appreciated. > > Thanks and Regards, > -Nilesh > > --=20 > View this message in context: = http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html > Sent from the Apache Geronimo - Users mailing list archive at =20 > Nabble.com. >