tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars 'Levia' Wesselius" <le...@openfrag.org>
Subject Re: Problem with Apache, Tomcat, mod_jk
Date Wed, 10 Sep 2008 21:53:12 GMT
2008/9/10 Rainer Jung <rainer.jung@kippdata.de>

> Lars 'Levia' Wesselius schrieb:
> > 2008/9/10 Rainer Jung <rainer.jung@kippdata.de>
> >
> >> Lars 'Levia' Wesselius schrieb:
> >>> 2008/9/10 Steve Ochani <ochanis@ncc.edu>
> >>>
> >>>> Send reply to:  Tomcat Users List <users@tomcat.apache.org>
> >>>> Date sent:      Wed, 10 Sep 2008 19:17:24 +0200
> >>>> From:   Lars 'Levia' Wesselius <levia@openfrag.org>
> >>>> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message