Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Apache/mod_perl2 : "failed to resolve handler"

by ikegami (Patriarch)
on Jun 20, 2005 at 15:40 UTC ( [id://468392]=note: print w/replies, xml ) Need Help??


in reply to Apache/mod_perl2 : "failed to resolve handler"

This is not the appropriate place for mod_perl support. Check mod_perl's Getting Help.

I do have a quick comment and possible solution:

I don't think "traditional CGI" pays any attention to PerlSwitches, so it's no surprise it doesn't know about the new paths.

What's the package used in Hello.pm? It should be package pl::Hello.

Replies are listed 'Best First'.
Re^2: Apache/mod_perl2 : "failed to resolve handler"
by mpeters (Chaplain) on Jun 20, 2005 at 16:22 UTC
    In addition to the above, try loading your module before using it as a handler. This will cause Apache to not even start if there are problems with it and thus catch your problem (with a better error message) earlier.
    PerlModule pl::Hello
    or in a startup.pl
    use pl::Hello;

    -- More people are killed every year by pigs than by sharks, which shows you how good we are at evaluating risk. -- Bruce Schneier
Re^2: Apache/mod_perl2 : "failed to resolve handler"
by jpeg (Chaplain) on Jun 20, 2005 at 16:24 UTC
    Changing the package line in Hello.pm from Hello to pl::Hello fixed it. Thanks.

    For the record, I listed the differences between the CGI script's @INC path and modperl's @INC path to demonstrate that the PerlSwitches directive worked; e.g., that this was not a problem with @INC not seeing /usr/local/apache2/pl. That wasn't my question; sorry if that was unclear.

    Update:
    ikegami, can you clarify your post? Was there some specific mod_perl related link you wanted me to see? You posted a search result for 'getting help'. I don't get what you're trying to tell me.

    --
    jpg

      ikegami, can you clarify your post? Was there some specific mod_perl related link you wanted me to see? You posted a search result for 'getting help'. I don't get what you're trying to tell me.

      Here's the link to mod_perl's Getting Help that ikegami meant.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://468392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2025-07-10 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.