On Aug 22, 2013, at 8:48 AM, B W <bw20130...@gmail.com> wrote:

> I have a GWT application which currently is running on GlassFish 3.x. I
> want to migrate to Tomcat 7. Previously, I would store properties that the
> GWT application could retrieve by
> org.apache.commons.configuration.SystemConfiguration.

Looks like this class is loading items from system properties.

> I would put these
> settings in my domain.xml for GlassFish. What is the Tomcat equivalent? I
> tried putting settings under my WEB-INF\web.xml file as
> context-paramsection. However, my GWT application cannot see them
> still.
> 
> Where should I put settings that can be read by calling
> org.apache.commons.configuration.SystemConfiguration from my GWT app from
> Tomcat?

Based on that, you'd want to add system properties in 
"$CATALINA_BASE/bin/setenv.sh".  Note this file doesn't exist by default, 
you'll need to create it.

Ex:

   CATALINA_OPTs="-Dmy.property.1=xyz -Dmy.property.2=abc"

Dan


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to