Hi,
Any reasons as to why not set the directives in the httpd.conf instead of
.htaccess ?
.htaccess only matters to requests for the directory it is in.
Fred
Aaron Brown-5 wrote:
I've been trying to block the litefinder malicious bot which scours our
site
every day and tries to access
Hi,
btw, in your log format line you have %{JK_REQUEST_DURATON}n instead of
%{JK_REQUEST_DURATION}n see the missing I.
I am using 1.2.25 and i get times alike 0.0275 when using Apache 2.2
Rgds, Fred
Ahmed Musa wrote:
Hallo,
I am logging the mod_jk Output through the Apache access_log -
Hi,
I have a servlet that loops and writes normally to catalina.out with
System.out.println(iteration);
I can tail -f catalina.out and see the iterations as they happen.
The problem is that after configuring the applications logging.properties as
shown below and set the application
Hi,
To use log4j the documentation
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
suggest that we need to:
1. Replace $CATALINA_HOME/bin/tomcat-juli.jar with the
output/extras/tomcat-juli.jar.
2. Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib.
What do these file do?
is an interesting one. I remember seeing somewhere (tomcat
docs?) a warning against app reloading; that doing so was a memory leak soon
or later.
Many Thanks - Fred
fredk2 wrote:
Hi,
To use log4j the documentation
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
suggest that we need to:
1
Hi,
still reading :-) http://tomcat.apache.org/tomcat-6.0-doc/logging.html
I have setup log4j as above, but with a little twist.
If you permission $CATALINA_HOME as read only and you want to customize the
log4j.properties then you need to install the log4j1.2.14.jar and
log4j.properties in
java.util.logging to log4j for the container. and you don't need those
steps if all you want is log4j for a webapp
Filip
fredk2 wrote:
Hi,
still reading :-) http://tomcat.apache.org/tomcat-6.0-doc/logging.html
I have setup log4j as above, but with a little twist.
If you permission
The mod_rewrites encoding can be changed with option
'noescape|NE' (no URI escaping of output)
This flag keeps mod_rewrite from applying the usual URI escaping rules to
the result of a rewrite. Ordinarily, special characters (such as '%', '$',
';', and so on) will be escaped into their hexcode
Hi,
The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork
says:
In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM
(Multi-Processing Module), some areas of mod_jk code need to be synchronized
to make it thread-safe. Because configure can not easily
Hi,
Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious
about something.
In what case do you use mod_jk jni ?
Thank you - Fred
--
View this message in context:
http://www.nabble.com/when-does-use-mod_jk-and-jni--tf4417743.html#a12600560
Sent from the Tomcat - User
Many thanks for your reply.
Is it always implied that if an apache module is deemed 'thread safe' it
also implies that it will work in prefork environment maybe at the cost of
raw performance ?
Thanks again - Fred
Rainer Jung-3 wrote:
fredk2 wrote:
Hi,
The documentation for mod_jk (eg
it..
Regards,
Rainer
fredk2 wrote:
Hi,
Reading the documentation for mod_jk (1.2.25 --enable-jni), I am
curious
about something.
In what case do you use mod_jk jni ?
Thank you - Fred
-
To start a new topic, e
hi
I have not used it in long while but i think it required:
JkRequestLogFormat %w %V %U %s %T %B %H %m
Rgds - Fred
Gerhardus.Geldenhuis wrote:
Hi
Does anyone know if the script tomcat_trend.pl requires a specific
JkRequestLogFormat string.
Doing a search through the list archives
you know the code of the module good enough to judge about
its MPM independancy.
Regards,
Rainer
fredk2 wrote:
Many thanks for your reply.
Is it always implied that if an apache module is deemed 'thread safe' it
also implies that it will work in prefork environment maybe at the cost
Hi,
Reading the mod_jk (1.2.25) compilation documentation for --enable-flock it
says:
In case the operating system supports flock system call use this flag to
enable this faster locks that are implemented as system call instead
emulated by GNU C library.
However those locks does not work on NFS
Hi,
When is mod_jk 1.2.27 expected to be stable?
I just stumbled accross the change log for the jk connector which shows an
interesting feature: the ability to configure a reply_timeout not only per
worker, but instead per mapping.
Many thanks - so far it does not break anything (Linux/Solaris), but I do not
have a good (application/)test to confirm the reply_timout feature.
Rgds - Fred
Rainer Jung-3 wrote:
Hi Fred,
fredk2 schrieb:
Hi,
When is mod_jk 1.2.27 expected to be stable?
I just stumbled accross
Hi,
Delete WEB-INF/lib/servlet.jar.
I always wonder: why do some applications have the servlet.jar in
WEB-INF/lib when the 'curent' one is already in the ./common/lib ?
INFO:
validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar)
- jar not loaded. See Servlet Spec
Hi,
when you set a load balancer (mod_jk v1.2.26) with 2 workers:
worker.myWorker.type=lb
worker.myWorker.balance_workers=tc1Worker, tc2Worker
and one of the worker's host cannot be resolved:
worker.tc2Worker.host=mytest.mydom.com
Then Apache will not start.
- since the other
Hi,
i do not think so, but what I did is to set an contex ROOT.xml (not sure
the upper case is needed - i would think it is) and then set the docBase
(relative to webapps or fully qualified) to your app eg.
./conf/Catalina/localhost/ROOT.xml
Context docBase=${catalina.base}/mydir/myapp
file (some pain).
Rgds
Fred
Rainer Jung-3 wrote:
fredk2 schrieb:
Hi,
when you set a load balancer (mod_jk v1.2.26) with 2 workers:
worker.myWorker.type=lb
worker.myWorker.balance_workers=tc1Worker, tc2Worker
and one of the worker's host cannot be resolved
Hi,
can you set the umask before you run jsvc ?
Rgds
Fred
Gunnar Boström wrote:
Hi,
I can start and stop Tomcat 5.5 with the jsvc program but the problem is
that the pid file is created with permissions 600 and owned by root.
I want to be able to read the pid file to check if the
Hi,
Currently the pid file is set when you run catalina.sh (unix/linux)
if [ ! -z $CATALINA_PID ]; then
echo $! $CATALINA_PID
fi
In some situation (when using sudo, su, catalina.out piped to a log rotation
program) it is harder and possibly prone to error to get the right
use jsvc instead of the shell scripts.
--David
fredk2 wrote:
Hi,
Currently the pid file is set when you run catalina.sh (unix/linux)
if [ ! -z $CATALINA_PID ]; then
echo $! $CATALINA_PID
fi
In some situation (when using sudo, su, catalina.out piped to a log
rotation
hi:
As far as have seen there is no SSL support for AJP/1.3 - the trafic is in
clear between the Apache and tomcat using mod_jk.
I guess with apache 2 you can use mod_proxy and ssl to a tomcat using the
http connector with ssl.
If you have apache and tomcat on separate servers you might have
Hi,
although I have not tested this personally, but I was told that mod_proxy
(_ajp) does not have the Auto Flush option that you can set with mod_jk and
thus creates problem for streaming applications.
I wonder if others came accross this problem ?
Rgds - Fred
Hassan Schroeder-2 wrote:
ooops - I need to spend more time reading the fine manual :-)
tx for the reminder :)
Hassan Schroeder-2 wrote:
On 12/8/06, fredk2 [EMAIL PROTECTED] wrote:
although I have not tested this personally, but I was told that mod_proxy
(_ajp) does not have the Auto Flush option that you can
Hi,
I am working on a project for a customer and before i put the final dot i'd
like to know if 1.2.29 is a couple weeks off or sometime next year sometime.
many thanks - Fred
--
View this message in context:
good to know the rythm :) thanks - fred
Mladen Turk-3 wrote:
On 11/23/2009 05:22 PM, fredk2 wrote:
Hi,
I am working on a project for a customer and before i put the final dot
i'd
like to know if 1.2.29 is a couple weeks off or sometime next year
sometime.
Should be by the end
hi,
in your tomcat server's webapp directory create a directory ./ROOT (in caps)
and copy your application in there. Then restart tomcat.
In the workers.properties set the JkMount /*
see: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
Alternatively you can set the context
Hi,
I was doing some stress test (with apache ab, 100 users, 100K requests) to
compare an Apache prefork and worker mpm. The test url is a simple hello
servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with only
the Apache set to worker mpm I see following error messages in
Hi Rainer,
your comment about the watchdog sounds interesting. When you load balance
it would seem useful to get feedback from Tomcat itself about its load so
that the module can adjust dynamically its load (lbfactor) based on the
Tomcat's performance rather than a session/socket count. One can
:
On 06.02.2009 18:13, fredk2 wrote:
I was doing some stress test (with apache ab, 100 users, 100K requests)
to
compare an Apache prefork and worker mpm. The test url is a simple hello
servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with
only
the Apache set to worker mpm I
is a fraction faster
than posixsem which is a fraction faster than pthread. No Deadlocks, but
with fcntl.
Thanks again - Fred
Rainer Jung-3 wrote:
On 06.02.2009 20:40, fredk2 wrote:
Do I understand you correctly that when Mr. Orton said to never use
pthread
nor posixsem mutex (http
I would be better...The apache httpd web server is more versatile and its
vulnerabilities are better researched. You can also add mod_security and
other modules to further protect the Tomcat against common attacks (assuming
you do not use a WAF firewall). Furthermore you can add more Tomcats and
Hi,
I understand that when it comes to security you do not want to start the
service eg. if the certificate is corrupted you do not want the ssl server
to start full stop or if Apache cannot bind to the hostname then it cannot
start, etc... .
However, in this case there can be a few reasons why
I was about to say the same earlier, but when i verified with the version
(2.3.2) I have installed last month AJP is not listed anymore...
Rgds - Fred
Anthony J. Biacco wrote:
Fyi, you should be able to use jmeter to test AJP connections
-Tony
---
Manager, IT
Hi Jan,
I believe you can put the log4j.properties into the
approot/WEB-INF/classes and the log4j-version.jar and
commons-logging.jar into the related WEB-INF/lib
see http://tomcat.apache.org/tomcat-5.5-doc/logging.html
I tested with the following sample properties for test = DEBUG will
Hi:
I can succesfully compile mod_jk 1.2.18 against Apache 2.2.2 (configure
--with-apxs and make), but when I compile against 1.3.27 and try to start
apache I get the following error:
Solaris 8:
Syntax error on line 8 of /test/site/conf/apache-tomcat_jk.conf:
Cannot load
Hi Rainer,
Wonderful, many many thanks - your patch worked beautifully. I have no more
errors with 1.3.27 on Solaris 8 nor Linux.
(my apologies for the delay - I wasted time experimenting with the patch
command on Solaris and Linux :-(
I am opening another email thread about some strange
Hi:
These following issues are observed with mod_jk 1.2.18 on Linux and Solaris
8 with apache 1.3.27 and 2.2.2 (4 combinations).
issue 1:
With mod_jk 1.2.15 i set my jk log level:
JkLogFile logs/mod_jk.log
#JkLogLevel info
JkRequestLogFormat %w %V %U %s %T %B %H %m
While
could it be that the loading of the module and the related configuration
?must? be outside of the virtualHost /VirtualHost section ?
LoadModule jk_module modules/mod_jk.so
kWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
--
View this message in context:
Hi Rainer:
Many thanks for your answers (and fast!).
Why do you expect a 404 in case Tomcat is down? If the request matches
mod_jk JkMount config, it should try to send to tomcat and the result
would be some 50X?
What I meant to say was that when previously you might have had a missing
i think you need this in your httpd.conf mod_jk related configuration
section:
JkOptions +FlushPackets
Rgds, Fred
Marcio Camurati wrote:
Hi everyone,
We have a application that run at the Tomcat container. This application
was made at the Tomcat 4.1 using the Mod_jk 1.2.12 with this
Hi,
Workers2.properties was used for mod_jk2. This product is not maintained
anymore. Use mod_jk which is actively maintained by some cool developer(s)
:-) It is much better documented and featured.
see http://tomcat.apache.org/connectors-doc/
Rgds, FredK
--
View this message in context:
Hi,
In Tomcat 5.5.16 - I forgot to define a context xml file for my application
and got status error code 400 which was puzzling. After I added a ROOT
subdirectory to my webapps directory I got the status code 404, which was
less confusing.
Questions:
- I checked the http://tomcat.apache.org
Hi,
I have an old client that does not understand the Transfer-Encoding:
chunked. My tomcat response is chunked with hex 2000 (8K and a little bit
less via AJP: 1FF8).
Is there a way to configure Tomcat's chunk size to e.g 100K or another
question where or why is it set to 8K? Interestingly,
:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Fred,
On 2/12/2010 2:48 PM, fredk2 wrote:
I have an old client that does not understand the Transfer-Encoding:
chunked. My tomcat response is chunked with hex 2000 (8K and a little
bit
less via AJP: 1FF8).
Do you mean that it's returned
Hi,
I am looking at a trace a friend made which raised my curiosity:
[Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace]
ajp_read_into_msg_buff::jk_ajp_common.c (1188): enter
[Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace]
ajp_read_fully_from_server::jk_ajp_common.c (1140): enter
49 matches
Mail list logo