tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Lazic <>
Subject Valve && Connectors && Request-Objects
Date Sat, 19 Aug 2006 19:40:51 GMT

today i have try to get some Infos from tomcat 4.1.x similar like

--- 5.5.x
mBeanServer.getAttribute(grpName, "requestCount"));

My main target is as follow:

currentConnections <= from connector if possible ;-)

Btw.: Is it true that mod_proxy_ajp and mod_jk make a tcp-session per

I have seen a in 4.1.32
connectors/coyote/src/java/org/apache/coyote/ which have
the infos but when i try to use this i get this error:

Javac: ${JAVA_HOME}/bin/javac -version
javac 1.5.0_05

OS: uname -a
Linux home1 2.6.17-1-686 #1 SMP Sat Jul 29 15:32:47 UTC 2006 i686

Distri: Debbian unstable

${JAVA_HOME}/bin/javac -deprecation -classpath ../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat-jk.jar:../apache-tomcat-4.1.32-LE-jdk14/common/lib/servlet.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/catalina.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat4-coyote.jar:../apache-tomcat-4.1.32-LE-jdk14/server/lib/tomcat-coyote.jar && rm LogData.jar && jar cf LogData.jar LogData.class &&
cp LogData.jar ../apache-tomcat-4.1.32-LE-jdk14/server/lib/LogData.jar cannot find symbol
symbol  : constructor RequestInfo(org.apache.catalina.Request)
location: class org.apache.coyote.RequestInfo
        RequestInfo rp = new RequestInfo(request).getRequestProcessor();
                         ^ cannot find symbol
symbol  : method Long(long)
location: class LogData
2 errors

I have try to replace the org.apache.catalina.Request to
org.apache.coyote.Request but i wasn't successfully :-(

If you interested you can get the .java file from:

Be warned it is in development status ;-)

I use this Connector-setting in server.xml:

 <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="9"/>

and this valve setting in <Engine ...:

<Valve className="LogData" prefix="LogData1-" suffix=".log"
rotatable="true" />

A statment like "unpossible with this connector" is also valid ;-)

Btw2.: there are some more methodes in RequestInfo-class which is also
      nice that i can use it ;-) (getRequestProcessingTime(),getProcessingTime(),...)

Please also tell me if i'am on the wrong way ;-)

Thanks for help && regards


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message