SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


netwareconfigtomcat
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

netwareconfigtomcat [2013/04/21 11:00] (current)
sjoerd created
Line 1: Line 1:
 += NetWare Config File: Tomcat =
  
 += Original file =
 +
 +== tomcat4.ncf ==
 +  \\server\sys\tomcat\4\bin
 +<​code>​
 +; Description:​
 +;  This is a sample NCF file for starting the application instance of Tomcat. ​
 +;
 +;  This NCF file assumes tomcat is located on the sys volume in the tomcat/4
 +;  directory.
 +;  If different than sys:/​tomcat/​4/​bin then this NCF needs to be MODIFIED to
 +;  reflect to where tomcat was installed.
 +
 +setenv CATALINA_OPTS=-vm160m -Xmx256m -Djavax.net.ssl.trustStore=sys:/​adminsrv/​conf/​.keystore -Dsun.io.useCanonCaches=false
 +
 +; we use LDAPVerifier here, to ensure LDAP connectivity before starting up.
 +; the first argument is a pointer to the config file so that tccheck can 
 +; determine what LDAP host it needs to ping.
 +; The part in quotes is the command we will be executing.
 +; the number at the end represents the number of retries to do, a second apart
 +java -classpath sys:/​adminsrv/​tccheck.jar;​sys:/​adminsrv/​lib/​jdom.jar com.novell.application.tomcat.util.tccheck.LDAPVerifier sys:/​tomcat/​4/​conf/​server.xml "​sys:/​tomcat/​4/​bin/​startup %1 %2 %3 %4 %5 %6 %7 %8 %9" 40
 +</​code>​
 +
 +== tomcat5.ncf ==
 +  \\server\sys\tomcat\5.0\bin
 +<​code>​
 +; Description:​
 +;  This is a sample NCF file for starting the application instance of Tomcat. ​
 +;
 +;  This NCF file assumes tomcat is located on the sys volume in the {install.perfix}
 +;  directory.
 +;  If different than sys:/​tomcat/​5.0/​bin then this NCF needs to be MODIFIED to
 +;  reflect to where tomcat was installed.
 +
 +setenv CATALINA_OPTS= -vm160m -Xmx256m -Djavax.net.ssl.trustStore=sys:/​adminsrv/​conf/​.keystore -Dsun.io.useCanonCaches=false
 +
 +; we use LDAPVerifier here, to ensure LDAP connectivity before starting up.
 +; the first argument is a pointer to the config file so that tccheck can 
 +; determine what LDAP host it needs to ping.
 +; The part in quotes is the command we will be executing.
 +; the number at the end represents the number of retries to do, a second apart
 +java -classpath sys:/​adminsrv/​tccheck.jar;​sys:/​adminsrv/​lib/​jdom.jar com.novell.application.tomcat.util.tccheck.LDAPVerifier sys:/​tomcat/​5.0/​conf/​server.xml "​sys:/​tomcat/​5.0/​bin/​startup %1 %2 %3 %4 %5 %6 %7 %8 %9" 40
 +</​code>​
 +
 += Enable tomcat for proxy usage =
 +Replace the original line with this line and change the values to the correct ones for your environment:​
 +<​code>​
 +setenv CATALINA_OPTS=-vm160m -Xms128M -Xmx512m -Djavax.net.ssl.trustStore=sys:/​adminsrv/​conf/​.keystore -Dsun.io.useCanonCaches=false -Dhttp.proxyHost=<​ipaddressproxyserver>​ -Dhttp.proxyPort=<​portproxyserver>​ -Dhttp.nonProxyHosts=10.*
 +</​code>​
 +
 += Config file template =
 +This is the template I usually use for tomcat, the memory settings are better for iManager and stuff like GroupWise WebAccess (tomcat4):
 +<​code>​
 +; TOMCAT start parameters:
 +; Memory: -Xms128M -Xmx512m
 +; Proxyhost:​-Dhttp.proxyHost=proxy.company.local ​
 +; Proxyport:​-Dhttp.proxyPort=8080/​3128
 +;;; 8080: default for bordermanager\
 +;;; 3128: defauylt for squid 
 +; NoProxy:​-Dhttp.nonProxyHosts=10.*
 +
 +
 +setenv CATALINA_OPTS=-vm160m -Xms128M -Xmx512m -Djavax.net.ssl.trustStore=sys:/​adminsrv/​conf/​.keystore -Dsun.io.useCanonCaches=false -Dhttp.proxyHost=proxy.company.local -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=10.*
 +
 +; we use LDAPVerifier here, to ensure LDAP connectivity before starting up.
 +; the first argument is a pointer to the config file so that tccheck can 
 +; determine what LDAP host it needs to ping.
 +; The part in quotes is the command we will be executing.
 +; the number at the end represents the number of retries to do, a second apart
 +java -classpath sys:/​adminsrv/​tccheck.jar;​sys:/​adminsrv/​lib/​jdom.jar com.novell.application.tomcat.util.tccheck.LDAPVerifier sys:/​tomcat/​4/​conf/​server.xml "​sys:/​tomcat/​4/​bin/​startup %1 %2 %3 %4 %5 %6 %7 %8 %9" 40
 +</​code>​
 +
 += Sources =
 +[[http://​www.novell.com/​support/​php/​search.do?​cmd=displayKC&​docType=kc&​externalId=3725347&​sliceId=1&​docTypeID=DT_TID_1_1&​dialogID=37984796&​stateId=1%200%2037980664|Novell documentation on setting up proxy access for tomcat]] ​
 +
 +{{tag>​config netware tomcat}}
netwareconfigtomcat.txt ยท Last modified: 2013/04/21 11:00 by sjoerd