Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Falcon cheetah

And where would you get 4.0.2b2
I can only see 4.0?

--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Wed, 23 Jan 2002, Marc G. Fournier wrote:
 
  Date: Wed, 23 Jan 2002 14:26:10 -0400 (AST)
  From: Marc G. Fournier [EMAIL PROTECTED]
  Reply-To: Tomcat Users List
 [EMAIL PROTECTED]
  To: Tomcat Users List
 [EMAIL PROTECTED]
  Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk
 
 
  This may be so, but my understanding is that you
 can't use mod_jk for
  *Tomcat 4.x* ... so I think you need to install
 mod_webapp for
  Apache2-Tomcat4.x, and leave mod_jk ther for
 Apache2-Tomcat3.x ...
 
 
 Your understanding is not correct -- mod_jk is also
 supported under 4.x,
 and the Java side of it is included (with many bug
 fixes) in the 4.0.2b2
 release.
 
 Craig
 
 
 
 
  On Wed, 23 Jan 2002, Falcon cheetah wrote:
 
   Are you sure about that? Because both the doc
 that I
   used and others on apache site say that you CAN
 use
   mod_jk for both 1.3 and 2.0!
  
   Any idea?
  
   --- Marc G. Fournier [EMAIL PROTECTED] wrote:
   
mod_jk is for Tomcat 3.x ... mod_webapp is for
Tomcat 4.x ... wrong module
:(
   
   
On Wed, 23 Jan 2002, Falcon cheetah wrote:
   
 Greetings,

 I managed to install the above subject on my
 RH
Linux
 7.1. I am downloaded the latest
 apache2.0.28beta
 together with tomcat 4.0.1. Built apache
 according
to
 the instructions. I followed instructions
 found on

   
  

http://www.iris.dti.ne.jp/~u-osamu/indexlinux72jdk140.html
 I followed the instructions to the extent. I
commented
 out the ssl part.

 When I typed ./apachectl configtest, it gave
 me
error
 that it can not recognize AddModule in

 LoadModule jk_module modules/mod_jk.so
 #AddModule mod_jk.c

 So I commented it out. My understanding is
 that I
need
 AddModule in order for Apache to load
 mod_jk,
 otherwise there not be communication between
apache2
 and tomcat4.

 I changed the port for ajp13 from 8009 to
 8006
since I
 have tomcat 3.2 running on the same machine.

 I am able to communicate with Apache on port
 8002,
it
 serves files fine. I can also get tomcat to
 serve
jsp
 on 8003. But when I try to access jsp files
 on the
 apache port it gives me page not found! and
 in the
 error log I find [Wed Jan 23 12:31:36 2002]
 [warn]
 [client local_ip] handler jakarta-servlet
 not
found
 for: carts.jsp, referer:

   
  

http://localhost:8002/examples/jsp/sessions/carts.html


 Is the AddModule causing the problem?
 Also when I look at the localhost_log.txt
 file I
find
 an exception for every context available. An
example
 is :
 2002-01-23 12:02:56
 StandardWrapper[/tomcat-docs:JkServlet]:
 Marking
 servlet JkServlet as unavailable
 2002-01-23 12:02:56
 StandardContext[/tomcat-docs]:
 Servlet /tomcat-docs threw load() exception
 javax.servlet.ServletException: Wrapper
 cannot
find
 servlet class
 org.apache.ajp.tomcat4.JkServlet or
a
 class it depends on
 at

   
  

org.apache.catalina.core.StandardWrapper.load(Unknown
 Source)
 at

   
  

org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
 Source)

 Why is it complaining about JkServlet? I
 made sure
to
 have tomcat-ajp.jar in the server/lib
 directory,
and
 made sure the class is there.

 I read somewhere that apache2 does not work
 with
apxs,
 is that ture?

 I also noticed that in some of the source
 code the
 developers are using methods that only
 appeared in
JDK
 1.3, an example is
 Socket.setKeepAlive(boolean). I
 replaced that, since I am running jdk 1.2.2
 to
 Socket.setSOTimeOut(0);

 I know am asking several questions but hope
someone
 will find an answer for me.

 Thank you.




 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/

 --
 To unsubscribe:
   
 mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]


   
   
--
To unsubscribe:
 
=== message truncated ===


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Kirby Vandivort

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/

On Wed, Jan 23, 2002 at 11:00:50AM -0800, Falcon cheetah wrote:
 And where would you get 4.0.2b2
 I can only see 4.0?
 
 --- Craig R. McClanahan [EMAIL PROTECTED] wrote:
  
  
  On Wed, 23 Jan 2002, Marc G. Fournier wrote:
  
   Date: Wed, 23 Jan 2002 14:26:10 -0400 (AST)
   From: Marc G. Fournier [EMAIL PROTECTED]
   Reply-To: Tomcat Users List
  [EMAIL PROTECTED]
   To: Tomcat Users List
  [EMAIL PROTECTED]
   Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk
  
  
   This may be so, but my understanding is that you
  can't use mod_jk for
   *Tomcat 4.x* ... so I think you need to install
  mod_webapp for
   Apache2-Tomcat4.x, and leave mod_jk ther for
  Apache2-Tomcat3.x ...
  
  
  Your understanding is not correct -- mod_jk is also
  supported under 4.x,
  and the Java side of it is included (with many bug
  fixes) in the 4.0.2b2
  release.
  
  Craig
  
  
  
  
   On Wed, 23 Jan 2002, Falcon cheetah wrote:
  
