My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Monday, April 21, 2008

     

    how to add JVM parameters to tomcat

    All applications hosted by a single tomcat container share a single JVM.
    To set JVM parameters, simply add following lines in startup.sh script:

    export CATALINA_OPTS="-Djava.security.auth.login.config=/usr/local/tomcat4/conf/MyProxyJAAS.conf"

    to enable the debug mode, change the bottom line in startup.sh to
    exec "$PRGDIR"/"$EXECUTABLE" jpda start "$@"

    There are two Axis engine configuration file, one for server side server-config.wsdd and another for client side, client-config.wsdd.
    server-config.wsdd will be automatically generated/updated for you when you use AdminClient tool deploy a new web service.
    The client side engine configuration file can be specified through JVM parameter, e.g. add following
    in your startup.sh to use test-client.wsdd:
    export CATALINA_OPTS="-Daxis.ClientConfigFile=/user/local/tomcat/webapps/xxx/WEB-INF/wsdd/test-client.wsdd"

    It looks like put client-config.wsdd under your WEB-INF directory wont work without specifying where JVM parameters manually.

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?