geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Richard Moser <nigele...@comcast.net>
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 <nigelenki@comcast.net> 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="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
>     <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="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
   <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
    <moduleId>
     <groupId>foo</groupId>
     <artifactId>Foo</artifactId>
     <version>2.2</version>
     <type>war</type>
    </moduleId>
   </environment>
   <context-root>/foo</context-root>
  </web-app>

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

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

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"
          override="false"/>
   ...
</Context>

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

<context-param>
   <param-name>companyName</param-name>
   <param-value>My Company, Incorporated</param-value>
</context-param>	

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

=====

> Jacek
> 

-- 
Bring back the Firefox plushy!
http://digg.com/linux_unix/Is_the_Firefox_plush_gone_for_good
https://bugzilla.mozilla.org/show_bug.cgi?id=322367

Mime
View raw message