Are you sure about that? Because both the doc
  that I
used and others on apache site say that you CAN
  use
mod_jk for both 1.3 and 2.0!
   
Any idea?
   
--- Marc G. Fournier [EMAIL PROTECTED] wrote:

 mod_jk is for Tomcat 3.x ... mod_webapp is for
 Tomcat 4.x ... wrong module
 :(


 On Wed, 23 Jan 2002, Falcon cheetah wrote:

  Greetings,
 
  I managed to install the above subject on my
  RH
 Linux
  7.1. I am downloaded the latest
  apache2.0.28beta
  together with tomcat 4.0.1. Built apache
  according
 to
  the instructions. I followed instructions
  found on
 

   
 
 http://www.iris.dti.ne.jp/~u-osamu/indexlinux72jdk140.html
  I followed the instructions to the extent. I
 commented
  out the ssl part.
 
  When I typed ./apachectl configtest, it gave
  me
 error
  that it can not recognize AddModule in
 
  LoadModule jk_module modules/mod_jk.so
  #AddModule mod_jk.c
 
  So I commented it out. My understanding is
  that I
 need
  AddModule in order for Apache to load
  mod_jk,
  otherwise there not be communication between
 apache2
  and tomcat4.
 
  I changed the port for ajp13 from 8009 to
  8006
 since I
  have tomcat 3.2 running on the same machine.
 
  I am able to communicate with Apache on port
  8002,
 it
  serves files fine. I can also get tomcat to
  serve
 jsp
  on 8003. But when I try to access jsp files
  on the
  apache port it gives me page not found! and
  in the
  error log I find [Wed Jan 23 12:31:36 2002]
  [warn]
  [client local_ip] handler jakarta-servlet
  not
 found
  for: carts.jsp, referer:
 

   
 
 http://localhost:8002/examples/jsp/sessions/carts.html
 
 
  Is the AddModule causing the problem?
  Also when I look at the localhost_log.txt
  file I
 find
  an exception for every context available. An
 example
  is :
  2002-01-23 12:02:56
  StandardWrapper[/tomcat-docs:JkServlet]:
  Marking
  servlet JkServlet as unavailable
  2002-01-23 12:02:56
  StandardContext[/tomcat-docs]:
  Servlet /tomcat-docs threw load() exception
  javax.servlet.ServletException: Wrapper
  cannot
 find
  servlet class
  org.apache.ajp.tomcat4.JkServlet or
 a
  class it depends on
  at
 

   
 
 org.apache.catalina.core.StandardWrapper.load(Unknown
  Source)
  at
 

   
 
 org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
  Source)
 
  Why is it complaining about JkServlet? I
  made sure
 to
  have tomcat-ajp.jar in the server/lib
  directory,
 and
  made sure the class is there.
 
  I read somewhere that apache2 does not work
  with
 apxs,
  is that ture?
 
  I also noticed that in some of the source
  code the
  developers are using methods that only
  appeared in
 JDK
  1.3, an example is
  Socket.setKeepAlive(boolean). I
  replaced that, since I am running jdk 1.2.2
  to
  Socket.setSOTimeOut(0);
 
  I know am asking several questions but hope
 someone
  will find an answer for me.
 
  Thank you.
 
 
 
 
  __
  Do You Yahoo!?
  Send FREE video emails in Yahoo! Mail!
  http://promo.yahoo.com/videomail/
 
  --
  To unsubscribe:

  mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:
  
 === message truncated ===
 
 
 __
 Do You Yahoo!?
 Send FREE video emails in Yahoo! Mail!
 http://promo.yahoo.com/videomail/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto

Re: Apache2 + Tomcat4.0.1 + mod_jk

2002-01-23 Thread Craig R. McClanahan



On Wed, 23 Jan 2002, Falcon cheetah wrote:

 Date: Wed, 23 Jan 2002 11:00:50 -0800 (PST)
 From: Falcon cheetah [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Apache2 + Tomcat4.0.1 + mod_jk

 And where would you get 4.0.2b2
 I can only see 4.0?


It's listed under Milestone Builds on the Jakarta website's standard
binary downloads page:

http://jakarta.apache.org/site/binindex.html

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache2 + Tomcat4.0.1 + mod_jk code changes

2002-01-23 Thread Falcon cheetah

in this file :
/tmp/jakarta/connectors/util/java/org/apache/tomcat/util/buf/HexUtils.java

changed byte[] to char[]

in this file: 
/tmp/jakarta/connectors/jk/java/org/apache/ajp/tomcat4/Ajp13Connector.java
 
// commented it out since it is jdk1.3 based
   socket.setKeepAlive(true);
using this instead  socket.setSoTimeout(0);
 
and that was in order to build tomcat-ajp.jar for
4.0.1 snapshot of jan-22.

Is that some bug that I sumbled on? Is it fixed in the
newer releases? I am not sure if either will cause a
problem in my instance of the server.




__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]