tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28441] - HTTP 500 editing Context
Date Sat, 17 Apr 2004 07:30:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28441>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28441

HTTP 500 editing Context





------- Additional Comments From phps@gmx.de  2004-04-17 07:30 -------
Full 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"/>
	<!-- Global JNDI resources -->
	<GlobalNamingResources>
		<!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
		<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>
		<!-- mysql database -->
		<Resource name="jdbc/accountingDB" auth="Container" type="javax.sql.DataSource"/>
		<ResourceParams name="jdbc/accountingDB">
			<parameter>
				<name>factory</name>
				<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
			</parameter>
			<parameter>
				<name>dataSourceName</name>
				<value>java:comp/env/jdbc/accountingDB</value>
			</parameter>
			<parameter>
				<name>defaultAutoCommit</name>
				<value>false</value>
			</parameter>
			<parameter>
				<name>maxActive</name>
				<value>100</value>
			</parameter>
			<parameter>
				<name>maxIdle</name>
				<value>30</value>
			</parameter>
			<parameter>
				<name>maxWait</name>
				<value>10000</value>
			</parameter>
			<!-- MySQL dB username and password for dB connections  -->
			<parameter>
				<name>username</name>
				<value>dummy</value>
			</parameter>
			<parameter>
				<name>password</name>
				<value>dummy</value>
			</parameter>
			<!-- Class name for the official MySQL Connector/J driver -->
			<parameter>
				<name>driverClassName</name>
				<value>com.mysql.jdbc.Driver</value>
			</parameter>
			<parameter>
				<name>url</name>
				<value>jdbc:mysql://localhost:3306/accounting?autoReconnect=true</value>
			</parameter>
		</ResourceParams>
	</GlobalNamingResources>
	<!-- Define the Tomcat Stand-Alone Service -->
	<Service name="Catalina">
		<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
		<Connector port="80" maxThreads="150" minSpareThreads="25"
maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000" disableUploadTimeout="true"/>
		<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
		<Connector port="8009" enableLookups="false" redirectPort="8443" debug="0"
protocol="AJP/1.3"/>
		<!-- Define the top level container in our container hierarchy -->
		<Engine name="Catalina" defaultHost="localhost" debug="0">
			<!-- Global logger unless overridden at lower levels -->
			<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">
				<!-- PB -->
				<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common"
resolveHosts="false"/>
				<!-- PB -->
				<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="localhost_log." suffix=".txt" timestamp="true"/>
				<!-- Tomcat Root Context -->
				<Context path="" docBase="ROOT" debug="0"/>
				<Context path="/accounting" docbase="accounting">
					<Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99"
dataSourceName="jdbc/accountingDB" digest="md5" userTable="employee"
userNameCol="employee_id" userCredCol="password" userRoleTable="role"
roleNameCol="role"/>
					<Logger className="org.apache.catalina.logger.FileLogger" directory="logs"
prefix="accounting.log" suffix=".txt" timestamp="true"/>
				</Context>
			</Host>
		</Engine>
	</Service>
</Server>

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


Mime
View raw message