RE: mod_jk.conf-auto problem

2001-04-26 Thread Sue Evans



I 
think I was getting that error because I was using an apache that wasn't 
compiled with DSO enabled.You can find out if this is the case by cd to 
where your apache httpd binary is locatd, and enter the command:
 httpd -l

It 
will show you a list of the compiled in modules. If you don't see mod_so.c 
in the list, then you need to recompile apache with that module. To do 
this:

Download a new apachesource and read 
thru the Install instructions. Toenable DSO 
when you compile it, use this configure command:
./configure --prefix=/usr/local/apache 
--enable-rule=SHARED_CORE --enable-module=so
from the apache build directory. (Where prefix is set to the directory where you want 
to install Apache and the other parameters enable DSO.) After that just 
"make" and "make install"and you would a normal Apache 
installation.
Hope this helps solve the 
problem.
[Sue Evans]

-Original Message-From: 
Allen Levin [mailto:[EMAIL PROTECTED]]Sent: Thursday, April 26, 
2001 12:11 PMTo: [EMAIL PROTECTED]Subject: 
mod_jk.conf-auto problem

  
  I am having problems connecting Tomcat with Apache. 
  
  Binaries
  Apache 1.3.19Tomcat 3.2.1
  Linux 7
  error: 
  Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
  Invalid command 'LoadModule', perhaps mis-spelled or defined by a module 
  not included in the server configuration
  mod_jk.so is a Linux binary in placed in libexec
  Thanks!
  a.l.[EMAIL PROTECTED] 
  
  Get your FREE download of MSN Explorer at http://explorer.msn.com
  


RE: mod_jk.conf-auto problem

2001-04-26 Thread Allen Levin

Sue,
Thanks!!!
I have spent three nights on this.
I didn't think the DSO needed to be inserted in the compile process. But, that's stupid.
The httpd -l did show that the .c is missing. Will try again tonight.
a.l.

From: Sue Evans <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: mod_jk.conf-auto problem 
Date: Thu, 26 Apr 2001 12:26:58 -0400 

I think I was getting that error because I was using an apache that wasn't 
compiled with DSO enabled. You can find out if this is the case by cd to 
where your apache httpd binary is locatd, and enter the command: 
httpd -l 

It will show you a list of the compiled in modules. If you don't see 
mod_so.c in the list, then you need to recompile apache with that module. 
To do this: 
Download a new apache source and read thru the Install instructions. To 
enable DSO when you compile it, use this configure command: 

./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE 
--enable-module=so 

from the apache build directory. (Where prefix is set to the directory where 
you want to install Apache and the other parameters enable DSO.) After that 
just "make" and "make install" and you would a normal Apache installation. 

Hope this helps solve the problem. 

[Sue Evans] 


