tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felix <>
Subject Re: installation is a nightmare/ mod_jserv vs. mod_jk
Date Sat, 10 Nov 2001 00:05:52 GMT
> From:
> Also, one of the users on this list seems to have written these
> instructions, and they worked for me quite well, I hope they help.

thanks greyson.  i found a couple of useful bits in there.

there should not be any vestige of mod_jserv running at all.

i'm not sure why it is being distributed with it now.  its a nightmare for
everyone to work through, costs a minimum of 2 hours to fuss with.  is
someone afraid of hurting someone's feelings by just getting rid of it ? or
is there some hidden issue with mod_jk still ?

the instructions at

are very muddled.

do this:
Include TOMCAT_HOME/conf/jk/mod_jk.conf-auto
in httpd.conf

and do *not* 
Include TOMCAT_HOME/conf/jk/tomcat-apache.conf
  as it is repeatedly recommended to do.
mod_jk.conf-auto *replaces* tomcat-apache.conf

although anything called tomcat-apache.conf sounds like it would configure
the relationship and mod_jk.conf sounds like it would just configure the
mod_jk itself.

tomcat-apache-mod_jk.conf would be immediately understandable imho.

they discuss 3.3 auto config settings although this is the documentation for

"Note: Settings for mod_jk auto-configuration is new in Tomcat 3.3.  Older
versions of Tomcat create the auto-config file without a directive in
server.xml.  The new directive in Tomcat 3.3 allows for additional
configuration options as detailed later in this section.  For older versions
of Tomcat, refere to the documentation that came with that version.

uh ... yeah, i thought i was.


these bits, left over from tomcat-apache.conf are not done anywhere when
following these directions:

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

but then i tried them and got text/jsp mime types back at my browser.

the answer:

I am running multiple virtual hosts, all with jsp.  I can just add:

JkMount /*.jsp ajp13

to my httpd.conf and...

yes!!!!!!  we're running! and it took only 5 hours for a very experienced
computer programmer.

in summary:

in http.conf add:

Include TOMCAT_HOME/conf/jk/mod_jk.conf-auto
JkMount /*.jsp ajp13

change the file so its reflects your operating system.
(see )

if you wanted to individually decide which sites get jsp, you can add them
inside of the VirtualHosts directives (rather than globally as i have done
here)  as per the docs.

still have to redirect jasper to complain to a log file, not standard out.

" Documentation is also available on the Apache Jakarta web site for Tomcat
at "

... 404

also, i was trying to figure out how to test my migrating websites before
the dns changes.

in server.xml i have the hosts as they will be (with names), and also again
as they are now:

  <Host name="" >
           <Context path="/~giant"
                    docBase="/home/giant/public_html" />

so i can use my http://single_ip/~giant/
to test each site.

apache occasionally forces me back to the old site (via canonical

the images are mostly missing, but i'm a programmer not a graphic artist

> I know everybody is trying, but installing tomcat 3.2.3 with apache is a
> horrible experience.  wrong information everywhere. the most painful and
> convoluted installation i have ever seen.
> this is the most useful guide i have yet found:
> problems:
> the linux binary distribution comes with configured for
> NT
> is not on my machine.  i am led to beleive that mod_jk
> replaces
> it entirely.  not true ?  i guess i'm just going to put it on, but it
> suggests that something is not right in the basic configuration.
> mostly people seem to say that we should switch to mod_jk anyway, but i'm
> not even sure they are equivalent.
> tomcat-apache.conf is an auto-generated file.  i make changes to it, on
> startup they are over-written.  it specifies
> tomcat.conf does not appear to affect it
> i cannot figure out from where it is getting its information.

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message