RE: TC 4 / mod_jk

2001-01-17 Thread GOMEZ Henri

Oups didn't view your reply in the list.

Tomcat 4.0 did not select mod_jk for several reasons.  The 
most important ones
are at the top:

* MOD_JK (like MOD_JSERV before it) has no clue what a web
  application is.  This forces you to configure many items twice --
  once in the web.xml file and once in the Apache configuration,
  which is a pretty serious imposition on people trying to administer
  the combination.

Why not implemented such feature in mod_jk (extending ajp13 to ajp14 with
news commands ?)

* While the 2.2 spec was silent in many areas, the 2.3 spec will
  require an Apache+Tomcat combination to obey *all* the requirements
  of the spec (same rules as for any other container).  This means that
  the things in web.xml *must* be respected.  For example, a security
  constraint in a web.xml file must be enforced, even on a 
  static resource that is served by Apache instead of Tomcat.  
  Substantial modifications
  to MOD_JK would be needed to make this work (primarily in adding a
  two-way exchange of configuration information).

I'm sorry to say that this stuff may be added to mod_jk. Still the 
syndrom of the wheel. 
 
* MOD_JK had no committers interested in maintaining it, at the time
  that the decision was made.  Subsequent to that time, several
  volunteers have surfaced, including at least one person interested in
  supporting MOD_JK under Tomcat 4.0.  That would be fine with me,
  as long as the result obeys all the rules.

Sorry but mod_jk as at minima 3 commiters (Dan, Costin and I) ;)
And many users as provided some patches.

Let me resume :

mod_jk :

functionnal connector, load-balancing, TC 3.2 and 3.3 compatibility

mod_webapp :

connector (with bug in cookies - no session possibles), no load-balancing,
strictly restrited to 4.x
I've reported the cookie problem at least 2 times but still no answer :

http://w4.metronet.com/~wjm/tomcat/2000/Dec/msg01064.html
http://w4.metronet.com/~wjm/tomcat/2001/Jan/msg00204.html

The pragmatic approach will to add mod_webapp stuff (related to 2.3) to
mod_jk, eventually
by deriving ajp13 to ajp14. Adding two-ways exchange may be a real need for
centralized
admin (apache admin from tomcat or tomcat from apache)

I didn't remember there was a vote or poll on mod_jk/mod_webapp ?-) (No
polemic)

A+



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: TC 4 / mod_jk

2001-01-17 Thread Craig R. McClanahan



Dan Milstein wrote:

 Craig,

 I assume I'm the person interested in porting mod_jk to TC 4 (if there's anyone 
else, please get in touch with me ;-).

 Thank you for clarifying the issue about the difference between the 2.2 and 2.3 
specs -- I hadn't realized that.

 I do have a question: how would you feel about including mod_jk in TC 4 before it 
became totally 2.3 compliant?  In other words, if I managed to write ajp13 and/or 
ajp12 connectors for TC 4, how would you feel about that being committed to cvs 
immediately, so that people could start using it (and using TC with various web 
servers), *before* making the extensive additions which would be necessary to bring 
it into 2.3 compliance?

 To my mind this would be worthwhile, and in keeping with TC 4 development in general 
-- there is the doc specifying the various degrees of "doneness" of 2.3 compliance.  
I see it as a very pragmatic path -- I believe that adding a functional web server 
connector would give many, many more people reason to start using TC 4, which can 
only be a good thing.  And, I hope, that increased usage would bring more volunteer 
resources to bear on the connectors -- which could be mod_webapp or mod_jk.

 I ask this because I am honestly not sure how much time I can devote to the project 
-- I am hoping to write the ajp13 connector, but I am not sure if I will have the 
time to rewrite all the C code (something I'm not as expert at) to bring mod_jk into 
2.3 compliance.  If I can only offer the code for the current ajp13, would that be 
something you would be comfortable with merging into the TC 4 codebase?


I am OK with (as opposed to enthusiastic about -- I'd personally prefer to see people 
fixing mod_webapp than doing this) someone wanting to write a Tomcat 4 connector for 
MOD_JK, as long as:
* Everyone understands that it's there simply for porting
  and won't be compliant with the final specs
* Enough people are willing to do support for it so that it
  doesn't just collect bug reports (like MOD_JK did until
  you and others started working on it again)

The quickest way to accomplish this would be to mimic the organizational structure of 
org.apache.catalina.connector.http.Http{Connector,Processor}, and change the way that 
request properties get sent.  Everything that happens to a request after that point 
(i.e. after you call invoke() on the Engine) does not care where the request came from.

NOTE:  In terms of timing, I'd rather see this work in the 4.1 repository so it 
doesn't destabilize anything in the 4.0 beta cycle, or delay it.


 Thanks,
 -Dan


Craig



 "Craig R. McClanahan" wrote:
 
  GOMEZ Henri wrote:
 
   [finally ... a technical issue!]
  I still didn't understand why TC 4.0 didn't select mod_jk as
  their connector to WebServer. The code is clean and many bugs
  are removed. A web server connector is not an easy piece of cake
  so why reinvent the whell ?-(
  
 
  Tomcat 4.0 did not select mod_jk for several reasons.  The most important ones
  are at the top:
 
  * MOD_JK (like MOD_JSERV before it) has no clue what a web
application is.  This forces you to configure many items twice --
once in the web.xml file and once in the Apache configuration,
which is a pretty serious imposition on people trying to administer
the combination.
 
  * While the 2.2 spec was silent in many areas, the 2.3 spec will
require an Apache+Tomcat combination to obey *all* the requirements
of the spec (same rules as for any other container).  This means that
the things in web.xml *must* be respected.  For example, a security
constraint in a web.xml file must be enforced, even on a static resource
that is served by Apache instead of Tomcat.  Substantial modifications
to MOD_JK would be needed to make this work (primarily in adding a
two-way exchange of configuration information).
 
  * MOD_JK had no committers interested in maintaining it, at the time
that the decision was made.  Subsequent to that time, several
volunteers have surfaced, including at least one person interested in
supporting MOD_JK under Tomcat 4.0.  That would be fine with me,
as long as the result obeys all the rules.
 
  Craig McClanahan
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 --

 Dan Milstein // [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]