Re: Mod-jk worker not being called after calling Perl handler

2010-11-23 Thread Mohit Anchlia
Finally I have something that seems to work. I could find only this way of calling mod-jk after perlhandler gets called. Does it look ok? In headers_in(); if ($headers_in->get("Content-Length") < 20){ $r->handler("jakarta-servlet"); return DECLINED; } #$r->content_type('text/plain'); #$r->p

Re: Mod-jk worker not being called after calling Perl handler

2010-11-22 Thread Ryan Gies
You should be putting "use strict;" at the top of your Perl files (which would have reported the following error) The constant is DECLINED, not DECLINE On 11/22/2010 12:53 PM, Mohit Anchlia wrote: I tried package Apache2::Rules2; #use lib '/home/.mohit/mod_perl-2.0.4/lib'; use Apache2::Const

Re: Mod-jk worker not being called after calling Perl handler

2010-11-22 Thread Mohit Anchlia
I tried package Apache2::Rules2; #use lib '/home/.mohit/mod_perl-2.0.4/lib'; use Apache2::Const qw(:common); use Apache2::RequestRec (); use Apache2::RequestIO (); sub handler { my $r = shift; #$r->content_type('text/plain'); #$r->print("mod_perl rules!\n"); return DECLINE; # We must return a stat

Re: Mod-jk worker not being called after calling Perl handler

2010-11-20 Thread André Warnier
Ryan Gies wrote: Have you tried returning Apache2::Const::DECLINED instead? http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values On 11/20/2010 12:09 AM, Mohit Anchlia wrote: I am trying to look at how handlers work so I created a very simple perl handler that just r

Re: Mod-jk worker not being called after calling Perl handler

2010-11-20 Thread Ryan Gies
Have you tried returning Apache2::Const::DECLINED instead? http://perl.apache.org/docs/2.0/user/handlers/intro.html#Handler_Return_Values On 11/20/2010 12:09 AM, Mohit Anchlia wrote: I am trying to look at how handlers work so I created a very simple perl handler that just return "OK". And I add

Mod-jk worker not being called after calling Perl handler

2010-11-19 Thread Mohit Anchlia
I am trying to look at how handlers work so I created a very simple perl handler that just return "OK". And I added an entry "PerlModule" and the "PerlHandler". I also was able to build mod_perl2.so. When I do a GET request with handler ON I see that Handler gets called but then the call is not goi