Advertise on warmetal.nl!
Click for more information
about advertising here.

Did you find this website useful? Did I save you a lot of time?
Please consider donating to support this site:

 

NetWare Config File: tomcat

Original file

tomcat4.ncf

\\server\sys\tomcat\4\bin
; 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

tomcat5.ncf

\\server\sys\tomcat\5.0\bin
; 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

Enable tomcat for proxy usage

Replace the original line with this line and change the values to the correct ones for your environment:
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.*

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):
; 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

Sources

Discussion

Enter your comment:
 
netwareconfigtomcat.txt · Last modified: 2010/12/31 13:19 by sjoerd