You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Henri Gomez <hg...@apache.org> on 2004/02/24 12:01:49 UTC

jk2 hooks infos

Hi to all,

I'm working on jk2 release (2.0.4) and as such try to fix
many bugzillas.

Jean-Frederic Clere send me this nice article (in french) :

http://www.hsc.fr/ressources/breves/apache-modules.html.fr

It seems there is a patch against mod_jk2 (we're working
jk2 release) :

--- mod_jk2.c.orig      2004-01-26 17:31:04.000000000 +0100
+++ mod_jk2.c   2004-01-26 17:30:48.000000000 +0100
@@ -808,11 +808,14 @@

  static void jk2_register_hooks(apr_pool_t *p)
  {
+    static const char * const aszPre[]={ "mod_rewrite.c",NULL };
+
      ap_hook_handler(jk2_handler, NULL, NULL, APR_HOOK_MIDDLE);
      ap_hook_post_config(jk2_post_config,NULL,NULL,APR_HOOK_MIDDLE);
      /* Force the mpm to run before us and set the
      * scoreboard image */
      ap_hook_child_init(jk2_child_init,NULL,NULL,APR_HOOK_LAST);
-    ap_hook_translate_name(jk2_translate,NULL,NULL,APR_HOOK_FIRST);
+    // ap_hook_translate_name(jk2_translate,NULL,NULL,APR_HOOK_FIRST);
+    ap_hook_translate_name(jk2_translate, aszPre,NULL,APR_HOOK_FIRST);
      ap_hook_map_to_storage(jk2_map_to_storage, NULL, NULL, 
APR_HOOK_MIDDLE);
  }


I wonder if we should use it since I saw in mod_file_cache.c (2.0.48),
that this tricks didn't works.

Who's right ?




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


HOOKS infos ? Was: jk2 hooks infos

Posted by Henri Gomez <hg...@apache.org>.
Henri Gomez wrote:

We also have report of problem between jk2 and mod_dav.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21546

Help welcome from Apache 2.0 specialist in such area.


> Hi to all,
> 
> I'm working on jk2 release (2.0.4) and as such try to fix
> many bugzillas.
> 
> Jean-Frederic Clere send me this nice article (in french) :
> 
> http://www.hsc.fr/ressources/breves/apache-modules.html.fr
> 
> It seems there is a patch against mod_jk2 (we're working
> jk2 release) :
> 
> --- mod_jk2.c.orig      2004-01-26 17:31:04.000000000 +0100
> +++ mod_jk2.c   2004-01-26 17:30:48.000000000 +0100
> @@ -808,11 +808,14 @@
> 
>  static void jk2_register_hooks(apr_pool_t *p)
>  {
> +    static const char * const aszPre[]={ "mod_rewrite.c",NULL };
> +
>      ap_hook_handler(jk2_handler, NULL, NULL, APR_HOOK_MIDDLE);
>      ap_hook_post_config(jk2_post_config,NULL,NULL,APR_HOOK_MIDDLE);
>      /* Force the mpm to run before us and set the
>      * scoreboard image */
>      ap_hook_child_init(jk2_child_init,NULL,NULL,APR_HOOK_LAST);
> -    ap_hook_translate_name(jk2_translate,NULL,NULL,APR_HOOK_FIRST);
> +    // ap_hook_translate_name(jk2_translate,NULL,NULL,APR_HOOK_FIRST);
> +    ap_hook_translate_name(jk2_translate, aszPre,NULL,APR_HOOK_FIRST);
>      ap_hook_map_to_storage(jk2_map_to_storage, NULL, NULL, 
> APR_HOOK_MIDDLE);
>  }
> 
> 
> I wonder if we should use it since I saw in mod_file_cache.c (2.0.48),
> that this tricks didn't works.
> 
> Who's right ?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 
>