Re: Problem with Apache, Tomcat, mod_jk

2008-09-11 Thread Lars 'Levia' Wesselius
2008/9/11 Caldarale, Charles R [EMAIL PROTECTED]

  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of Lars 'Levia' Wesselius
  Subject: Re: Problem with Apache, Tomcat, mod_jk
 
  http://mirroredescape.net/manager/
  Tomcat 404 error.

 You appear to have ignored what you were previously told:  that's an
 invalid URL and it should return a 404.  Again, a proper URL is:
 http://mirroredescape.net/manager/html


Oh, excuse me, you are right! I'm sorry. The manager page is working now.
Can I deploy applications via that manager page, to where they will work
instantly without having to add JkMounts? or not?


 http://mirroredescape.net/manager/html

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem with Apache, Tomcat, mod_jk

2008-09-11 Thread Lars 'Levia' Wesselius
2008/9/11 Lars 'Levia' Wesselius [EMAIL PROTECTED]

 2008/9/11 Caldarale, Charles R [EMAIL PROTECTED]

  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of Lars 'Levia' Wesselius
  Subject: Re: Problem with Apache, Tomcat, mod_jk
 
  http://mirroredescape.net/manager/
  Tomcat 404 error.

 You appear to have ignored what you were previously told:  that's an
 invalid URL and it should return a 404.  Again, a proper URL is:
 http://mirroredescape.net/manager/html


 Oh, excuse me, you are right! I'm sorry. The manager page is working now.
 Can I deploy applications via that manager page, to where they will work
 instantly without having to add JkMounts? or not?


 http://mirroredescape.net/manager/html

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