-Original Message- 
From: Allen Levin [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 26, 2001 12:11 PM 
To: [EMAIL PROTECTED] 
Subject: mod_jk.conf-auto problem 



I am having problems connecting Tomcat with Apache. 



Binaries 

Apache 1.3.19 
Tomcat 3.2.1 

Linux 7 

error: 

Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: 

Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not 
included in the server configuration 

mod_jk.so is a Linux binary in placed in libexec 

Thanks! 

a.l. 

[EMAIL PROTECTED] 



_ 

Get your FREE download of MSN Explorer at http://explorer.msn.com 





Get your FREE download of MSN Explorer at http://explorer.msn.com


Re: mod_jk.conf-auto problem

2001-04-26 Thread Joel Parramore


Or, if this is Redhat and you don't have a libexec subdirectory, create a
symlink in the /etc/httpd directory that points to the apache lib
subdirectory:

cd /etc/httpd
ln -s ../../usr/lib/apache libexec

so you don't have to cart around separate copies of the mod_jk.so library.

Regards,
Joel

- Original Message -
From: Thad Humphries [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 26, 2001 1:29 PM
Subject: Re: mod_jk.conf-auto problem


 You might check where mod_jk.so is located.  Though it reads

  LoadModule jk_module libexec/mod_jk.so

 in mod_jk.conf-auto, RedHat 6.2 installs all .so modules in
/usr/lib/apache
 which is linked to /etc/httpd/modules.  Notice that 'libexec' is no part
of
 this!

 Without writing your own mod_jk.conf, you can create /etc/httpd/libexec
and
 copy mod_jk.so into it.

 At 09:10 4/26/2001 -0700, you wrote:

 I am having problems connecting Tomcat with Apache.
 
 
 
 Binaries
 
 Apache 1.3.19
 Tomcat 3.2.1
 
 Linux 7
 
 error:
 
 Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
 
 Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
 not included in the server configuration
 
 mod_jk.so is a Linux binary in placed in libexec
 
 Thanks!
 
 a.l.
 [EMAIL PROTECTED]
 
 
 
 --
 Get your FREE download of MSN Explorer at
 http://explorer.msn.comhttp://explorer.msn.com

 --
 Thad Humphries  If the misery of our poor be caused not
 Web Development Manager  by the laws of nature but by our institu-
 Phone: 540/675-3015, ext. 225tions, great is our sin.  Charles Darwin




Re: mod_jk.conf-auto problem

2001-04-26 Thread Thad Humphries

You might check where mod_jk.so is located.  Though it reads

 LoadModule jk_module libexec/mod_jk.so

in mod_jk.conf-auto, RedHat 6.2 installs all .so modules in /usr/lib/apache 
which is linked to /etc/httpd/modules.  Notice that 'libexec' is no part of 
this!

Without writing your own mod_jk.conf, you can create /etc/httpd/libexec and 
copy mod_jk.so into it.

At 09:10 4/26/2001 -0700, you wrote:

I am having problems connecting Tomcat with Apache.



Binaries

Apache 1.3.19
Tomcat 3.2.1

Linux 7

error:

Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:

Invalid command 'LoadModule', perhaps mis-spelled or defined by a module 
not included in the server configuration

mod_jk.so is a Linux binary in placed in libexec

Thanks!

a.l.
[EMAIL PROTECTED]



--
Get your FREE download of MSN Explorer at 
http://explorer.msn.comhttp://explorer.msn.com

--
Thad Humphries  If the misery of our poor be caused not
Web Development Manager  by the laws of nature but by our institu-
Phone: 540/675-3015, ext. 225tions, great is our sin.  Charles Darwin




Re: mod_jk.conf-auto problem

2001-04-05 Thread Milt Epstein

On Thu, 5 Apr 2001 [EMAIL PROTECTED] wrote:

 Hi.
 
 I have a servlet, Hungry, which wants to process all requests which
 extend a given prefix.  No problem in
 tomcat.  I add the following stanza to my webapps web.xml
 
 servlet-mapping
   servlet-nameHungry/servlet-name
   url-pattern/Hungry/*/url-pattern
 /servlet-mapping
 
 When I use tomcat in apache this doesn't have the desired effect even
 though I include
 mod_jk.conf-auto.  Things are OK if the request path is forwarded to
 tomcat: Hungry gets
 /context/Hungry/xyz.jsp; however, according to the tomcat logs, tomcat
 never sees a request for
 /context/Hungry/xyz.
 
 If I use port 8080 (i.e. tomcat) directly, Hungry  gets /Hungry/xyz.
 
 I believe I can fix this by adding 
   JkMount /context/Hungry/* ajp12 
 to the mod_jk.conf-auto file, however, I'd rather just use the auto
 generation facility.
 
 Can anyone help me with this?

Well, this kind of issue has come up here before, and the solution
does seem to be what you are suggesting, i.e. adding an appropriate
JkMount directive to the tomcat/apache conf file to make sure apache
passes the request to tomcat.

As to having it be in the conf-auto file, I don't really know about
that, but generally the recommendation here has been to use that file
as a model for your real one, i.e. copying it and editing it to suit
your needs, and including the modified one in the apache conf file.
It would be nice if there were some way to specify that such things be
included in the conf-auto file, but I don't know that one currently
exists.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




RE: mod_jk.conf-auto problem

2001-04-05 Thread GOMEZ Henri

I really suggest you to make apache read a mod_jk.conf
you done by hand.

Keep the auto generation for information purpose.



"Entre truands, les bnfices, a se partage, la rclusion, a
s'additionne."
-- Michel Audiard
 

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 8:49 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk.conf-auto problem


On Thu, 5 Apr 2001 [EMAIL PROTECTED] wrote:

 Hi.
 
 I have a servlet, Hungry, which wants to process all requests which
 extend a given prefix.  No problem in
 tomcat.  I add the following stanza to my webapps web.xml
 
 servlet-mapping
   servlet-nameHungry/servlet-name
   url-pattern/Hungry/*/url-pattern
 /servlet-mapping
 
 When I use tomcat in apache this doesn't have the desired effect even
 though I include
 mod_jk.conf-auto.  Things are OK if the request path is forwarded to
 tomcat: Hungry gets
 /context/Hungry/xyz.jsp; however, according to the tomcat 
logs, tomcat
 never sees a request for
 /context/Hungry/xyz.
 
 If I use port 8080 (i.e. tomcat) directly, Hungry  gets /Hungry/xyz.
 
 I believe I can fix this by adding 
  JkMount /context/Hungry/* ajp12 
 to the mod_jk.conf-auto file, however, I'd rather just use the auto
 generation facility.
 
 Can anyone help me with this?

Well, this kind of issue has come up here before, and the solution
does seem to be what you are suggesting, i.e. adding an appropriate
JkMount directive to the tomcat/apache conf file to make sure apache
passes the request to tomcat.

As to having it be in the conf-auto file, I don't really know about
that, but generally the recommendation here has been to use that file
as a model for your real one, i.e. copying it and editing it to suit
your needs, and including the modified one in the apache conf file.
It would be nice if there were some way to specify that such things be
included in the conf-auto file, but I don't know that one currently
exists.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]