tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Benussi" <mark_benu...@hotmail.com>
Subject Placing a LifecycleListener in my server.xml
Date Wed, 27 Jul 2005 09:55:24 GMT
Anyone have any ideas where on earth I put my class that implements the
LifecycleListener (In a jar in my WEB-INF/lib) as I don't seem to have a
context in my server.xml.

<Server port="8005" shutdown="SHUTDOWN" debug="0">
	<Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
	<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
	<GlobalNamingResources>
		<Environment name="simpleValue" type="java.lang.Integer"
value="30"/>
		<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User database that can
be updated and saved">
    </Resource>
		<ResourceParams name="UserDatabase">
			<parameter>
				<name>factory</name>
	
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
			</parameter>
			<parameter>
				<name>pathname</name>
				<value>conf/tomcat-users.xml</value>
			</parameter>
		</ResourceParams>
	</GlobalNamingResources>
	<Service name="Catalina">
		<Connector port="80" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75" enableLookups="false" redirectPort="443"
acceptCount="100" debug="0" connectionTimeout="20000"
disableUploadTimeout="true"/>
		<Connector port="443" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true" clientAuth="false"
sslProtocol="TLS"/>
		<Connector port="8009" enableLookups="false"
redirectPort="443" debug="0" protocol="AJP/1.3"/>
		<Engine name="Catalina" defaultHost="localhost" debug="0">
			<Logger
className="org.apache.catalina.logger.FileLogger" prefix="catalina_log."
suffix=".txt" timestamp="true"/>
			<Realm
className="org.apache.catalina.realm.UserDatabaseRealm" debug="0"
resourceName="UserDatabase"/>
			<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true" xmlValidation="false"
xmlNamespaceAware="false">
				<Logger
className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="localhost_log." suffix=".txt" timestamp="true"/>
			</Host>
		</Engine>
	</Service>
</Server>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message