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">

For more information about deployment plan for a WAR application, you may refer to


Hope this helpls.

Anything else, just let us know.

Jeff C

On Wed, Dec 2, 2009 at 9:30 AM, nileshnjoshi <nileshnjoshi@gmail.com> wrote:


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
History: I have deployed a war file on apache-tomcat 6.0.20 and I access the
application like:

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:

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


I want to get rid of MailApp/1258680823503 and number. I would like to have
directory structure like:

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,

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.