geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Richard Moser <>
Subject Re: deployment file help
Date Mon, 19 Nov 2007 14:58:08 GMT

Jacek Laskowski wrote:
> On Nov 19, 2007 3:14 PM, John Richard Moser <> wrote:
>> I'm currently trying to deploy a Web application that wants to be
>> uploaded as a .WAR to Tomcat or JRun.  For Tomcat it wants the
>> following bolb as a configuration XML:
>> <Context path="/foo" docBase="/foo/foo.war" unpackWARs="true"
>> override="true">
>>    <Parameter name="Properties" value="/foo/config" />
>> </Context>
> It's Geronimo 2, right? If so, the following plan will instruct
> Geronimo to bind the webapp to /foo. Just include it in the webapp as
> WEB-INF/geronimo-web.xml file or deploy the webapp with the optional
> deployment plan like ./bin/deploy deploy foo.war geronimo-web.xml:
> geronimo-web.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="">
>     <context-root>/foo</context-root>
> </web-app>

I currently have something akin to... (sorry for all the foo; I'm not 
sure how much internal app info my company wants me posting around the net)

<?xml version="1.0" encoding="UTF-8"?>
  <web-app xmlns="">
   <environment xmlns="">

All the 1.1 stuff is 'cause 2.0 doesn't have great documentation :s
> What is the line - <Parameter name="Properties" value="/foo/config" />
> doing? What is it for?

I have no idea what this means but...

You can configure named values that will be made visible to the web 
application as servlet context initialization parameters by nesting 
<Parameter> elements inside this element. For example, you can create an 
initialization parameter like this:

<Context ...>
   <Parameter name="companyName" value="My Company, Incorporated"

This is equivalent to the inclusion of the following element in the web 
application deployment descriptor (/WEB-INF/web.xml):

   <param-value>My Company, Incorporated</param-value>

but does not require modification of the deployment descriptor to 
customize this value.


> Jacek

Bring back the Firefox plushy!

View raw message