Author: kkolinko Date: Tue Jan 18 18:26:50 2011 New Revision: 1060515 URL: http://svn.apache.org/viewvc?rev=1060515&view=rev Log: Documentation fixes: there is no property "debug" on the Context, nor on several other classes (realms, authenticators) Updated cluster-server.xml sample file (aligned it with the default server.xml). CTR: docs and sample configuration files
Modified: tomcat/tc5.5.x/trunk/container/modules/cluster/etc/cluster-server.xml tomcat/tc5.5.x/trunk/container/modules/storeconfig-ha/test/conf/server.xml tomcat/tc5.5.x/trunk/container/modules/storeconfig/test/conf/server.xml tomcat/tc5.5.x/trunk/container/webapps/docs/html-manager-howto.xml tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml tomcat/tc5.5.x/trunk/container/webapps/docs/realm-howto.xml Modified: tomcat/tc5.5.x/trunk/container/modules/cluster/etc/cluster-server.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/modules/cluster/etc/cluster-server.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/modules/cluster/etc/cluster-server.xml (original) +++ tomcat/tc5.5.x/trunk/container/modules/cluster/etc/cluster-server.xml Tue Jan 18 18:26:50 2011 @@ -24,10 +24,10 @@ listens for a shutdown command on the indicated port. Note: A "Server" is not itself a "Container", so you may not - define subcomponents such as "Valves" or "Loggers" at this level. + define subcomponents such as "Valves" at this level. --> -<Server port="8005" shutdown="SHUTDOWN" debug="0"> +<Server port="8005" shutdown="SHUTDOWN"> <!-- Comment these entries out to disable JMX MBeans support --> @@ -37,10 +37,8 @@ (in the ClassLoader sense) of files to add to the default list. e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml" --> - <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" - debug="0"/> - <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" - debug="0"/> + <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> + <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> <!-- Global JNDI resources --> <GlobalNamingResources> @@ -73,7 +71,7 @@ but this is not required. Note: A "Service" is not itself a "Container", so you may not - define subcomponents such as "Valves" or "Loggers" at this level. + define subcomponents such as "Valves" at this level. --> <!-- Define the Tomcat Stand-Alone Service --> @@ -89,8 +87,6 @@ entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 5 documentation bundle for more detailed instructions): - * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or - later, and put the JAR files into "$JAVA_HOME/jre/lib/ext". * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) @@ -105,40 +101,33 @@ IP address of the remote client. --> - <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --> - <Connector className="org.apache.coyote.tomcat5.CoyoteConnector" - port="8080" minProcessors="5" maxProcessors="100" - enableLookups="true" redirectPort="8443" acceptCount="100" - debug="0" connectionTimeout="20000" - disableUploadTimeout="true" /> + <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --> + <Connector port="8080" maxHttpHeaderSize="8192" + maxThreads="150" minSpareThreads="25" maxSpareThreads="75" + enableLookups="false" redirectPort="8443" acceptCount="100" + connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to -1 --> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <!-- - <Connector className="org.apache.coyote.tomcat5.CoyoteConnector" - port="8443" minProcessors="5" maxProcessors="75" - enableLookups="true" disableUploadTimeout="true" - acceptCount="100" debug="0" scheme="https" secure="true"> - <Factory className="org.apache.coyote.tomcat5.CoyoteServerSocketFactory" - clientAuth="false" protocol="TLS" /> - </Connector> + <Connector port="8443" maxHttpHeaderSize="8192" + maxThreads="150" minSpareThreads="25" maxSpareThreads="75" + enableLookups="false" disableUploadTimeout="true" + acceptCount="100" scheme="https" secure="true" + clientAuth="false" sslProtocol="TLS" /> --> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> - <Connector className="org.apache.coyote.tomcat5.CoyoteConnector" - port="8009" minProcessors="5" maxProcessors="75" - enableLookups="true" redirectPort="8443" - acceptCount="10" debug="0" - protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> + <Connector port="8009" + enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> <!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> <!-- See proxy documentation for more information about using this. --> <!-- - <Connector className="org.apache.coyote.tomcat5.CoyoteConnector" - port="8082" minProcessors="5" maxProcessors="75" - enableLookups="true" - acceptCount="100" debug="0" connectionTimeout="20000" + <Connector port="8082" + maxThreads="150" minSpareThreads="25" maxSpareThreads="75" + enableLookups="false" acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> --> @@ -148,11 +137,11 @@ on to the appropriate Host (virtual host). --> <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie : - <Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1"> + <Engine name="Standalone" defaultHost="localhost" jmvRoute="jvm1"> --> <!-- Define the top level container in our container hierarchy --> - <Engine name="Standalone" defaultHost="localhost" debug="0"> + <Engine name="Standalone" defaultHost="localhost"> <!-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response @@ -172,11 +161,6 @@ <Valve className="org.apache.catalina.valves.RequestDumperValve"/> --> - <!-- Global logger unless overridden at lower levels --> - <Logger className="org.apache.catalina.logger.FileLogger" - prefix="catalina_log." suffix=".txt" - timestamp="true"/> - <!-- Because this Realm is here, an instance will be shared globally --> <!-- This Realm uses the UserDatabase configured in the global JNDI @@ -184,7 +168,7 @@ that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" - debug="0" resourceName="UserDatabase"/> + resourceName="UserDatabase"/> <!-- Comment out the old realm but leave here for now in case we need to go back quickly --> @@ -196,7 +180,7 @@ stored in a database and accessed via JDBC --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" @@ -205,7 +189,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" @@ -214,7 +198,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="sun.jdbc.odbc.JdbcOdbcDriver" connectionURL="jdbc:odbc:CATALINA" userTable="users" userNameCol="user_name" userCredCol="user_pass" @@ -222,7 +206,7 @@ --> <!-- Define the default virtual host --> - <Host name="localhost" debug="0" appBase="webapps" + <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> @@ -275,7 +259,6 @@ <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" name="FilipsCluster" - debug="10" serviceclass="org.apache.catalina.cluster.mcast.McastService" mcastAddr="228.0.0.4" mcastPort="45564" @@ -318,7 +301,7 @@ Xerces 2.1. Xerces 2.0.2 and Xerces 2.2 have bugs that prevent their use with Tomcat--> <!-- - <Host name="localhost" debug="0" appBase="webapps" + <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="true" xmlNamespaceAware="true"> --> @@ -337,8 +320,7 @@ user identity maintained across *all* web applications contained in this virtual host. --> <!-- - <Valve className="org.apache.catalina.authenticator.SingleSignOn" - debug="0"/> + <Valve className="org.apache.catalina.authenticator.SingleSignOn"/> --> <!-- Access log processes all requests for this virtual host. By @@ -353,16 +335,6 @@ pattern="common" resolveHosts="false"/> --> - <!-- Logger shared by all Contexts related to this virtual host. By - default (when using FileLogger), log files are created in the "logs" - directory relative to $CATALINA_HOME. If you wish, you can specify - a different directory with the "directory" attribute. Specify either a - relative (to $CATALINA_HOME) or absolute path to the desired - directory.--> - <Logger className="org.apache.catalina.logger.FileLogger" - directory="logs" prefix="localhost_log." suffix=".txt" - timestamp="true"/> - <!-- Define properties for each web application. This is only needed if you want to set non-default properties, or have web application document roots in places other than the virtual host's appBase @@ -370,7 +342,7 @@ <!-- Tomcat Root Context --> <!-- - <Context path="/reptest" docBase="reptest" debug="0"> + <Context path="/reptest" docBase="reptest"> </Context> --> Modified: tomcat/tc5.5.x/trunk/container/modules/storeconfig-ha/test/conf/server.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/modules/storeconfig-ha/test/conf/server.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/modules/storeconfig-ha/test/conf/server.xml (original) +++ tomcat/tc5.5.x/trunk/container/modules/storeconfig-ha/test/conf/server.xml Tue Jan 18 18:26:50 2011 @@ -27,7 +27,7 @@ define subcomponents such as "Valves" or "Loggers" at this level. --> -<Server port="8005" shutdown="SHUTDOWN" debug="0"> +<Server port="8005" shutdown="SHUTDOWN"> <!-- Comment these entries out to disable JMX MBeans support --> @@ -37,10 +37,8 @@ (in the ClassLoader sense) of files to add to the default list. e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml" --> - <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" - debug="0"/> - <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" - debug="0"/> + <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> + <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> <!-- Global JNDI resources --> <GlobalNamingResources> @@ -100,7 +98,7 @@ <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" - debug="0" connectionTimeout="20000" + connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0 --> @@ -118,13 +116,13 @@ <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" - acceptCount="100" debug="0" scheme="https" secure="true" + acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" - enableLookups="false" redirectPort="8443" debug="0" + enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> <!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> @@ -133,7 +131,7 @@ <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" - acceptCount="100" debug="0" connectionTimeout="20000" + acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> --> @@ -143,11 +141,11 @@ on to the appropriate Host (virtual host). --> <!-- You should set jvmRoute to support load-balancing via AJP ie : - <Engine name="Catalina" defaultHost="localhost" debug="0" jvmRoute="jvm1"> + <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <!-- Define the top level container in our container hierarchy --> - <Engine name="Catalina" defaultHost="localhost" debug="0"> + <Engine name="Catalina" defaultHost="localhost"> <!-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response @@ -174,7 +172,7 @@ that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" - debug="0" resourceName="UserDatabase"/> + resourceName="UserDatabase"/> <!-- Comment out the old realm but leave here for now in case we need to go back quickly --> @@ -186,7 +184,7 @@ stored in a database and accessed via JDBC --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" @@ -195,7 +193,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" @@ -204,7 +202,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="sun.jdbc.odbc.JdbcOdbcDriver" connectionURL="jdbc:odbc:CATALINA" userTable="users" userNameCol="user_name" userCredCol="user_pass" @@ -214,7 +212,7 @@ <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> - <Host name="localhost" debug="0" appBase="webapps" + <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> @@ -351,8 +349,7 @@ user identity maintained across *all* web applications contained in this virtual host. --> <!-- - <Valve className="org.apache.catalina.authenticator.SingleSignOn" - debug="0"/> + <Valve className="org.apache.catalina.authenticator.SingleSignOn"/> --> <!-- Access log processes all requests for this virtual host. By Modified: tomcat/tc5.5.x/trunk/container/modules/storeconfig/test/conf/server.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/modules/storeconfig/test/conf/server.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/modules/storeconfig/test/conf/server.xml (original) +++ tomcat/tc5.5.x/trunk/container/modules/storeconfig/test/conf/server.xml Tue Jan 18 18:26:50 2011 @@ -27,7 +27,7 @@ define subcomponents such as "Valves" or "Loggers" at this level. --> -<Server port="8005" shutdown="SHUTDOWN" debug="0"> +<Server port="8005" shutdown="SHUTDOWN"> <!-- Comment these entries out to disable JMX MBeans support --> @@ -37,10 +37,8 @@ (in the ClassLoader sense) of files to add to the default list. e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml" --> - <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" - debug="0"/> - <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" - debug="0"/> + <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/> + <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> <!-- Global JNDI resources --> <GlobalNamingResources> @@ -100,7 +98,7 @@ <Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" - debug="0" connectionTimeout="20000" + connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Note : To disable connection timeouts, set connectionTimeout value to 0 --> @@ -118,13 +116,13 @@ <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" - acceptCount="100" debug="0" scheme="https" secure="true" + acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" - enableLookups="false" redirectPort="8443" debug="0" + enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> <!-- Define a Proxied HTTP/1.1 Connector on port 8082 --> @@ -133,7 +131,7 @@ <Connector port="8082" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" - acceptCount="100" debug="0" connectionTimeout="20000" + acceptCount="100" connectionTimeout="20000" proxyPort="80" disableUploadTimeout="true" /> --> @@ -143,11 +141,11 @@ on to the appropriate Host (virtual host). --> <!-- You should set jvmRoute to support load-balancing via AJP ie : - <Engine name="Catalina" defaultHost="localhost" debug="0" jvmRoute="jvm1"> + <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <!-- Define the top level container in our container hierarchy --> - <Engine name="Catalina" defaultHost="localhost" debug="0"> + <Engine name="Catalina" defaultHost="localhost"> <!-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response @@ -174,7 +172,7 @@ that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" - debug="0" resourceName="UserDatabase"/> + resourceName="UserDatabase"/> <!-- Comment out the old realm but leave here for now in case we need to go back quickly --> @@ -186,7 +184,7 @@ stored in a database and accessed via JDBC --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority" connectionName="test" connectionPassword="test" @@ -195,7 +193,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL" connectionName="scott" connectionPassword="tiger" @@ -204,7 +202,7 @@ --> <!-- - <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" + <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="sun.jdbc.odbc.JdbcOdbcDriver" connectionURL="jdbc:odbc:CATALINA" userTable="users" userNameCol="user_name" userCredCol="user_pass" @@ -214,7 +212,7 @@ <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> - <Host name="localhost" debug="0" appBase="webapps" + <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> @@ -351,8 +349,7 @@ user identity maintained across *all* web applications contained in this virtual host. --> <!-- - <Valve className="org.apache.catalina.authenticator.SingleSignOn" - debug="0"/> + <Valve className="org.apache.catalina.authenticator.SingleSignOn"/> --> <!-- Access log processes all requests for this virtual host. By Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/html-manager-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/html-manager-howto.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/html-manager-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/html-manager-howto.xml Tue Jan 18 18:26:50 2011 @@ -393,8 +393,7 @@ web application Context just as if it we Tomcat <code>server.xml</code> configuration file. Here is an example for Tomcat running on Windows: <source> -<Context path="/foobar" docBase="C:\path\to\application\foobar" - debug="0"> +<Context path="/foobar" docBase="C:\path\to\application\foobar"> <!-- Link to the user database we will get roles from --> <ResourceLink name="users" global="UserDatabase" Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/jndi-datasource-examples-howto.xml Tue Jan 18 18:26:50 2011 @@ -208,7 +208,7 @@ resource to your <a href="config/context <source> <Context path="/DBTest" docBase="DBTest" - debug="5" reloadable="true" crossContext="true"> + reloadable="true" crossContext="true"> <!-- maxActive: Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle @@ -413,7 +413,7 @@ The Context element should look somethin <source> <Context path="/someApp" docBase="someApp" - crossContext="true" reloadable="true" debug="1"> + crossContext="true" reloadable="true"> <Resource name="jdbc/postgres" auth="Container" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/manager-howto.xml Tue Jan 18 18:26:50 2011 @@ -72,7 +72,7 @@ Manager web application <code>Context</c <code>$CATALINA_HOME/conf/[enginename]/[hostname]</code> folder. Here is an example: <pre> -<Context path="/manager" debug="0" privileged="true" +<Context path="/manager" privileged="true" docBase="/usr/local/kinetic/tomcat5/server/webapps/manager"> </Context> </pre> @@ -166,7 +166,7 @@ could be restricted by the remote IP add <code>RemoteAddrValve</code> or <code>RemoteHostValve</code>. Here is an example of restricting access to the localhost by IP address: <pre> -<Context path="/manager" debug="0" privileged="true" +<Context path="/manager" privileged="true" docBase="/usr/local/kinetic/tomcat5/server/webapps/manager"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.0\.0\.1"/> @@ -390,8 +390,7 @@ web application Context just as if it we Tomcat <code>server.xml</code> configuration file. Here is an example: <source> -<Context path="/foobar" docBase="/path/to/application/foobar" - debug="0"> +<Context path="/foobar" docBase="/path/to/application/foobar"> <!-- Link to the user database we will get roles from --> <ResourceLink name="users" global="UserDatabase" Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/realm-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/realm-howto.xml?rev=1060515&r1=1060514&r2=1060515&view=diff ============================================================================== --- tomcat/tc5.5.x/trunk/container/webapps/docs/realm-howto.xml (original) +++ tomcat/tc5.5.x/trunk/container/webapps/docs/realm-howto.xml Tue Jan 18 18:26:50 2011 @@ -361,7 +361,7 @@ default <code>$CATALINA_HOME/conf/server for using a MySQL database called "authority", configured with the tables described above, and accessed with username "dbuser" and password "dbpass":</p> <source> -<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" +<Realm className="org.apache.catalina.realm.JDBCRealm" driverName="org.gjt.mm.mysql.Driver" connectionURL="jdbc:mysql://localhost/authority?user=dbuser&amp;password=dbpass" userTable="users" userNameCol="user_name" userCredCol="user_pass" @@ -473,7 +473,7 @@ create table user_roles ( with the tables described above, and accessed with the JNDI JDBC DataSource with name "java:/comp/env/jdbc/authority".</p> <source> -<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99" +<Realm className="org.apache.catalina.realm.DataSourceRealm" dataSourceName="jdbc/authority" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name"/> @@ -786,7 +786,7 @@ application and that an anonymous connec the directory and retrieve role information:</p> <source> -<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" +<Realm className="org.apache.catalina.realm.JNDIRealm" connectionURL="ldap://localhost:389" userPattern="uid={0},ou=people,dc=mycompany,dc=com" roleBase="ou=groups,dc=mycompany,dc=com" @@ -826,7 +826,7 @@ userPassword: janet <p> This realm configuration would satisfy the new requirements:</p> <source> -<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" +<Realm className="org.apache.catalina.realm.JNDIRealm" connectionURL="ldap://localhost:389" userBase="ou=people,dc=mycompany,dc=com" userSearch="(mail={0})" @@ -851,7 +851,7 @@ the password from the directory and maki realm, you might use a realm configuration like this:</p> <source> -<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" +<Realm className="org.apache.catalina.realm.JNDIRealm" connectionName="cn=Manager,dc=mycompany,dc=com" connectionPassword="secret" connectionURL="ldap://localhost:389" @@ -1115,11 +1115,10 @@ documentation</a>.</p> <p>Here is an example of how your server.xml snippet should look.</p> <source> -<Realm className="org.apache.catalina.realm.JAASRealm" - appName="MyFooRealm" - userClassNames="org.foobar.realm.FooUser" - roleClassNames="org.foobar.realm.FooRole" - debug="99"/> +<Realm className="org.apache.catalina.realm.JAASRealm" + appName="MyFooRealm" + userClassNames="org.foobar.realm.FooUser" + roleClassNames="org.foobar.realm.FooRole"/> </source> <p>It is the responsibility of your login module to create and save User and --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org