You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Santosh Puranshettiwar <sa...@wirkle.com> on 2006/08/29 09:18:47 UTC
Problems configuring the RequestDumperValve
Here is my config file: -
<Context path="/mcs" docBase="mcs" debug="0" reloadable="false">
<Logger className="org.apache.catalina.logger.SystemOutLogger"/>
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
<Resource name="jdbc/mcs" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/mcs">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost/mirage?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com.mysql.jdbc.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>root</value>
</parameter>
<parameter>
<name>password</name>
<value>root</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>100</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>
</ResourceParams>
</Context>
OS: Windows XP
Tomcat version: 4.1.x
The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
But still the RequestDumperValue does not print anything on the console.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring the RequestDumperValve
Posted by Santosh Puranshettiwar <sa...@wirkle.com>.
That did it.
Thank you so much.
David Smith wrote:
> Yes... in 4.1, the context definition is supposed to be in
> $CATALINA_HOME/conf/server.xml, not on it's own under WEB-INF.
>
> Santosh Puranshettiwar wrote:
>
>> Any ideas?
>> Santosh Puranshettiwar wrote:
>>
>>> Here is my config file: -
>>> <Context path="/mcs" docBase="mcs" debug="0" reloadable="false">
>>>
>>> <Logger className="org.apache.catalina.logger.SystemOutLogger"/>
>>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>>
>>> <Resource name="jdbc/mcs" scope="Shareable"
>>> type="javax.sql.DataSource"/>
>>> <ResourceParams name="jdbc/mcs">
>>> <parameter>
>>> <name>factory</name>
>>>
>>> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>>> </parameter>
>>>
>>> <!-- DBCP database connection settings -->
>>> <parameter>
>>> <name>url</name>
>>>
>>> <value>jdbc:mysql://localhost/mirage?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8</value>
>>>
>>> </parameter>
>>> <parameter>
>>> <name>driverClassName</name>
>>> <value>com.mysql.jdbc.Driver</value>
>>> </parameter>
>>> <parameter>
>>> <name>username</name>
>>> <value>root</value>
>>> </parameter>
>>> <parameter>
>>> <name>password</name>
>>> <value>root</value>
>>> </parameter>
>>>
>>> <!-- DBCP connection pooling options -->
>>> <parameter>
>>> <name>maxWait</name>
>>> <value>10000</value>
>>> </parameter>
>>> <parameter>
>>> <name>maxIdle</name>
>>> <value>100</value>
>>> </parameter>
>>> <parameter>
>>> <name>maxActive</name>
>>> <value>100</value>
>>> </parameter>
>>> </ResourceParams>
>>> </Context>
>>>
>>> OS: Windows XP
>>> Tomcat version: 4.1.x
>>>
>>> The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
>>>
>>> But still the RequestDumperValue does not print anything on the
>>> console.
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring the RequestDumperValve
Posted by David Smith <dn...@cornell.edu>.
Yes... in 4.1, the context definition is supposed to be in
$CATALINA_HOME/conf/server.xml, not on it's own under WEB-INF.
Santosh Puranshettiwar wrote:
> Any ideas?
> Santosh Puranshettiwar wrote:
>
>> Here is my config file: -
>> <Context path="/mcs" docBase="mcs" debug="0" reloadable="false">
>>
>> <Logger className="org.apache.catalina.logger.SystemOutLogger"/>
>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>
>> <Resource name="jdbc/mcs" scope="Shareable"
>> type="javax.sql.DataSource"/>
>> <ResourceParams name="jdbc/mcs">
>> <parameter>
>> <name>factory</name>
>>
>> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>> </parameter>
>>
>> <!-- DBCP database connection settings -->
>> <parameter>
>> <name>url</name>
>>
>> <value>jdbc:mysql://localhost/mirage?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8</value>
>>
>> </parameter>
>> <parameter>
>> <name>driverClassName</name>
>> <value>com.mysql.jdbc.Driver</value>
>> </parameter>
>> <parameter>
>> <name>username</name>
>> <value>root</value>
>> </parameter>
>> <parameter>
>> <name>password</name>
>> <value>root</value>
>> </parameter>
>>
>> <!-- DBCP connection pooling options -->
>> <parameter>
>> <name>maxWait</name>
>> <value>10000</value>
>> </parameter>
>> <parameter>
>> <name>maxIdle</name>
>> <value>100</value>
>> </parameter>
>> <parameter>
>> <name>maxActive</name>
>> <value>100</value>
>> </parameter>
>> </ResourceParams>
>> </Context>
>>
>> OS: Windows XP
>> Tomcat version: 4.1.x
>>
>> The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
>>
>> But still the RequestDumperValue does not print anything on the console.
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring the RequestDumperValve
Posted by Santosh Puranshettiwar <sa...@wirkle.com>.
In windows, I am able to see all output on console. It must be the case
in Linux where the output goes in logs/catalina.out.
Mark Thomas wrote:
> Santosh Puranshettiwar wrote:
>
>> Any ideas?
>>
>>> <Logger className="org.apache.catalina.logger.SystemOutLogger"/>
>>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>>
>
> <snip/>
>
>
>>> The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
>>>
>>> But still the RequestDumperValue does not print anything on the console.
>>>
>
> >From the docs:
> Standard Output Logger (org.apache.catalina.logger.SystemOutLogger)
>
> The Standard Output Logger records all logged messages to whatever
> stream the standard output of Catalina is pointed at. The default
> Catalina startup script points this at file logs/catalina.out relative
> to $CATALINA_HOME. This logger supports no additional attributes.
>
> Therefore, I would not expect to see anything on the console but in
> logs/catalina.out
>
> Mark
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring the RequestDumperValve
Posted by Mark Thomas <ma...@apache.org>.
Santosh Puranshettiwar wrote:
> Any ideas?
>> <Logger className="org.apache.catalina.logger.SystemOutLogger"/>
>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
<snip/>
>> The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
>>
>> But still the RequestDumperValue does not print anything on the console.
>From the docs:
Standard Output Logger (org.apache.catalina.logger.SystemOutLogger)
The Standard Output Logger records all logged messages to whatever
stream the standard output of Catalina is pointed at. The default
Catalina startup script points this at file logs/catalina.out relative
to $CATALINA_HOME. This logger supports no additional attributes.
Therefore, I would not expect to see anything on the console but in
logs/catalina.out
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems configuring the RequestDumperValve
Posted by Santosh Puranshettiwar <sa...@wirkle.com>.
Any ideas?
Santosh Puranshettiwar wrote:
> Here is my config file: -
> <Context path="/mcs" docBase="mcs" debug="0" reloadable="false">
>
> <Logger className="org.apache.catalina.logger.SystemOutLogger"/>
> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>
> <Resource name="jdbc/mcs" scope="Shareable" type="javax.sql.DataSource"/>
> <ResourceParams name="jdbc/mcs">
> <parameter>
> <name>factory</name>
>
> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
> </parameter>
>
> <!-- DBCP database connection settings -->
> <parameter>
> <name>url</name>
>
> <value>jdbc:mysql://localhost/mirage?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8</value>
>
> </parameter>
> <parameter>
> <name>driverClassName</name>
> <value>com.mysql.jdbc.Driver</value>
> </parameter>
> <parameter>
> <name>username</name>
> <value>root</value>
> </parameter>
> <parameter>
> <name>password</name>
> <value>root</value>
> </parameter>
>
> <!-- DBCP connection pooling options -->
> <parameter>
> <name>maxWait</name>
> <value>10000</value>
> </parameter>
> <parameter>
> <name>maxIdle</name>
> <value>100</value>
> </parameter>
> <parameter>
> <name>maxActive</name>
> <value>100</value>
> </parameter>
> </ResourceParams>
> </Context>
>
> OS: Windows XP
> Tomcat version: 4.1.x
>
> The above lines are in a file named mcs.xml inside webapps/mcs/WEB-INF
>
> But still the RequestDumperValue does not print anything on the console.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org