Hi, a geronimo deployment plan can help you with all these request. You can define the Context-root and moduleId in the deployment plan, eventually you war application will be installed into Geronimo repository, /repository directory, with the name convention that you specified for its moduleId.
A very short deployment plan is as followed. <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> <environment> <moduleId> <groupId>org.apache.geronimo.samples</groupId> <artifactId>HelloWorldApp</artifactId> <version>2.2</version> <type>war</type> </moduleId> </environment> <context-root>/hello</context-root> </web-app> For more information about deployment plan for a WAR application, you may refer to http://cwiki.apache.org/GMOxDOC22/geronimo-webxml.html Hope this helpls. Anything else, just let us know. Jeff C On Wed, Dec 2, 2009 at 9:30 AM, nileshnjoshi <nileshnjo...@gmail.com> wrote: > > Hi, > > I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few things: > > 1. I am not able to write correct context root. Details steps will > help a > lot. > History: I have deployed a war file on apache-tomcat 6.0.20 and I access > the > application like: > http://abc.test.com/MailApp > > Now I have switched to geronimo-tomcat6. I have deployed same war which > works fine. However I want to change the context root. I want to access the > application on URL below: > http://abc.test.com/test/mail/ > > Before creating a new war file, I have created a file called > ‘geronimo-web.xml’ and placed in WEB-INF. However I observed that 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 > applications. > > When I deploy an application using GUI, it created directory structure like > below: > > > /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/2258680823503/MailApp-2258680823503.war > > I want to get rid of MailApp/1258680823503 and number. I would like 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. > > 3. Can geronimo-tomcat6 create directory for MailApp.war similar to > tomcat? > > > The help is really appreciated. > > Thanks and Regards, > -Nilesh > > -- > View this message in context: > http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >