RE: Help with mod_jk and Apache 2.2

2009-04-15 Thread Security Management
Andre,

I removed the deprecated lines from the workers.properties, and added the
JkMountCopy that you indicated.

Things work now.

The strange thing is, I'm not using a virtual host (name or IP based), it's
the canned apache installation for Fedora.

Maybe this is what did it??

I created a mod_jk.conf in /etc/httpd/conf.d, which on Fedora, all files in
this directory get loaded at the start of the service, and in the main
configuration (not in the Directory /var/www/html element of the config
file).  Was that the problem, adding all the configuration in the global
section, so it was not being seen in that site directive of httpd?

If so, the documentation was not clear to me what has to go in the global
config and what has to go in the specific site configuration.  I did
actually read the note about virtual hosts, but it did not indicate I need
to add the mount copy.  If I have time, I'll do some more testing and see
exactly what needs to go where to not need the copy, but I don't have time
at the moment.

Thanks,
Mike.


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 6:06 PM
To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Security Management wrote:
 OK, here is the error (note that I have renamed it, I was just making sure
I
 was seeing what I thought I was).  Webapp works on 8080, apache restarts
 without complaining, I verified the port is the default for the worker
type
 in server.xml, and I am stumped.  Thanks for looking!
 
 Server.xml bit:
 
 Connector port=8009 
enableLookups=false redirectPort=8443
protocol=AJP/1.3
 /
 
 The error in the mod_jk logs:
 
 [Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug]
jk_translate::mod_jk.c
 (3419): missing uri map for sirrus.smc:/smc-appsuite/index
 [Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug]
 jk_map_to_storage::mod_jk.c (3579): missing uri map for
 sirrus.smc:/smc-appsuite/index
 [Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug]
jk_translate::mod_jk.c
 (3419): missing uri map for sirrus.smc:/smc-appsuite
 [Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug]
 jk_map_to_storage::mod_jk.c (3579): missing uri map for
 sirrus.smc:/smc-appsuite
 


 Here is the mod_jk.conf bit:
 
 LoadModule jk_module modules/mod_jk.so
 
 JkWorkersFile /etc/httpd/conf.d/workers.properties
 
 #JkMountFile /etc/httpd/conf.d/uriworkermap.properties
 JkMount /smc-appsuite worker1
 JkMount /smc-appsuite/* worker1
 
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevel debug
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 JkShmFile /var/log/httpd/JkShmFile

I think I get it.
Are you by any chance using this within a VirtualHost in Apache ?
(I mean, are your browser HTTP calls directed to a VirtualHost ?)

If yes, then try adding a line
JkMountCopy All
to the lines above (in the main Apache server configuration), and retry.

If it now works, make sure you read this :
http://tomcat.apache.org/connectors-doc/reference/apache.html
and specifically the part about JkMountCopy.

You would only be one among many to get bitten by this..


 
 Here is the workers.properties:
 
 workers.tomcat_home=/var/www/apache-tomcat-5.5.27/
 
 workers.java_home=/usr/java/latest

Note: As far as I know, the above two properties are deprecated, and 
should no  longer be used.

 
 ps=/
 
 worker.list=worker1
 
 worker.worker1.type=ajp13
 worker.worker1.host=localhost

I would still add
worker.worker1.port=8009

 
 
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 4:32 PM
 To: Security Management
 Subject: Re: Help with mod_jk and Apache 2.2
 
 Antonio, ya me has perdido.
 
 Would you mind re-posting the content of your 3 files, as they are now ?
 
 Alternatively :
 - comment the line JkMountFile
 - add instead the two following lines
 JkMount /appsuite worker1
 JkMount /appsuite/* worker1
 
 and tell us if that works.
 (That is, assuming that your webapp is still at /appsuite in Tomcat)
 
 
 
 Security Management wrote:
 OK, I was switching the name to make sure the logs switched the name and
 stuff.

 It's consistent in the file.

 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 4:19 PM
 To: Tomcat Users List
 Subject: Re: Help with mod_jk and Apache 2.2

 Security Management wrote:
 Yeah, I saw that, and it's now:

 /smc-appsuite|/*=worker1

 Which should match /appsuite/ and /appsuite/*
 Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
 not like before, /appsuite ?
 If you keep changing the data between questions, it becomes hard to
 follow.
 Still not working, though.  Same problem.  Any more ideas?

 Thanks for the help,
 Mike.

 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 10:03 AM
 To: Tomcat Users List
 Subject: Re: Help

Re: Help with mod_jk and Apache 2.2

2009-04-15 Thread André Warnier

Security Management wrote:

Andre,

I removed the deprecated lines from the workers.properties, and added the
JkMountCopy that you indicated.

Things work now.

The strange thing is, I'm not using a virtual host (name or IP based), it's
the canned apache installation for Fedora.

Maybe this is what did it??

[...]


Hi.
This now being more of an Apache configuration issue, it is getting a 
bit off-topic on this list.
So since your urgent issue with mod_jk seems solved, let me just give a 
couple of suggestions, and if you want to explore this further later on, 
feel free to contact me off-list, or post on the Apache httpd user list.


I don't know Fedora per se, so what follows is a bit tentative.

What I suspect is that, unknown to you, the Fedora Apache installation 
may be defining a Virtual Host anyway, although only a default one.
There is an easy way to find out.  At the command line, type 
/usr/sbin/apache2ctl -S (you may need to adjust the path to that 
command).  If you get an output somewhat like this :


VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
 default server evm2.mycompany.com 
(/etc/apache2/sites-enabled/.default:1)


then it means you do have virtual hosts.


I created a mod_jk.conf in /etc/httpd/conf.d, which on Fedora, all files in
this directory get loaded at the start of the service, and in the main
configuration (not in the Directory /var/www/html element of the config
file).  Was that the problem, adding all the configuration in the global
section, so it was not being seen in that site directive of httpd?


No, it is fairly logical to add it in the global section.
I explain below.


If so, the documentation was not clear to me what has to go in the global
config and what has to go in the specific site configuration.
There are some things that could be improved in the mod_jk 
documentation.  The mod_jk developers are aware of this, and would 
welcome some help.  I'm in the early stages of trying to do that. If you 
can point to what wasn't clear to you (the specific page/section), I 
could start around there.


  I did

actually read the note about virtual hosts, but it did not indicate I need
to add the mount copy.  If I have time, I'll do some more testing and see
exactly what needs to go where to not need the copy, but I don't have time
at the moment.

There is nothing wrong with the JkMountCopy per se, and you should 
probably not try to remove it. It can be very practical.


Maybe the first aspect you should be aware of - if you aren't already - 
is that just about every OS, and every distribution of Linux, has its 
own schema for dicing up and laying out the Apache configuration files, 
and adding its own specific scripts and configuration methods.
The standard Apache configuration has all of Apache installed under a 
top directory like /usr/local/apache2, with a single configuration file 
/usr/local/apache2/conf/httpd.conf, and does not explicitly define 
VirtualHost's (an example exists in the standard httpd.conf, but it is 
not activated).
The packagers of Linux distributions of Apache on the other hand (and 
for a whole series of good reasons, this is no critic), seem to have a 
great deal of fun splitting up Apache and its configuration in a maze of 
subdirectories and files all over the filesystem.
It is usually quite practical on the one specific platform this is 
written for (because it makes it easier to update the software, 
load/unload additional modules, create additional virtual hosts etc..), 
but makes it a bit harder for someone who is jumping from one system to 
another to find where things are.
You generally end up with various schemes and bits under /etc/init.d, 
/etc/apache2, /etc/apache2/*, /etc/sysconfig, /var/lib/apache2, 
/usr/local/lib/apache2, /usr/share/www, /var/www, /srv/www, and so on, 
plus a spaghetti-bowl of symbolic links.


All of this to say that it is just not possible for the mod_jk 
documentation to describe in detail where you are likely to find what in 
the real world, and what will be included from where to where and in 
what order.
The same situation exists for Apache itself and for Tomcat, which is why 
you'll often see on this forum exhortations to de-install the 
platform-specific version and re-install a real Tomcat like ${deity} 
mandated (and which is also for me a devious way of keeping this 
rambling post on-topic).


Let's get back to mod_jk though.
But first let's talk about Virtual Hosts.

When an Apache server is configured with name-based virtual hosts, the 
basic configuration should be seen as merely a set of default values 
for the virtual hosts.
Then the first defined virtual host is the default virtual host, the 
one which inherits all these default values, and responds to all 
requests that arrive here, but have no well-defined DNS-name to which 
they are addressed (this being only a figure of speech).
Then usually, you start 

Re: Help with mod_jk and Apache 2.2

2009-04-15 Thread Rainer Jung
Hi André,

+1 to your forthcoming documentation contributions.

Great explanation.

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-15 Thread Security Management
Well, I'll be damned, I do have virtual hosts:

VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443  sirrus.smc (/etc/httpd/conf.d/ssl.conf:81)
*:*sirrus.smc
(/etc/httpd/conf.d/system-config-httpd.conf:314)
Syntax OK

Andre, I don't know how long that would have taken me without the help, but
it would have been a lot longer.

Thanks a bunch.  I will investigate further, but it's definitely OT for this
list at this point.

Mike.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Wednesday, April 15, 2009 10:36 AM
To: 'Tomcat Users List'
Subject: Re: Help with mod_jk and Apache 2.2

Security Management wrote:
 Andre,
 
 I removed the deprecated lines from the workers.properties, and added the
 JkMountCopy that you indicated.
 
 Things work now.
 
 The strange thing is, I'm not using a virtual host (name or IP based),
it's
 the canned apache installation for Fedora.
 
 Maybe this is what did it??
[...]


Hi.
This now being more of an Apache configuration issue, it is getting a 
bit off-topic on this list.
So since your urgent issue with mod_jk seems solved, let me just give a 
couple of suggestions, and if you want to explore this further later on, 
feel free to contact me off-list, or post on the Apache httpd user list.

I don't know Fedora per se, so what follows is a bit tentative.

What I suspect is that, unknown to you, the Fedora Apache installation 
may be defining a Virtual Host anyway, although only a default one.
There is an easy way to find out.  At the command line, type 
/usr/sbin/apache2ctl -S (you may need to adjust the path to that 
command).  If you get an output somewhat like this :

VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
  default server evm2.mycompany.com 
(/etc/apache2/sites-enabled/.default:1)

then it means you do have virtual hosts.

 I created a mod_jk.conf in /etc/httpd/conf.d, which on Fedora, all files
in
 this directory get loaded at the start of the service, and in the main
 configuration (not in the Directory /var/www/html element of the
config
 file).  Was that the problem, adding all the configuration in the global
 section, so it was not being seen in that site directive of httpd?
 
No, it is fairly logical to add it in the global section.
I explain below.

 If so, the documentation was not clear to me what has to go in the global
 config and what has to go in the specific site configuration.
There are some things that could be improved in the mod_jk 
documentation.  The mod_jk developers are aware of this, and would 
welcome some help.  I'm in the early stages of trying to do that. If you 
can point to what wasn't clear to you (the specific page/section), I 
could start around there.

   I did
 actually read the note about virtual hosts, but it did not indicate I need
 to add the mount copy.  If I have time, I'll do some more testing and see
 exactly what needs to go where to not need the copy, but I don't have time
 at the moment.
 
There is nothing wrong with the JkMountCopy per se, and you should 
probably not try to remove it. It can be very practical.

Maybe the first aspect you should be aware of - if you aren't already - 
is that just about every OS, and every distribution of Linux, has its 
own schema for dicing up and laying out the Apache configuration files, 
and adding its own specific scripts and configuration methods.
The standard Apache configuration has all of Apache installed under a 
top directory like /usr/local/apache2, with a single configuration file 
/usr/local/apache2/conf/httpd.conf, and does not explicitly define 
VirtualHost's (an example exists in the standard httpd.conf, but it is 
not activated).
The packagers of Linux distributions of Apache on the other hand (and 
for a whole series of good reasons, this is no critic), seem to have a 
great deal of fun splitting up Apache and its configuration in a maze of 
subdirectories and files all over the filesystem.
It is usually quite practical on the one specific platform this is 
written for (because it makes it easier to update the software, 
load/unload additional modules, create additional virtual hosts etc..), 
but makes it a bit harder for someone who is jumping from one system to 
another to find where things are.
You generally end up with various schemes and bits under /etc/init.d, 
/etc/apache2, /etc/apache2/*, /etc/sysconfig, /var/lib/apache2, 
/usr/local/lib/apache2, /usr/share/www, /var/www, /srv/www, and so on, 
plus a spaghetti-bowl of symbolic links.

All of this to say that it is just not possible for the mod_jk 
documentation to describe in detail where you are likely to find what in 
the real world, and what will be included from where to where and in 
what order.
The same situation exists for Apache itself and for Tomcat, which is why 
you'll often see on this forum exhortations to de-install

Help with mod_jk and Apache 2.2

2009-04-14 Thread Security Management
So, I have Tomcat 5.5, apache 2.2 on a linux 32 bit machine.  Tomcat and my
webapp work great, I just can't seem to get the connector working.  Sorry if
this is a basic question, but even with the debugging on I can't see what is
wrong.  I have listed 3 files here, my httpd config, my workers.properties,
and my uri mappings file.  I would appreciate any advice.  Here is the error
I'm getting:

[Tue Apr 14 09:20:34 2009] [565:3085756960] [debug] jk_child_init::mod_jk.c
(3068): Initialized mod_jk/1.2.28
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/appsuite/
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for sirrus.smc/appsuite/

I have tried changing the hostname from localhost to sirrus.smc, but with no
luck.

Here is the mod_jk config:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties
JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile


Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/latest

# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

# The workers that your plugins should create and work with
#
worker.list=worker1

#-- DEFAULT ajp13 WORKER DEFINITION --
#-
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.worker1.type=ajp13
worker.worker1.host=localhost

Here is the JkMountFile:

/appsuite=worker1


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help with mod_jk and Apache 2.2

2009-04-14 Thread André Warnier

Security Management wrote:

So, I have Tomcat 5.5, apache 2.2 on a linux 32 bit machine.  Tomcat and my
webapp work great, I just can't seem to get the connector working.  Sorry if
this is a basic question, but even with the debugging on I can't see what is
wrong.  I have listed 3 files here, my httpd config, my workers.properties,
and my uri mappings file.  I would appreciate any advice.  Here is the error
I'm getting:

[Tue Apr 14 09:20:34 2009] [565:3085756960] [debug] jk_child_init::mod_jk.c
(3068): Initialized mod_jk/1.2.28
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/appsuite/
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for sirrus.smc/appsuite/

I have tried changing the hostname from localhost to sirrus.smc, but with no
luck.

Here is the mod_jk config:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties
JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile


Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/latest

# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

# The workers that your plugins should create and work with
#
worker.list=worker1

#-- DEFAULT ajp13 WORKER DEFINITION --
#-
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.worker1.type=ajp13
worker.worker1.host=localhost


here you seem to be missing a line
 worker.worker1.port=   ( = the port on which your Tomcat AJP 
connector is listening)




Here is the JkMountFile:

/appsuite=worker1

add
/appsuite/* = worker1

explanation : /appsuite will match just that, /appsuite. It is not 
to be interpreted as /appsuite and anything below it.

To say /appsuite and anything below it, you need the two lines.
You could also use /appsuite*, but then it would also match 
/appsuiteandanythingelse, which is probably not what you want.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-14 Thread Antonio Vidal Ferrer
Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Best,

Toni

-Original Message-
From: Security Management [mailto:list-subscripti...@secmgmt.com] 
Sent: martes, 14 de abril de 2009 15:29
To: 'Tomcat Users List'
Subject: Help with mod_jk and Apache 2.2

So, I have Tomcat 5.5, apache 2.2 on a linux 32 bit machine.  Tomcat and my
webapp work great, I just can't seem to get the connector working.  Sorry if
this is a basic question, but even with the debugging on I can't see what is
wrong.  I have listed 3 files here, my httpd config, my workers.properties,
and my uri mappings file.  I would appreciate any advice.  Here is the error
I'm getting:

[Tue Apr 14 09:20:34 2009] [565:3085756960] [debug] jk_child_init::mod_jk.c
(3068): Initialized mod_jk/1.2.28
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/appsuite/
[Tue Apr 14 09:20:43 2009] [558:3085756960] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for sirrus.smc/appsuite/

I have tried changing the hostname from localhost to sirrus.smc, but with no
luck.

Here is the mod_jk config:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties
JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile


Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=/usr/java/latest

# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

# The workers that your plugins should create and work with
#
worker.list=worker1

#-- DEFAULT ajp13 WORKER DEFINITION --
#-
# Defining a worker named ajp13 and of type ajp13
# Note that the name and the type do not have to match.
#
worker.worker1.type=ajp13
worker.worker1.host=localhost

Here is the JkMountFile:

/appsuite=worker1


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help with mod_jk and Apache 2.2

2009-04-14 Thread André Warnier

Antonio Vidal Ferrer wrote:

Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Not according to this :
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-14 Thread Security Management
Yeah, I saw that, and it's now:

/smc-appsuite|/*=worker1

Which should match /appsuite/ and /appsuite/*

Still not working, though.  Same problem.  Any more ideas?

Thanks for the help,
Mike.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 10:03 AM
To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Antonio Vidal Ferrer wrote:
 Hi.
 
 I guess the = sign in your jkmount file is wrong.
 It should say:
 /appsuite worker1
 
Not according to this :
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help with mod_jk and Apache 2.2

2009-04-14 Thread André Warnier

Security Management wrote:

Yeah, I saw that, and it's now:

/smc-appsuite|/*=worker1

Which should match /appsuite/ and /appsuite/*


Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
not like before, /appsuite ?

If you keep changing the data between questions, it becomes hard to follow.



Still not working, though.  Same problem.  Any more ideas?

Thanks for the help,
Mike.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 10:03 AM

To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Antonio Vidal Ferrer wrote:

Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Not according to this :
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-14 Thread Security Management
OK, I was switching the name to make sure the logs switched the name and
stuff.

It's consistent in the file.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 4:19 PM
To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Security Management wrote:
 Yeah, I saw that, and it's now:
 
 /smc-appsuite|/*=worker1
 
 Which should match /appsuite/ and /appsuite/*

Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
not like before, /appsuite ?
If you keep changing the data between questions, it becomes hard to follow.

 
 Still not working, though.  Same problem.  Any more ideas?
 
 Thanks for the help,
 Mike.
 
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 10:03 AM
 To: Tomcat Users List
 Subject: Re: Help with mod_jk and Apache 2.2
 
 Antonio Vidal Ferrer wrote:
 Hi.

 I guess the = sign in your jkmount file is wrong.
 It should say:
 /appsuiteworker1

 Not according to this :
 http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help with mod_jk and Apache 2.2

2009-04-14 Thread André Warnier

Well, no, I didn't.  I just answered the wrong message.
Tip: respond to the list only, not (also) to the person's address.
Otherwise, that person gets each message twice : once because he 
subscribes to the list, and once your direct message.

Responding only to the list also saves trees and minimises global warming.


OOps, sorry. I think I sent a response to the wrong guy.
Antonio must be wondering now. ;-)


Security Management wrote:

OK, I was switching the name to make sure the logs switched the name and
stuff.

It's consistent in the file.


Anyway, I am lost now. Consistent with what ?
Would you mind re-posting the current content of your 3 files, as they
are now, consistent and all ?

Alternatively, do the following :
- comment your JkMountFile line
- instead add these two lines :
  JkMount /appsuite worker1
  JkMount /appsuite/* worker1

and tell us if that works.






-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 4:19 PM

To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Security Management wrote:

Yeah, I saw that, and it's now:

/smc-appsuite|/*=worker1

Which should match /appsuite/ and /appsuite/*


Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
not like before, /appsuite ?

If you keep changing the data between questions, it becomes hard to follow.


Still not working, though.  Same problem.  Any more ideas?

Thanks for the help,
Mike.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 10:03 AM

To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Antonio Vidal Ferrer wrote:

Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Not according to this :
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Help with mod_jk and Apache 2.2

2009-04-14 Thread Security Management
OK, here is the error (note that I have renamed it, I was just making sure I
was seeing what I thought I was).  Webapp works on 8080, apache restarts
without complaining, I verified the port is the default for the worker type
in server.xml, and I am stumped.  Thanks for looking!

Server.xml bit:

Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3
/

The error in the mod_jk logs:

[Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/smc-appsuite/index
[Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for
sirrus.smc:/smc-appsuite/index
[Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/smc-appsuite
[Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for
sirrus.smc:/smc-appsuite

Here is the mod_jk.conf bit:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties

#JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkMount /smc-appsuite worker1
JkMount /smc-appsuite/* worker1

JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile

Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

workers.java_home=/usr/java/latest

ps=/

worker.list=worker1

worker.worker1.type=ajp13
worker.worker1.host=localhost


-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 4:32 PM
To: Security Management
Subject: Re: Help with mod_jk and Apache 2.2

Antonio, ya me has perdido.

Would you mind re-posting the content of your 3 files, as they are now ?

Alternatively :
- comment the line JkMountFile
- add instead the two following lines
JkMount /appsuite worker1
JkMount /appsuite/* worker1

and tell us if that works.
(That is, assuming that your webapp is still at /appsuite in Tomcat)



Security Management wrote:
 OK, I was switching the name to make sure the logs switched the name and
 stuff.
 
 It's consistent in the file.
 
 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 4:19 PM
 To: Tomcat Users List
 Subject: Re: Help with mod_jk and Apache 2.2
 
 Security Management wrote:
 Yeah, I saw that, and it's now:

 /smc-appsuite|/*=worker1

 Which should match /appsuite/ and /appsuite/*
 
 Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
 not like before, /appsuite ?
 If you keep changing the data between questions, it becomes hard to
follow.
 
 Still not working, though.  Same problem.  Any more ideas?

 Thanks for the help,
 Mike.

 -Original Message-
 From: André Warnier [mailto:a...@ice-sa.com] 
 Sent: Tuesday, April 14, 2009 10:03 AM
 To: Tomcat Users List
 Subject: Re: Help with mod_jk and Apache 2.2

 Antonio Vidal Ferrer wrote:
 Hi.

 I guess the = sign in your jkmount file is wrong.
 It should say:
 /appsuite   worker1

 Not according to this :
 http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Help with mod_jk and Apache 2.2

2009-04-14 Thread André Warnier

Security Management wrote:

OK, here is the error (note that I have renamed it, I was just making sure I
was seeing what I thought I was).  Webapp works on 8080, apache restarts
without complaining, I verified the port is the default for the worker type
in server.xml, and I am stumped.  Thanks for looking!

Server.xml bit:

Connector port=8009 
   enableLookups=false redirectPort=8443 protocol=AJP/1.3

/

The error in the mod_jk logs:

[Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/smc-appsuite/index
[Tue Apr 14 16:57:03 2009] [16766:3085969952] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for
sirrus.smc:/smc-appsuite/index
[Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug] jk_translate::mod_jk.c
(3419): missing uri map for sirrus.smc:/smc-appsuite
[Tue Apr 14 16:57:34 2009] [16767:3085969952] [debug]
jk_map_to_storage::mod_jk.c (3579): missing uri map for
sirrus.smc:/smc-appsuite





Here is the mod_jk.conf bit:

LoadModule jk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf.d/workers.properties

#JkMountFile /etc/httpd/conf.d/uriworkermap.properties
JkMount /smc-appsuite worker1
JkMount /smc-appsuite/* worker1

JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkShmFile /var/log/httpd/JkShmFile


I think I get it.
Are you by any chance using this within a VirtualHost in Apache ?
(I mean, are your browser HTTP calls directed to a VirtualHost ?)

If yes, then try adding a line
JkMountCopy All
to the lines above (in the main Apache server configuration), and retry.

If it now works, make sure you read this :
http://tomcat.apache.org/connectors-doc/reference/apache.html
and specifically the part about JkMountCopy.

You would only be one among many to get bitten by this..




Here is the workers.properties:

workers.tomcat_home=/var/www/apache-tomcat-5.5.27/

workers.java_home=/usr/java/latest


Note: As far as I know, the above two properties are deprecated, and 
should no  longer be used.




ps=/

worker.list=worker1

worker.worker1.type=ajp13
worker.worker1.host=localhost


I would still add
worker.worker1.port=8009




-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 4:32 PM

To: Security Management
Subject: Re: Help with mod_jk and Apache 2.2

Antonio, ya me has perdido.

Would you mind re-posting the content of your 3 files, as they are now ?

Alternatively :
- comment the line JkMountFile
- add instead the two following lines
JkMount /appsuite worker1
JkMount /appsuite/* worker1

and tell us if that works.
(That is, assuming that your webapp is still at /appsuite in Tomcat)



Security Management wrote:

OK, I was switching the name to make sure the logs switched the name and
stuff.

It's consistent in the file.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 4:19 PM

To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Security Management wrote:

Yeah, I saw that, and it's now:

/smc-appsuite|/*=worker1

Which should match /appsuite/ and /appsuite/*
Now wait a minute.  Why did this suddenly become /smc-appsuite, and 
not like before, /appsuite ?

If you keep changing the data between questions, it becomes hard to

follow.

Still not working, though.  Same problem.  Any more ideas?

Thanks for the help,
Mike.

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Tuesday, April 14, 2009 10:03 AM

To: Tomcat Users List
Subject: Re: Help with mod_jk and Apache 2.2

Antonio Vidal Ferrer wrote:

Hi.

I guess the = sign in your jkmount file is wrong.
It should say:
/appsuite   worker1


Not according to this :
http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org