I created JkMounts for my own servlet:
JkMount /SiteReview|/* ajp13

and it worked! This means that every problem has been resolved now, though
I'm wondering, as in the previous message, can I easily deploy applications
using the manager, or would I have to add the JkMounts all the time?

And I'm wondering..what does the '|' mean in the JkMount?

Thanks!


Re: Problem with Apache, Tomcat, mod_jk

2008-09-11 Thread Rainer Jung

I created JkMounts for my own servlet:
JkMount /SiteReview|/* ajp13

and it worked! This means that every problem has been resolved now, though
I'm wondering, as in the previous message, can I easily deploy applications
using the manager, or would I have to add the JkMounts all the time?

And I'm wondering..what does the '|' mean in the JkMount?


If it's a test system and you don't care about security and control, you 
could mount


JkMount /* ajp13

What does the '|' mean?

JkMount a|b is a short form for

JkMount a
JkMount ab

It is mostly used for

JkMount /myapp|/*

to map /myapp and /myap/something, but not /myappold.

If you don't want to map '/*' but need more dynamics:

Adding JkMount needs an apachctl graceful afterwards. This usually has 
only very little impact on the system. If you still don't like it, use 
JkMountFile and read


http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html

Regards,

Rainer



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and Java
SE 6. I have it set up so I can access the main Tomcat page..but when I go
to the manager from there, it shows a (apache) 404 error. Can someone help
me with this problem? I have the configuration files ready for those who
wants to have a look at them (mod_jk.conf (auto generated), httpd.conf
(where I include mod_jk.conf), server.xml and workers.properties).
You can find the config files here: http//excessivedarkness.org/conf/

Thanks

Lars


Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:Problem with Apache, Tomcat, mod_jk

 I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
 Java SE 6.

Latest is a relative term. At the moment latest apache webserver version is 
2.2.9.

 I have it set up so I can access the main Tomcat page..but
 when I go to the manager from there, it shows a (apache) 404 error.
 Can someone help me with this problem? I have the configuration files
 ready for those who wants to have a look at them (mod_jk.conf (auto
 generated), httpd.conf (where I include mod_jk.conf), server.xml and
 workers.properties). You can find the config files here:
 http//excessivedarkness.org/conf/

You forgot the : in the url.

That has to be the biggest mod_jk.conf I've ever seen. You may want to start 
with something 
simple.

What did the logs show after you tried to access the manager app via httpd?

Did you try the url as

http://hostname/manager/html/

?


-Steve O.




 
 Thanks
 
 Lars
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Steve Ochani [EMAIL PROTECTED]

 Send reply to:  Tomcat Users List users@tomcat.apache.org
 Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
 From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject:Problem with Apache, Tomcat, mod_jk

  I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
  Java SE 6.

 Latest is a relative term. At the moment latest apache webserver version is
 2.2.9.

  I have it set up so I can access the main Tomcat page..but
  when I go to the manager from there, it shows a (apache) 404 error.
  Can someone help me with this problem? I have the configuration files
  ready for those who wants to have a look at them (mod_jk.conf (auto
  generated), httpd.conf (where I include mod_jk.conf), server.xml and
  workers.properties). You can find the config files here:
  http//excessivedarkness.org/conf/

 You forgot the : in the url.


Sorry




 That has to be the biggest mod_jk.conf I've ever seen. You may want to
 start with something
 simple.


Most probably. It's automatically configured.




 What did the logs show after you tried to access the manager app via httpd?

 Did you try the url as

 http://hostname/manager/html/

 ?


Yes, that's where it goes to when you click Tomcat Manager, that's where the
404 error pops up.





 -Steve O.




 
  Thanks
 
  Lars
 



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Rainer Jung
Lars 'Levia' Wesselius schrieb:
 2008/9/10 Steve Ochani [EMAIL PROTECTED]
 
 Send reply to:  Tomcat Users List users@tomcat.apache.org
 Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
 From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject:Problem with Apache, Tomcat, mod_jk

 I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
 Java SE 6.
 Latest is a relative term. At the moment latest apache webserver version is
 2.2.9.

 I have it set up so I can access the main Tomcat page..but
 when I go to the manager from there, it shows a (apache) 404 error.
 Can someone help me with this problem? I have the configuration files
 ready for those who wants to have a look at them (mod_jk.conf (auto
 generated), httpd.conf (where I include mod_jk.conf), server.xml and
 workers.properties). You can find the config files here:
 http//excessivedarkness.org/conf/
 You forgot the : in the url.
 
 
 Sorry
 
 

 That has to be the biggest mod_jk.conf I've ever seen. You may want to
 start with something
 simple.
 
 
 Most probably. It's automatically configured.
 
 

 What did the logs show after you tried to access the manager app via httpd?

 Did you try the url as

 http://hostname/manager/html/

 ?
 
 
 Yes, that's where it goes to when you click Tomcat Manager, that's where the
 404 error pops up.

You need to show us the config and the relevant log part.

Can you use the manager when directly talking to Tomcat (using its HTTP
conector)?

Can you use any other context when connecting via the web server, so is
the problem manager specific, or does your whole Apache/mod_jk/Tomcat
setup not work?

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Rainer Jung [EMAIL PROTECTED]

 Lars 'Levia' Wesselius schrieb:
  2008/9/10 Steve Ochani [EMAIL PROTECTED]
 
  Send reply to:  Tomcat Users List users@tomcat.apache.org
  Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
  From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Subject:Problem with Apache, Tomcat, mod_jk
 
  I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
  Java SE 6.
  Latest is a relative term. At the moment latest apache webserver version
 is
  2.2.9.
 
  I have it set up so I can access the main Tomcat page..but
  when I go to the manager from there, it shows a (apache) 404 error.
  Can someone help me with this problem? I have the configuration files
  ready for those who wants to have a look at them (mod_jk.conf (auto
  generated), httpd.conf (where I include mod_jk.conf), server.xml and
  workers.properties). You can find the config files here:
  http//excessivedarkness.org/conf/
  You forgot the : in the url.
 
 
  Sorry
 
 
 
  That has to be the biggest mod_jk.conf I've ever seen. You may want to
  start with something
  simple.
 
 
  Most probably. It's automatically configured.
 
 
 
  What did the logs show after you tried to access the manager app via
 httpd?
 
  Did you try the url as
 
  http://hostname/manager/html/
 
  ?
 
 
  Yes, that's where it goes to when you click Tomcat Manager, that's where
 the
  404 error pops up.

 You need to show us the config and the relevant log part.


I posted the configs..right? The log shows, when trying to access
/manager/html (mod_jk.log)

[Wed Sep 10 16:40:35 2008] [4199:1081847968] [debug]
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
'/manager/html' from 0 maps

And that's all it logs.





 Can you use the manager when directly talking to Tomcat (using its HTTP
 conector)?


Yes, it works perfectly when using the Tomcat server itself, on port 8080.




 Can you use any other context when connecting via the web server, so is
 the problem manager specific, or does your whole Apache/mod_jk/Tomcat
 setup not work?

 Regards,

 Rainer


Erm..I have another servlet deployed, it works when using Tomcat server
itself, but it doesn't work through Apache.
Thanks




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Rainer Jung
Lars 'Levia' Wesselius schrieb:
 2008/9/10 Rainer Jung [EMAIL PROTECTED]
 
 Lars 'Levia' Wesselius schrieb:
 2008/9/10 Steve Ochani [EMAIL PROTECTED]

 Send reply to:  Tomcat Users List users@tomcat.apache.org
 Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
 From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject:Problem with Apache, Tomcat, mod_jk

 I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
 Java SE 6.
 Latest is a relative term. At the moment latest apache webserver version
 is
 2.2.9.

 I have it set up so I can access the main Tomcat page..but
 when I go to the manager from there, it shows a (apache) 404 error.
 Can someone help me with this problem? I have the configuration files
 ready for those who wants to have a look at them (mod_jk.conf (auto
 generated), httpd.conf (where I include mod_jk.conf), server.xml and
 workers.properties). You can find the config files here:
 http//excessivedarkness.org/conf/
 You forgot the : in the url.

 Sorry


 That has to be the biggest mod_jk.conf I've ever seen. You may want to
 start with something
 simple.

 Most probably. It's automatically configured.


 What did the logs show after you tried to access the manager app via
 httpd?
 Did you try the url as

 http://hostname/manager/html/

 ?

 Yes, that's where it goes to when you click Tomcat Manager, that's where
 the
 404 error pops up.
 You need to show us the config and the relevant log part.
 
 
 I posted the configs..right? The log shows, when trying to access
 /manager/html (mod_jk.log)
 
 [Wed Sep 10 16:40:35 2008] [4199:1081847968] [debug]
 map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
 '/manager/html' from 0 maps
 
 And that's all it logs.

Sorry, didn't see the config link.

workers.properties: delete

workers.tomcat_home=/usr/share/apache-tomcat-6.0.18/
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/

they are useless.

server.xml: not readable (Forbidden)

mod_jk.conf:

JkLogLevel emerg: better use info, and when debugging debug but not
for high load production.

JkLogFile: once your setup works, consider including rotatelogs.

manager-JkMounts: Those are in a virtual host named localhost: I would
guess your requests to the manager webapp are served by another virtual
server or the global server. Those won't see the JkMounts defined in
localhost. The above cited log message from 0 maps also tells us,
that the virtual server handling the requests din't find any JkMounts.

I would replace the whole localhost:/manager block by

JkMount /manager|/* ajp13

httpd.conf:

JkLogStampFormat [%a %b %d %H:%M:%S %Y] : Remove it or have a look at
the docomentation to include milliseconds.

JkAutoAlias /usr/share/apache-tomcat-6.0.18/webapps: do you really want
that?

Regards,

Rainer

 Can you use the manager when directly talking to Tomcat (using its HTTP
 conector)?
 
 
 Yes, it works perfectly when using the Tomcat server itself, on port 8080.
 
 

 Can you use any other context when connecting via the web server, so is
 the problem manager specific, or does your whole Apache/mod_jk/Tomcat
 setup not work?

 
 Erm..I have another servlet deployed, it works when using Tomcat server
 itself, but it doesn't work through Apache.
 Thanks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Lars 'Levia' Wesselius
2008/9/10 Rainer Jung [EMAIL PROTECTED]

 Lars 'Levia' Wesselius schrieb:
  2008/9/10 Rainer Jung [EMAIL PROTECTED]
 
  Lars 'Levia' Wesselius schrieb:
  2008/9/10 Steve Ochani [EMAIL PROTECTED]
 
  Send reply to:  Tomcat Users List users@tomcat.apache.org
  Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
  From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Subject:Problem with Apache, Tomcat, mod_jk
 
  I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk
 and
  Java SE 6.
  Latest is a relative term. At the moment latest apache webserver
 version
  is
  2.2.9.
 
  I have it set up so I can access the main Tomcat page..but
  when I go to the manager from there, it shows a (apache) 404 error.
  Can someone help me with this problem? I have the configuration files
  ready for those who wants to have a look at them (mod_jk.conf (auto
  generated), httpd.conf (where I include mod_jk.conf), server.xml and
  workers.properties). You can find the config files here:
  http//excessivedarkness.org/conf/
  You forgot the : in the url.
 
  Sorry
 
 
  That has to be the biggest mod_jk.conf I've ever seen. You may want to
  start with something
  simple.
 
  Most probably. It's automatically configured.
 
 
  What did the logs show after you tried to access the manager app via
  httpd?
  Did you try the url as
 
  http://hostname/manager/html/
 
  ?
 
  Yes, that's where it goes to when you click Tomcat Manager, that's
 where
  the
  404 error pops up.
  You need to show us the config and the relevant log part.
 
 
  I posted the configs..right? The log shows, when trying to access
  /manager/html (mod_jk.log)
 
  [Wed Sep 10 16:40:35 2008] [4199:1081847968] [debug]
  map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
  '/manager/html' from 0 maps
 
  And that's all it logs.

 Sorry, didn't see the config link.

 workers.properties: delete

 workers.tomcat_home=/usr/share/apache-tomcat-6.0.18/
 workers.java_home=/usr/lib/jvm/java-6-sun
 ps=/

 they are useless.

 server.xml: not readable (Forbidden)


Oh, I am sorry, corrected this.




 mod_jk.conf:

 JkLogLevel emerg: better use info, and when debugging debug but not
 for high load production.


Yeah, this has to do with the mod_jk.conf being automatically generated on
Tomcat startup. I had it on info before.




 JkLogFile: once your setup works, consider including rotatelogs.

 manager-JkMounts: Those are in a virtual host named localhost: I would
 guess your requests to the manager webapp are served by another virtual
 server or the global server. Those won't see the JkMounts defined in
 localhost. The above cited log message from 0 maps also tells us,
 that the virtual server handling the requests din't find any JkMounts.

 I would replace the whole localhost:/manager block by

 JkMount /manager|/* ajp13


Okay..

I created my own mod_jk.conf file.




 httpd.conf:

 JkLogStampFormat [%a %b %d %H:%M:%S %Y] : Remove it or have a look at
 the docomentation to include milliseconds.

 JkAutoAlias /usr/share/apache-tomcat-6.0.18/webapps: do you really want
 that?


Well, it's what I used to get the current stuff mapped - without using this
command, not much worked, but sure :) I removed the line.

Okay, updated the config files.
http://mirroredescape.net/manager/
Tomcat 404 error.

http://excessivedarkness.org/conf/
Updated config files:
workers.properties
mod_jk.conf
httpd.conf
server.xml (fixed)

Added:
mirroredescape.net.conf (from apache2/sites-enabled/. I had to put the
JkMount in there, because otherwise Apache would complain about that * ports
an non-* ports cannot be mixed or something, I figured it was because of
using the same virtualhost twice..

Maybe I know what's wrong, should I set the servers.xml Host entry to
mirroredescape.net?



 Regards,

 Rainer

  Can you use the manager when directly talking to Tomcat (using its HTTP
  conector)?
 
 
  Yes, it works perfectly when using the Tomcat server itself, on port
 8080.
 
 
 
  Can you use any other context when connecting via the web server, so is
  the problem manager specific, or does your whole Apache/mod_jk/Tomcat
  setup not work?
 
 
  Erm..I have another servlet deployed, it works when using Tomcat server
  itself, but it doesn't work through Apache.
  Thanks

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Lars 'Levia' Wesselius
 Subject: Re: Problem with Apache, Tomcat, mod_jk

 http://mirroredescape.net/manager/
 Tomcat 404 error.

You appear to have ignored what you were previously told:  that's an invalid 
URL and it should return a 404.  Again, a proper URL is:
http://mirroredescape.net/manager/html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]