You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Clay Jones <cl...@clay-jones.com> on 2003/04/15 16:55:01 UTC
apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Hello,
I've been trying to integrate apache and tomcat for a while, and I
cannot seem to make it work. I'm using the following versions on
Redhat 8:
1. Apache 2.0.45 compiled from source
2. Tomcat 4.1.24
3. mod_jk.so
For Apache:
I've added the mod_jk LoadModule calls to httpd.conf, and included the
auto-conf file tomcat generates.
For Tomcat:
I've also edited server.xml to add listeners for the server and host.
The auto-conf file is generated and looks to be complete. There are
several sections for creating the Apache Alias directives, etc. I have
a workers.properties file in /usr/local/tomcat/conf/jk.
Accessing /examples on port 8080 works fine. I get a 404 "File Not
Found" error when I try to access /examples on port 80. It appears
that Apache is not properly sourcing the auto-conf file (Include
directive). If I add a static alias in httpd.conf, I can reference
static pages in /usr/local/tomcat, but servlet execution is not
processed by Tomcat. The two do not appear to be talking to each other.
I cannot find any indications from the logs for both applications as to
what th eproblem may be. Thanks in advance for any assistance.
nmap reports:
80/tcp open http
8009/tcp open ajp13
8080/tcp open http-proxy
A portion of my auto-conf file is:
# Static files
Alias /examples "/usr/local/tomcat/webapps/examples"
<Directory "/usr/local/tomcat/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/snoop ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/SendMailServlet ajp13
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Steve Harris <sh...@myra.com>.
Hi,
Sorry to chip in this late in the thread but if you running on a Unix box
have your tried tracing the process (Using something like the Solaris
truss command). Process tracing has got me out of no end of sticky
situations like this.
The trace output will show you exactly the file that is trying to be
opened.
Cheers - Steve
On Tue, 15 Apr 2003, John Turner wrote:
>
> No, mod_jk is all you need. I am stumped.
>
> John
>
> On Tue, 15 Apr 2003 12:42:36 -0400, Clay Jones <cl...@clay-jones.com> wrote:
>
> >> t's strange...I am almost thinking that the Apache you are working with
> >> isn't the Apache you think you are working with. Probably not the case,
> >> but I can't explain why Apache wouldn't pick up those JkMount directives
> >> and the /examples alias otherwise
> >
> >
> > /usr/local--> apachectl -v
> > Server version: Apache/2.0.45
> > Server built: Apr 14 2003 12:35:27
> >
> > Are there any modules (other than mod_jk) that are needed? Other Alias
> > statements work ok. It is baffling....
> >
> > Thanks.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by John Turner <to...@johnturner.com>.
No, mod_jk is all you need. I am stumped.
John
On Tue, 15 Apr 2003 12:42:36 -0400, Clay Jones <cl...@clay-jones.com> wrote:
>> t's strange...I am almost thinking that the Apache you are working with
>> isn't the Apache you think you are working with. Probably not the case,
>> but I can't explain why Apache wouldn't pick up those JkMount directives
>> and the /examples alias otherwise
>
>
> /usr/local--> apachectl -v
> Server version: Apache/2.0.45
> Server built: Apr 14 2003 12:35:27
>
> Are there any modules (other than mod_jk) that are needed? Other Alias
> statements work ok. It is baffling....
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Oscar Carrillo <to...@daydream.stanford.edu>.
Clay,
I think Justin is probably right. I had a lot of trouble with compiling
mod_jk as well as mod_jk2. In fact, I still only use mod_jk-2.0.42
(mod_jk) binary with my RedHat 7.3 setup.
There are some strange things with compiling mod_jk, such as compiling it
always seemed to give drastically different filesizes compared to the
binaries you can download.
If you're interested my installation setup is explained at:
http://daydream.stanford.edu/tomcat/install_web_services.html
(RH 7.3 Linux + updates/Kernel 2.4.20/jdk1.4.1_01)
I don't know what thread support is like for java in RH8.0 but, do you do
set this environment variable in your tomcat startup script?
export LD_KERNEL_ASSUME="2.2.5"
Oscar
On Tue, 15 Apr 2003, Justin Spies wrote:
> Clay,
> Sounds like you've done everything correctly. I'm beginning to suspect
> the mod_jk compile, however. If I'm not mistaken, it was compiled on 7.2
> or 7.3 and this could pose some compatibility issues with glibc or another
> library, depending on which versions they had installed and which
> version(s) you have installed. Also, have you tried removing the
> <IfModule !mod_jk.c>
> LoadModule ...
> </IfModule>
>
> with just:
> LoadModule jk_module mod_jk.so
>
> This would eliminate a potential "variable". I could see implementing it
> later, however while trouble shooting, I like to eliminate as many
> variables as possible.
>
> For my machine, I was forced to download the mod_jk source and compile
> that since I was using the RedHat RPMS. Here are the steps I followed:
>
> 1. Download the source tar file to /usr/src
> 2. Untar the file. This created
> /usr/src/jakarta-tomcat-connectors-jk-1.2.2-src
> 3. I looked at the ant configuration but was in a hurry, so I stuck
> with the "old style" compile routine. I found that the configure/
> make related files are located in jk/native, or in my case:
> /usr/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native
> 4. I then ran the following configure command:
> ./configure --enable-shared \
> --enable-jni
> --with-java-home=/usr/java/j2sdk1.4.1_02/ \
> --with-apxs=/usr/sbin/apxs
> 5. I then ran make and the files compiled properly. In my case, I also
> had to install httpd-devel-xxx since apxs is part of that package.
> 6. I then copied the file apache-2.0/mod_jk.so to /etc/httpd/modules
> The full path to the file was:
> /usr/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/apache-2.0/mod_jk.so
>
> 7. I already had a previously working Apache/Tomcat configuration
> files, so I plugged those into the appropriate directories and
> voila, it was working. Now, there is one other difference here. I
> am using Tomcat 4.1.18, not 4.1.24, however I don't see why this
> should be any different. Assuming you are using mod_jk.so and not
> mod_jk2.so.
>
> Let me know if this helps. If you decide to take another path, or would
> like to see the config files, let me know.
>
> Sincerely,
> Justin L. Spies
>
>
> On Tue, 15 Apr 2003, Clay Jones wrote:
>
> > For apache, I just used --enable-so I believe. I totally removed
> > Redhats rpm (Using rpm -ev) along with all dependencies. I am using
> > the mod_jk.so binary provided by Tomcat, along with Tomcat binaries, os
> > I guess I misled you all, as I only really compiled apache, sorry ;)
> >
> > I must have tried it all, rpms of everything, source apache, various
> > versions of Tomcat. I haven't tried Apache 1.3.x, which I may tomorrow
> > before I call it quits.
> >
> > I even went down the road of trying to compile my own mod_jk to work
> > with 2.0.40 (that's where I started, actually), but the make always
> > failed. I'm pretty good at reading READMEs, and the installation
> > instructions seemed straightforward.
> >
> > Thanks.
> >
> > On Tuesday, April 15, 2003, at 05:08 PM, Justin L. Spies wrote:
> >
> > > Clay,
> > > I'm jumping in here a little late myself. Could you share with us the
> > > "./configure" command used to compile the sources? There are a couple
> > > different ways to do this and I'm wondering if the configure directives
> > > are affecting the system.
> > >
> > > I've just installed RH 9 and used the stock Apache (2.0.40) from RedHat
> > > RPM's and custom compiled mod_jk (they don't provide an RPM and the
> > > binaries on the Tomcat site are all for 2.0.42 and 2.0.43 only.) Works
> > > great so far (not much on the site though)
> > >
> > > You mentioned that "were all installed from scratch (not rpm)." Is it
> > > safe to assume that you compiled mod_jk and didn't just use the
> > > binaries? If you compiled mod_jk, let us know if you have the
> > > http-devel-xxx rpm installed for some reason. Although unlikely, it's
> > > possible that if you compiled mod_jk, that configure and make looked at
> > > the headers, etc, from the rpm instead of your version of Apache in
> > > /usr/src/httpd-2.0.45
> > >
> > >
> > > --Justin
> > >
> > >
> > > -----Original Message-----
> > > From: Clay Jones [mailto:clay@clay-jones.com]
> > > Sent: Tuesday, April 15, 2003 3:46 PM
> > > To: Tomcat Users List
> > > Subject: Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
> > >
> > > Hello,
> > >
> > > Running Redhat 8, but Apache, Tomcat, etc. were all installed from
> > > scratch (not rpm).
> > >
> > > Thanks,
> > >
> > > Clay
> > >
> > > On Tuesday, April 15, 2003, at 02:15 PM, Oscar Carrillo wrote:
> > >
> > >> Hi,
> > >>
> > >> Didn't see it mentioned. What OS are you running?
> > >>
> > >> Oscar
> > >>
> > >> On Tue, 15 Apr 2003, Clay Jones wrote:
> > >>
> > >>>> t's strange...I am almost thinking that the Apache you are working
> > >>>> with isn't the Apache you think you are working with. Probably not
> > >>>> the case, but I can't explain why Apache wouldn't pick up those
> > >>>> JkMount directives and the /examples alias otherwise
> > >>>
> > >>>
> > >>> /usr/local--> apachectl -v
> > >>> Server version: Apache/2.0.45
> > >>> Server built: Apr 14 2003 12:35:27
> > >>>
> > >>> Are there any modules (other than mod_jk) that are needed? Other
> > >>> Alias
> > >>> statements work ok. It is baffling....
> > >>>
> > >>> Thanks.
> > >>>
> > >>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >>>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Justin Spies <js...@pantek.com>.
Clay,
Sounds like you've done everything correctly. I'm beginning to suspect
the mod_jk compile, however. If I'm not mistaken, it was compiled on 7.2
or 7.3 and this could pose some compatibility issues with glibc or another
library, depending on which versions they had installed and which
version(s) you have installed. Also, have you tried removing the
<IfModule !mod_jk.c>
LoadModule ...
</IfModule>
with just:
LoadModule jk_module mod_jk.so
This would eliminate a potential "variable". I could see implementing it
later, however while trouble shooting, I like to eliminate as many
variables as possible.
For my machine, I was forced to download the mod_jk source and compile
that since I was using the RedHat RPMS. Here are the steps I followed:
1. Download the source tar file to /usr/src
2. Untar the file. This created
/usr/src/jakarta-tomcat-connectors-jk-1.2.2-src
3. I looked at the ant configuration but was in a hurry, so I stuck
with the "old style" compile routine. I found that the configure/
make related files are located in jk/native, or in my case:
/usr/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native
4. I then ran the following configure command:
./configure --enable-shared \
--enable-jni
--with-java-home=/usr/java/j2sdk1.4.1_02/ \
--with-apxs=/usr/sbin/apxs
5. I then ran make and the files compiled properly. In my case, I also
had to install httpd-devel-xxx since apxs is part of that package.
6. I then copied the file apache-2.0/mod_jk.so to /etc/httpd/modules
The full path to the file was:
/usr/src/jakarta-tomcat-connectors-jk-1.2.2-src/jk/native/apache-2.0/mod_jk.so
7. I already had a previously working Apache/Tomcat configuration
files, so I plugged those into the appropriate directories and
voila, it was working. Now, there is one other difference here. I
am using Tomcat 4.1.18, not 4.1.24, however I don't see why this
should be any different. Assuming you are using mod_jk.so and not
mod_jk2.so.
Let me know if this helps. If you decide to take another path, or would
like to see the config files, let me know.
Sincerely,
Justin L. Spies
On Tue, 15 Apr 2003, Clay Jones wrote:
> For apache, I just used --enable-so I believe. I totally removed
> Redhats rpm (Using rpm -ev) along with all dependencies. I am using
> the mod_jk.so binary provided by Tomcat, along with Tomcat binaries, os
> I guess I misled you all, as I only really compiled apache, sorry ;)
>
> I must have tried it all, rpms of everything, source apache, various
> versions of Tomcat. I haven't tried Apache 1.3.x, which I may tomorrow
> before I call it quits.
>
> I even went down the road of trying to compile my own mod_jk to work
> with 2.0.40 (that's where I started, actually), but the make always
> failed. I'm pretty good at reading READMEs, and the installation
> instructions seemed straightforward.
>
> Thanks.
>
> On Tuesday, April 15, 2003, at 05:08 PM, Justin L. Spies wrote:
>
> > Clay,
> > I'm jumping in here a little late myself. Could you share with us the
> > "./configure" command used to compile the sources? There are a couple
> > different ways to do this and I'm wondering if the configure directives
> > are affecting the system.
> >
> > I've just installed RH 9 and used the stock Apache (2.0.40) from RedHat
> > RPM's and custom compiled mod_jk (they don't provide an RPM and the
> > binaries on the Tomcat site are all for 2.0.42 and 2.0.43 only.) Works
> > great so far (not much on the site though)
> >
> > You mentioned that "were all installed from scratch (not rpm)." Is it
> > safe to assume that you compiled mod_jk and didn't just use the
> > binaries? If you compiled mod_jk, let us know if you have the
> > http-devel-xxx rpm installed for some reason. Although unlikely, it's
> > possible that if you compiled mod_jk, that configure and make looked at
> > the headers, etc, from the rpm instead of your version of Apache in
> > /usr/src/httpd-2.0.45
> >
> >
> > --Justin
> >
> >
> > -----Original Message-----
> > From: Clay Jones [mailto:clay@clay-jones.com]
> > Sent: Tuesday, April 15, 2003 3:46 PM
> > To: Tomcat Users List
> > Subject: Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
> >
> > Hello,
> >
> > Running Redhat 8, but Apache, Tomcat, etc. were all installed from
> > scratch (not rpm).
> >
> > Thanks,
> >
> > Clay
> >
> > On Tuesday, April 15, 2003, at 02:15 PM, Oscar Carrillo wrote:
> >
> >> Hi,
> >>
> >> Didn't see it mentioned. What OS are you running?
> >>
> >> Oscar
> >>
> >> On Tue, 15 Apr 2003, Clay Jones wrote:
> >>
> >>>> t's strange...I am almost thinking that the Apache you are working
> >>>> with isn't the Apache you think you are working with. Probably not
> >>>> the case, but I can't explain why Apache wouldn't pick up those
> >>>> JkMount directives and the /examples alias otherwise
> >>>
> >>>
> >>> /usr/local--> apachectl -v
> >>> Server version: Apache/2.0.45
> >>> Server built: Apr 14 2003 12:35:27
> >>>
> >>> Are there any modules (other than mod_jk) that are needed? Other
> >>> Alias
> >>> statements work ok. It is baffling....
> >>>
> >>> Thanks.
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
For apache, I just used --enable-so I believe. I totally removed
Redhats rpm (Using rpm -ev) along with all dependencies. I am using
the mod_jk.so binary provided by Tomcat, along with Tomcat binaries, os
I guess I misled you all, as I only really compiled apache, sorry ;)
I must have tried it all, rpms of everything, source apache, various
versions of Tomcat. I haven't tried Apache 1.3.x, which I may tomorrow
before I call it quits.
I even went down the road of trying to compile my own mod_jk to work
with 2.0.40 (that's where I started, actually), but the make always
failed. I'm pretty good at reading READMEs, and the installation
instructions seemed straightforward.
Thanks.
On Tuesday, April 15, 2003, at 05:08 PM, Justin L. Spies wrote:
> Clay,
> I'm jumping in here a little late myself. Could you share with us the
> "./configure" command used to compile the sources? There are a couple
> different ways to do this and I'm wondering if the configure directives
> are affecting the system.
>
> I've just installed RH 9 and used the stock Apache (2.0.40) from RedHat
> RPM's and custom compiled mod_jk (they don't provide an RPM and the
> binaries on the Tomcat site are all for 2.0.42 and 2.0.43 only.) Works
> great so far (not much on the site though)
>
> You mentioned that "were all installed from scratch (not rpm)." Is it
> safe to assume that you compiled mod_jk and didn't just use the
> binaries? If you compiled mod_jk, let us know if you have the
> http-devel-xxx rpm installed for some reason. Although unlikely, it's
> possible that if you compiled mod_jk, that configure and make looked at
> the headers, etc, from the rpm instead of your version of Apache in
> /usr/src/httpd-2.0.45
>
>
> --Justin
>
>
> -----Original Message-----
> From: Clay Jones [mailto:clay@clay-jones.com]
> Sent: Tuesday, April 15, 2003 3:46 PM
> To: Tomcat Users List
> Subject: Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
>
> Hello,
>
> Running Redhat 8, but Apache, Tomcat, etc. were all installed from
> scratch (not rpm).
>
> Thanks,
>
> Clay
>
> On Tuesday, April 15, 2003, at 02:15 PM, Oscar Carrillo wrote:
>
>> Hi,
>>
>> Didn't see it mentioned. What OS are you running?
>>
>> Oscar
>>
>> On Tue, 15 Apr 2003, Clay Jones wrote:
>>
>>>> t's strange...I am almost thinking that the Apache you are working
>>>> with isn't the Apache you think you are working with. Probably not
>>>> the case, but I can't explain why Apache wouldn't pick up those
>>>> JkMount directives and the /examples alias otherwise
>>>
>>>
>>> /usr/local--> apachectl -v
>>> Server version: Apache/2.0.45
>>> Server built: Apr 14 2003 12:35:27
>>>
>>> Are there any modules (other than mod_jk) that are needed? Other
>>> Alias
>>> statements work ok. It is baffling....
>>>
>>> Thanks.
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by "Justin L. Spies" <js...@pantek.com>.
Clay,
I'm jumping in here a little late myself. Could you share with us the
"./configure" command used to compile the sources? There are a couple
different ways to do this and I'm wondering if the configure directives
are affecting the system.
I've just installed RH 9 and used the stock Apache (2.0.40) from RedHat
RPM's and custom compiled mod_jk (they don't provide an RPM and the
binaries on the Tomcat site are all for 2.0.42 and 2.0.43 only.) Works
great so far (not much on the site though)
You mentioned that "were all installed from scratch (not rpm)." Is it
safe to assume that you compiled mod_jk and didn't just use the
binaries? If you compiled mod_jk, let us know if you have the
http-devel-xxx rpm installed for some reason. Although unlikely, it's
possible that if you compiled mod_jk, that configure and make looked at
the headers, etc, from the rpm instead of your version of Apache in
/usr/src/httpd-2.0.45
--Justin
-----Original Message-----
From: Clay Jones [mailto:clay@clay-jones.com]
Sent: Tuesday, April 15, 2003 3:46 PM
To: Tomcat Users List
Subject: Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Hello,
Running Redhat 8, but Apache, Tomcat, etc. were all installed from
scratch (not rpm).
Thanks,
Clay
On Tuesday, April 15, 2003, at 02:15 PM, Oscar Carrillo wrote:
> Hi,
>
> Didn't see it mentioned. What OS are you running?
>
> Oscar
>
> On Tue, 15 Apr 2003, Clay Jones wrote:
>
>>> t's strange...I am almost thinking that the Apache you are working
>>> with isn't the Apache you think you are working with. Probably not
>>> the case, but I can't explain why Apache wouldn't pick up those
>>> JkMount directives and the /examples alias otherwise
>>
>>
>> /usr/local--> apachectl -v
>> Server version: Apache/2.0.45
>> Server built: Apr 14 2003 12:35:27
>>
>> Are there any modules (other than mod_jk) that are needed? Other
>> Alias
>> statements work ok. It is baffling....
>>
>> Thanks.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
Hello,
Running Redhat 8, but Apache, Tomcat, etc. were all installed from
scratch (not rpm).
Thanks,
Clay
On Tuesday, April 15, 2003, at 02:15 PM, Oscar Carrillo wrote:
> Hi,
>
> Didn't see it mentioned. What OS are you running?
>
> Oscar
>
> On Tue, 15 Apr 2003, Clay Jones wrote:
>
>>> t's strange...I am almost thinking that the Apache you are working
>>> with isn't the Apache you think you are working with. Probably not
>>> the case, but I can't explain why Apache wouldn't pick up those
>>> JkMount directives and the /examples alias otherwise
>>
>>
>> /usr/local--> apachectl -v
>> Server version: Apache/2.0.45
>> Server built: Apr 14 2003 12:35:27
>>
>> Are there any modules (other than mod_jk) that are needed? Other
>> Alias
>> statements work ok. It is baffling....
>>
>> Thanks.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Oscar Carrillo <to...@daydream.stanford.edu>.
Hi,
Didn't see it mentioned. What OS are you running?
Oscar
On Tue, 15 Apr 2003, Clay Jones wrote:
> > t's strange...I am almost thinking that the Apache you are working
> > with isn't the Apache you think you are working with. Probably not
> > the case, but I can't explain why Apache wouldn't pick up those
> > JkMount directives and the /examples alias otherwise
>
>
> /usr/local--> apachectl -v
> Server version: Apache/2.0.45
> Server built: Apr 14 2003 12:35:27
>
> Are there any modules (other than mod_jk) that are needed? Other Alias
> statements work ok. It is baffling....
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
> t's strange...I am almost thinking that the Apache you are working
> with isn't the Apache you think you are working with. Probably not
> the case, but I can't explain why Apache wouldn't pick up those
> JkMount directives and the /examples alias otherwise
/usr/local--> apachectl -v
Server version: Apache/2.0.45
Server built: Apr 14 2003 12:35:27
Are there any modules (other than mod_jk) that are needed? Other Alias
statements work ok. It is baffling....
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by John Turner <to...@johnturner.com>.
That's correct. The Listener in the Host container is what generates the
VirtualHost stuff in mod_jk.conf. The other one generates the
LoadModule/JkWorkersFile stuff. So, if you had 3 virtual hosts, you'd have
4 Listeners: 1 Server, and 1 for each Host in server.xml.
It's strange...I am almost thinking that the Apache you are working with
isn't the Apache you think you are working with. Probably not the case,
but I can't explain why Apache wouldn't pick up those JkMount directives
and the /examples alias otherwise.
John
On Tue, 15 Apr 2003 12:31:05 -0400, Clay Jones <cl...@clay-jones.com> wrote:
>> I know you aren't a newbie,
>
> No problem. I'm a newbie to Tomcat, that's for sure. I'm actually
> hoping it is a newbie issue. That would make things simple.
>
>> - are you sure this file is included by Apache?
> The very last line of httpd.conf is:
> Include /usr/local/tomcat/conf/auto/mod_jk.conf
>
>> - have you HUP'd Apache with the new JkLogLevel?
> Yeah, I have.
>
> One weird thing is, when I restart Apache, the timestamp on mod_jk.log
> doesn't change. I guess it only checks for existence, and if there's no
> info to write to it, the timestamp won't be updated.
>
>> - is the output of "apachectl configtest" "OK"?
>
> /usr/local/tomcat/logs--> /usr/local/apache2/bin/apachectl configtest
> Syntax OK
>
> I guess my only confusion with your docs, John was the step where you
> say add a line to the "Host Container". I presumed that as below in my
> server.xml file:
>
> ########################################################################
> ####
> <Host name="www.clay-jones.com" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="true">
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> append="true" forwardAll="false"
> modJk="/usr/local/apache2/modules/mod_jk.so" />
> ########################################################################
> ####
>
> Of course, I also added this info:
>
> ########################################################################
> ####
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> modJk="/usr/local/apache2/modules/mod_jk.so" />
> ########################################################################
> ####
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
> I know you aren't a newbie,
No problem. I'm a newbie to Tomcat, that's for sure. I'm actually
hoping it is a newbie issue. That would make things simple.
> - are you sure this file is included by Apache?
The very last line of httpd.conf is:
Include /usr/local/tomcat/conf/auto/mod_jk.conf
> - have you HUP'd Apache with the new JkLogLevel?
Yeah, I have.
One weird thing is, when I restart Apache, the timestamp on mod_jk.log
doesn't change. I guess it only checks for existence, and if there's
no info to write to it, the timestamp won't be updated.
> - is the output of "apachectl configtest" "OK"?
/usr/local/tomcat/logs--> /usr/local/apache2/bin/apachectl configtest
Syntax OK
I guess my only confusion with your docs, John was the step where you
say add a line to the "Host Container". I presumed that as below in my
server.xml file:
########################################################################
####
<Host name="www.clay-jones.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" forwardAll="false"
modJk="/usr/local/apache2/modules/mod_jk.so" />
########################################################################
####
Of course, I also added this info:
########################################################################
####
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache2/modules/mod_jk.so" />
########################################################################
####
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by John Turner <to...@johnturner.com>.
Dang, looks pretty good to me.
I know you aren't a newbie, but all I can think to ask are newbie
questions, like:
- are you sure this file is included by Apache?
- have you HUP'd Apache with the new JkLogLevel?
- is the output of "apachectl configtest" "OK"?
Anyone else have suggestions?
John
On Tue, 15 Apr 2003 12:07:34 -0400, Clay Jones <cl...@clay-jones.com> wrote:
> Here you go:
>
>
> ########## Auto generated on Tue Apr 15 11:42:30 EDT 2003##########
>
> <IfModule !mod_jk.c>
> LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
> </IfModule>
>
> JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
>
> JkLogLevel info
>
>
>
> <VirtualHost www.clay-jones.com>
> ServerName www.clay-jones.com
>
> #################### www.clay-jones.com:/admin ####################
>
> # Static files
> Alias /admin "/usr/local/tomcat/webapps/../server/webapps/admin"
>
> <Directory "/usr/local/tomcat/webapps/../server/webapps/admin">
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/admin/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/admin/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /admin/j_security_check ajp13
> JkMount /admin/*.do ajp13
> JkMount /admin/*.jsp ajp13
>
> #################### www.clay-jones.com:/webdav ####################
>
> # Static files
> Alias /webdav "/usr/local/jakarta-tomcat-4.1.24/webapps/webdav"
>
> <Directory "/usr/local/jakarta-tomcat-4.1.24/webapps/webdav">
> Options Indexes FollowSymLinks
> DirectoryIndex index.jsp index.html index.htm
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/webdav/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/webdav/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /webdav/*.jsp ajp13
>
> #################### www.clay-jones.com:/examples ####################
>
> # Static files
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> <Directory "/usr/local/tomcat/webapps/examples">
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/examples/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/examples/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /examples/jsp/security/protected/j_security_check ajp13
> JkMount /examples/snoop ajp13
> JkMount /examples/servlet/* ajp13
> JkMount /examples/CompressionTest ajp13
> JkMount /examples/*.jsp ajp13
> JkMount /examples/servletToJsp ajp13
> JkMount /examples/SendMailServlet ajp13
>
> #################### www.clay-jones.com:/tomcat-docs
> ####################
>
> # Static files
> Alias /tomcat-docs "/usr/local/jakarta-tomcat-4.1.24/webapps/tomcat-
> docs"
>
> <Directory "/usr/local/jakarta-tomcat-4.1.24/webapps/tomcat-docs">
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/tomcat-docs/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/tomcat-docs/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /tomcat-docs/*.jsp ajp13
>
> #################### www.clay-jones.com:/manager ####################
>
> # Static files
> Alias /manager "/usr/local/tomcat/webapps/../server/webapps/manager"
>
> <Directory "/usr/local/tomcat/webapps/../server/webapps/manager">
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/manager/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/manager/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /manager/list ajp13
> JkMount /manager/serverinfo ajp13
> JkMount /manager/deploy ajp13
> JkMount /manager/sessions ajp13
> JkMount /manager/reload ajp13
> JkMount /manager/html/* ajp13
> JkMount /manager/resources ajp13
> JkMount /manager/start ajp13
> JkMount /manager/stop ajp13
> JkMount /manager/install ajp13
> JkMount /manager/*.jsp ajp13
> JkMount /manager/roles ajp13
> JkMount /manager/remove ajp13
> JkMount /manager/undeploy ajp13
> </VirtualHost>
>
> ########################################################################
> #####
>
>
> On Tuesday, April 15, 2003, at 12:00 PM, John Turner wrote:
>
>>
>> Can you post the mod_jk.conf file for us? Thanks.
>>
>> John
>>
>> On Tue, 15 Apr 2003 11:45:53 -0400, Clay Jones <cl...@clay-jones.com>
>> wrote:
>>
>>> The mod_jk.log file only gets created when Apache starts up. I
>>> changed the value to "info", but I still get a zero byte file.
>>> Apache's startup message says:
>>>
>>> [Tue Apr 15 11:46:22 2003] [notice] Apache/2.0.45 (Unix)
>>> mod_ssl/2.0.45 OpenSSL/0.9.6b mod_jk/1.2.2 PHP/4.3.1 configured --
>>> resuming normal operations
>>>
>>>
>>> On Tuesday, April 15, 2003, at 11:05 AM, John Turner wrote:
>>>
>>>>
>>>> If you change JkLogLevel to "info" and try again, can you post the
>>>> contents of your JK log file?
>>>>
>>>> John
>>>>
>>>> On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <cl...@clay-jones.com>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I've been trying to integrate apache and tomcat for a while, and I
>>>>> cannot seem to make it work. I'm using the following versions on
>>>>> Redhat 8:
>>>>>
>>>>> 1. Apache 2.0.45 compiled from source
>>>>> 2. Tomcat 4.1.24
>>>>> 3. mod_jk.so
>>>>>
>>>>> For Apache:
>>>>> I've added the mod_jk LoadModule calls to httpd.conf, and included
>>>>> the auto-conf file tomcat generates.
>>>>>
>>>>> For Tomcat:
>>>>> I've also edited server.xml to add listeners for the server and
>>>>> host. The auto-conf file is generated and looks to be complete.
>>>>> There are several sections for creating the Apache Alias directives,
>>>>> etc. I have a workers.properties file in /usr/local/tomcat/conf/jk.
>>>>>
>>>>> Accessing /examples on port 8080 works fine. I get a 404 "File Not
>>>>> Found" error when I try to access /examples on port 80. It appears
>>>>> that Apache is not properly sourcing the auto-conf file (Include
>>>>> directive). If I add a static alias in httpd.conf, I can reference
>>>>> static pages in /usr/local/tomcat, but servlet execution is not
>>>>> processed by Tomcat. The two do not appear to be talking to each
>>>>> other.
>>>>>
>>>>> I cannot find any indications from the logs for both applications as
>>>>> to what th eproblem may be. Thanks in advance for any assistance.
>>>>>
>>>>> nmap reports:
>>>>>
>>>>> 80/tcp open http
>>>>> 8009/tcp open ajp13
>>>>> 8080/tcp open http-proxy
>>>>>
>>>>>
>>>>> A portion of my auto-conf file is:
>>>>>
>>>>> # Static files
>>>>> Alias /examples "/usr/local/tomcat/webapps/examples"
>>>>>
>>>>> <Directory "/usr/local/tomcat/webapps/examples">
>>>>> Options Indexes FollowSymLinks
>>>>> DirectoryIndex index.html index.htm index.jsp
>>>>> </Directory>
>>>>>
>>>>>
>>>>> # Deny direct access to WEB-INF and META-INF
>>>>> #
>>>>> <Location "/examples/WEB-INF/*">
>>>>> AllowOverride None
>>>>> deny from all
>>>>> </Location>
>>>>>
>>>>> <Location "/examples/META-INF/*">
>>>>> AllowOverride None
>>>>> deny from all
>>>>> </Location>
>>>>>
>>>>> JkMount /examples/jsp/security/protected/j_security_check ajp13
>>>>> JkMount /examples/snoop ajp13
>>>>> JkMount /examples/servlet/* ajp13
>>>>> JkMount /examples/CompressionTest ajp13
>>>>> JkMount /examples/*.jsp ajp13
>>>>> JkMount /examples/servletToJsp ajp13
>>>>> JkMount /examples/SendMailServlet ajp13
>>>>>
>>>>>
>>>>> -------------------------------------------------------------------- -
>>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> -- Using M2, Opera's revolutionary e-mail client:
>>>> http://www.opera.com/m2/
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> -- Using M2, Opera's revolutionary e-mail client:
>> http://www.opera.com/m2/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
Here you go:
########## Auto generated on Tue Apr 15 11:42:30 EDT 2003##########
<IfModule !mod_jk.c>
LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
</IfModule>
JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
JkLogLevel info
<VirtualHost www.clay-jones.com>
ServerName www.clay-jones.com
#################### www.clay-jones.com:/admin ####################
# Static files
Alias /admin "/usr/local/tomcat/webapps/../server/webapps/admin"
<Directory "/usr/local/tomcat/webapps/../server/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/admin/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /admin/j_security_check ajp13
JkMount /admin/*.do ajp13
JkMount /admin/*.jsp ajp13
#################### www.clay-jones.com:/webdav ####################
# Static files
Alias /webdav "/usr/local/jakarta-tomcat-4.1.24/webapps/webdav"
<Directory "/usr/local/jakarta-tomcat-4.1.24/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/webdav/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/webdav/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /webdav/*.jsp ajp13
#################### www.clay-jones.com:/examples
####################
# Static files
Alias /examples "/usr/local/tomcat/webapps/examples"
<Directory "/usr/local/tomcat/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/snoop ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/SendMailServlet ajp13
#################### www.clay-jones.com:/tomcat-docs
####################
# Static files
Alias /tomcat-docs
"/usr/local/jakarta-tomcat-4.1.24/webapps/tomcat-docs"
<Directory "/usr/local/jakarta-tomcat-4.1.24/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/tomcat-docs/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /tomcat-docs/*.jsp ajp13
#################### www.clay-jones.com:/manager
####################
# Static files
Alias /manager "/usr/local/tomcat/webapps/../server/webapps/manager"
<Directory "/usr/local/tomcat/webapps/../server/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
#
<Location "/manager/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/manager/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /manager/list ajp13
JkMount /manager/serverinfo ajp13
JkMount /manager/deploy ajp13
JkMount /manager/sessions ajp13
JkMount /manager/reload ajp13
JkMount /manager/html/* ajp13
JkMount /manager/resources ajp13
JkMount /manager/start ajp13
JkMount /manager/stop ajp13
JkMount /manager/install ajp13
JkMount /manager/*.jsp ajp13
JkMount /manager/roles ajp13
JkMount /manager/remove ajp13
JkMount /manager/undeploy ajp13
</VirtualHost>
########################################################################
#####
On Tuesday, April 15, 2003, at 12:00 PM, John Turner wrote:
>
> Can you post the mod_jk.conf file for us? Thanks.
>
> John
>
> On Tue, 15 Apr 2003 11:45:53 -0400, Clay Jones <cl...@clay-jones.com>
> wrote:
>
>> The mod_jk.log file only gets created when Apache starts up. I
>> changed the value to "info", but I still get a zero byte file.
>> Apache's startup message says:
>>
>> [Tue Apr 15 11:46:22 2003] [notice] Apache/2.0.45 (Unix)
>> mod_ssl/2.0.45 OpenSSL/0.9.6b mod_jk/1.2.2 PHP/4.3.1 configured --
>> resuming normal operations
>>
>>
>> On Tuesday, April 15, 2003, at 11:05 AM, John Turner wrote:
>>
>>>
>>> If you change JkLogLevel to "info" and try again, can you post the
>>> contents of your JK log file?
>>>
>>> John
>>>
>>> On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <cl...@clay-jones.com>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I've been trying to integrate apache and tomcat for a while, and I
>>>> cannot seem to make it work. I'm using the following versions on
>>>> Redhat 8:
>>>>
>>>> 1. Apache 2.0.45 compiled from source
>>>> 2. Tomcat 4.1.24
>>>> 3. mod_jk.so
>>>>
>>>> For Apache:
>>>> I've added the mod_jk LoadModule calls to httpd.conf, and included
>>>> the auto-conf file tomcat generates.
>>>>
>>>> For Tomcat:
>>>> I've also edited server.xml to add listeners for the server and
>>>> host. The auto-conf file is generated and looks to be complete.
>>>> There are several sections for creating the Apache Alias
>>>> directives, etc. I have a workers.properties file in
>>>> /usr/local/tomcat/conf/jk.
>>>>
>>>> Accessing /examples on port 8080 works fine. I get a 404 "File Not
>>>> Found" error when I try to access /examples on port 80. It appears
>>>> that Apache is not properly sourcing the auto-conf file (Include
>>>> directive). If I add a static alias in httpd.conf, I can reference
>>>> static pages in /usr/local/tomcat, but servlet execution is not
>>>> processed by Tomcat. The two do not appear to be talking to each
>>>> other.
>>>>
>>>> I cannot find any indications from the logs for both applications
>>>> as to what th eproblem may be. Thanks in advance for any
>>>> assistance.
>>>>
>>>> nmap reports:
>>>>
>>>> 80/tcp open http
>>>> 8009/tcp open ajp13
>>>> 8080/tcp open http-proxy
>>>>
>>>>
>>>> A portion of my auto-conf file is:
>>>>
>>>> # Static files
>>>> Alias /examples "/usr/local/tomcat/webapps/examples"
>>>>
>>>> <Directory "/usr/local/tomcat/webapps/examples">
>>>> Options Indexes FollowSymLinks
>>>> DirectoryIndex index.html index.htm index.jsp
>>>> </Directory>
>>>>
>>>>
>>>> # Deny direct access to WEB-INF and META-INF
>>>> #
>>>> <Location "/examples/WEB-INF/*">
>>>> AllowOverride None
>>>> deny from all
>>>> </Location>
>>>>
>>>> <Location "/examples/META-INF/*">
>>>> AllowOverride None
>>>> deny from all
>>>> </Location>
>>>>
>>>> JkMount /examples/jsp/security/protected/j_security_check ajp13
>>>> JkMount /examples/snoop ajp13
>>>> JkMount /examples/servlet/* ajp13
>>>> JkMount /examples/CompressionTest ajp13
>>>> JkMount /examples/*.jsp ajp13
>>>> JkMount /examples/servletToJsp ajp13
>>>> JkMount /examples/SendMailServlet ajp13
>>>>
>>>>
>>>> --------------------------------------------------------------------
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> -- Using M2, Opera's revolutionary e-mail client:
>>> http://www.opera.com/m2/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by John Turner <to...@johnturner.com>.
Can you post the mod_jk.conf file for us? Thanks.
John
On Tue, 15 Apr 2003 11:45:53 -0400, Clay Jones <cl...@clay-jones.com> wrote:
> The mod_jk.log file only gets created when Apache starts up. I changed
> the value to "info", but I still get a zero byte file. Apache's startup
> message says:
>
> [Tue Apr 15 11:46:22 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
> OpenSSL/0.9.6b mod_jk/1.2.2 PHP/4.3.1 configured -- resuming normal
> operations
>
>
> On Tuesday, April 15, 2003, at 11:05 AM, John Turner wrote:
>
>>
>> If you change JkLogLevel to "info" and try again, can you post the
>> contents of your JK log file?
>>
>> John
>>
>> On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <cl...@clay-jones.com>
>> wrote:
>>
>>> Hello,
>>>
>>> I've been trying to integrate apache and tomcat for a while, and I
>>> cannot seem to make it work. I'm using the following versions on
>>> Redhat 8:
>>>
>>> 1. Apache 2.0.45 compiled from source
>>> 2. Tomcat 4.1.24
>>> 3. mod_jk.so
>>>
>>> For Apache:
>>> I've added the mod_jk LoadModule calls to httpd.conf, and included the
>>> auto-conf file tomcat generates.
>>>
>>> For Tomcat:
>>> I've also edited server.xml to add listeners for the server and host.
>>> The auto-conf file is generated and looks to be complete. There are
>>> several sections for creating the Apache Alias directives, etc. I have
>>> a workers.properties file in /usr/local/tomcat/conf/jk.
>>>
>>> Accessing /examples on port 8080 works fine. I get a 404 "File Not
>>> Found" error when I try to access /examples on port 80. It appears
>>> that Apache is not properly sourcing the auto-conf file (Include
>>> directive). If I add a static alias in httpd.conf, I can reference
>>> static pages in /usr/local/tomcat, but servlet execution is not
>>> processed by Tomcat. The two do not appear to be talking to each
>>> other.
>>>
>>> I cannot find any indications from the logs for both applications as to
>>> what th eproblem may be. Thanks in advance for any assistance.
>>>
>>> nmap reports:
>>>
>>> 80/tcp open http
>>> 8009/tcp open ajp13
>>> 8080/tcp open http-proxy
>>>
>>>
>>> A portion of my auto-conf file is:
>>>
>>> # Static files
>>> Alias /examples "/usr/local/tomcat/webapps/examples"
>>>
>>> <Directory "/usr/local/tomcat/webapps/examples">
>>> Options Indexes FollowSymLinks
>>> DirectoryIndex index.html index.htm index.jsp
>>> </Directory>
>>>
>>>
>>> # Deny direct access to WEB-INF and META-INF
>>> #
>>> <Location "/examples/WEB-INF/*">
>>> AllowOverride None
>>> deny from all
>>> </Location>
>>>
>>> <Location "/examples/META-INF/*">
>>> AllowOverride None
>>> deny from all
>>> </Location>
>>>
>>> JkMount /examples/jsp/security/protected/j_security_check ajp13
>>> JkMount /examples/snoop ajp13
>>> JkMount /examples/servlet/* ajp13
>>> JkMount /examples/CompressionTest ajp13
>>> JkMount /examples/*.jsp ajp13
>>> JkMount /examples/servletToJsp ajp13
>>> JkMount /examples/SendMailServlet ajp13
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> -- Using M2, Opera's revolutionary e-mail client:
>> http://www.opera.com/m2/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by Clay Jones <cl...@clay-jones.com>.
The mod_jk.log file only gets created when Apache starts up. I changed
the value to "info", but I still get a zero byte file. Apache's
startup message says:
[Tue Apr 15 11:46:22 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
OpenSSL/0.9.6b mod_jk/1.2.2 PHP/4.3.1 configured -- resuming normal
operations
On Tuesday, April 15, 2003, at 11:05 AM, John Turner wrote:
>
> If you change JkLogLevel to "info" and try again, can you post the
> contents of your JK log file?
>
> John
>
> On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <cl...@clay-jones.com>
> wrote:
>
>> Hello,
>>
>> I've been trying to integrate apache and tomcat for a while, and I
>> cannot seem to make it work. I'm using the following versions on
>> Redhat 8:
>>
>> 1. Apache 2.0.45 compiled from source
>> 2. Tomcat 4.1.24
>> 3. mod_jk.so
>>
>> For Apache:
>> I've added the mod_jk LoadModule calls to httpd.conf, and included
>> the auto-conf file tomcat generates.
>>
>> For Tomcat:
>> I've also edited server.xml to add listeners for the server and host.
>> The auto-conf file is generated and looks to be complete. There are
>> several sections for creating the Apache Alias directives, etc. I
>> have a workers.properties file in /usr/local/tomcat/conf/jk.
>>
>> Accessing /examples on port 8080 works fine. I get a 404 "File Not
>> Found" error when I try to access /examples on port 80. It appears
>> that Apache is not properly sourcing the auto-conf file (Include
>> directive). If I add a static alias in httpd.conf, I can reference
>> static pages in /usr/local/tomcat, but servlet execution is not
>> processed by Tomcat. The two do not appear to be talking to each
>> other.
>>
>> I cannot find any indications from the logs for both applications as
>> to what th eproblem may be. Thanks in advance for any assistance.
>>
>> nmap reports:
>>
>> 80/tcp open http
>> 8009/tcp open ajp13
>> 8080/tcp open http-proxy
>>
>>
>> A portion of my auto-conf file is:
>>
>> # Static files
>> Alias /examples "/usr/local/tomcat/webapps/examples"
>>
>> <Directory "/usr/local/tomcat/webapps/examples">
>> Options Indexes FollowSymLinks
>> DirectoryIndex index.html index.htm index.jsp
>> </Directory>
>>
>>
>> # Deny direct access to WEB-INF and META-INF
>> #
>> <Location "/examples/WEB-INF/*">
>> AllowOverride None
>> deny from all
>> </Location>
>>
>> <Location "/examples/META-INF/*">
>> AllowOverride None
>> deny from all
>> </Location>
>>
>> JkMount /examples/jsp/security/protected/j_security_check ajp13
>> JkMount /examples/snoop ajp13
>> JkMount /examples/servlet/* ajp13
>> JkMount /examples/CompressionTest ajp13
>> JkMount /examples/*.jsp ajp13
>> JkMount /examples/servletToJsp ajp13
>> JkMount /examples/SendMailServlet ajp13
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Posted by John Turner <to...@johnturner.com>.
If you change JkLogLevel to "info" and try again, can you post the contents
of your JK log file?
John
On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <cl...@clay-jones.com> wrote:
> Hello,
>
> I've been trying to integrate apache and tomcat for a while, and I cannot
> seem to make it work. I'm using the following versions on Redhat 8:
>
> 1. Apache 2.0.45 compiled from source
> 2. Tomcat 4.1.24
> 3. mod_jk.so
>
> For Apache:
> I've added the mod_jk LoadModule calls to httpd.conf, and included the
> auto-conf file tomcat generates.
>
> For Tomcat:
> I've also edited server.xml to add listeners for the server and host.
> The auto-conf file is generated and looks to be complete. There are
> several sections for creating the Apache Alias directives, etc. I have a
> workers.properties file in /usr/local/tomcat/conf/jk.
>
> Accessing /examples on port 8080 works fine. I get a 404 "File Not
> Found" error when I try to access /examples on port 80. It appears that
> Apache is not properly sourcing the auto-conf file (Include directive).
> If I add a static alias in httpd.conf, I can reference static pages in
> /usr/local/tomcat, but servlet execution is not processed by Tomcat. The
> two do not appear to be talking to each other.
>
> I cannot find any indications from the logs for both applications as to
> what th eproblem may be. Thanks in advance for any assistance.
>
> nmap reports:
>
> 80/tcp open http
> 8009/tcp open ajp13
> 8080/tcp open http-proxy
>
>
> A portion of my auto-conf file is:
>
> # Static files
> Alias /examples "/usr/local/tomcat/webapps/examples"
>
> <Directory "/usr/local/tomcat/webapps/examples">
> Options Indexes FollowSymLinks
> DirectoryIndex index.html index.htm index.jsp
> </Directory>
>
>
> # Deny direct access to WEB-INF and META-INF
> #
> <Location "/examples/WEB-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> <Location "/examples/META-INF/*">
> AllowOverride None
> deny from all
> </Location>
>
> JkMount /examples/jsp/security/protected/j_security_check ajp13
> JkMount /examples/snoop ajp13
> JkMount /examples/servlet/* ajp13
> JkMount /examples/CompressionTest ajp13
> JkMount /examples/*.jsp ajp13
> JkMount /examples/servletToJsp ajp13
> JkMount /examples/SendMailServlet ajp13
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org