oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: Configuring the CAS Product Server
Date Sat, 30 Apr 2011 05:35:35 GMT
[with permission from Sean to copy through my reply to his original email]

Hey Sean,

On Apr 26, 2011, at 11:56 PM, Hardman, Sean H (388J) wrote:

> I am looking for a little guidance for configuring the CAS Product Server. There are
a number of configuration files in the source tree and I am not sure which is the gold source:
> 
> src/main/resources/cas-product-tomcat-5.5.9.xml
>  <Parameter name="filemgr.url" value="http://localhost:9000" override="false" />

This is an outside the META-INF (standard) Tomcat 5.5.x context.xml file. This is the one
that I always use to configure the CAS product server.

> 
> src/main/webapp/META-INF/context.xml
>  <Parameter name="filemgr.url" value="[FILEMGR_URL]" override="false" />

This was added by Brian Foster based on a patch from Shakeh E Khudikyan so that CAS product
could be run via Maven's tomcat plugin. It should be explicitly overriden if an outside context.xml
(e.g., the first one you pasted above) is used to configure and deploy the webapp.

> 
> src/main/webapp/WEB-INF/web.xml
>  <param-name>filemgr.url</param-name>
>  <param-value>http://localhost:9000</param-value>

This is the internal web.xml descriptor property file. If there are no context.xml files present
(a hard case to achieve given 1 and 2), these properties are the canon and used in the configuration
of the system. I regularly ignore this file.

> 
> All that and the CASProductHandler.java file references:
>       this.fm = new XmlRpcFileManagerClient(new URL(System.getProperty(
>                "fm.url", "http://localhost:9000")));

Yep, the way I set it always is via option 1, the external Tomcat cas-product--tomcat-5.5.9.xml
file. Steps:

1. cp fmprod/src/main/resources/cas-product-tomcat-5-5-9.xml /path/to/prodserver/home/fmprod.xml
2. edit fmprod.xml and change path to WAR file and configuration properties
3. cp fmprod/target/cas-product-0.3-SNAPSHOT.war /path/to/prodserver/home/
4. ln -s /path/to/prodserver/home/fmprod.xml $TOMCAT_HOME/conf/Catalina/localhost/fmprod.xml
5. fire up Tomcat

HTH!

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.a.mattmann@nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Mime
View raw message