Search the web
Sign In
New User? Sign Up
apache-asp · Apache::ASP
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Can't locate object method "request" via package "Apache"   Message List  
Reply | Forward Message #2203 of 2277 |
[First a quick hello.   We (http://edina.ac.uk/) have been using Apache::ASP for a few years, but you haven't heard much from us as it's worked pretty well!]

For the first time I've built apache2 (apache 2.2.4, mod_perl 2.0.3) for use with ASP (2.59).   The build and configuration went fine.   The web server started up and was fine until the first time I tried to access an ASP application.
Can't locate object method "request" via package "Apache" at [...]/perl5/lib/perl5/site_perl/5.8.0//Apache/ASP.pm line 165.
  
...and that line is...
my $rtest = $ModPerl2 ? Apache2::RequestUtil->request() : Apache->request();
  
It's calling Apache->request when should be calling Apache2::RequestUtil->request (it's mod_perl version 2.0.3).    So it's the $ModPerl2 flag.   Line 66 of ASP.pm initialized it:
$ModPerl2 = ($mod_perl::VERSION >= 1.99);
Now it turns out $mod_perl::VERSION is 1.30.   There's an easy workaround using $ENV{MOD_PERL_API_VERSION}
$ModPerl2 = ($ENV{MOD_PERL_API_VERSION} >= 2);
  
I see this has occurred before, though the error reported was different, and also in that case  $mod_perl::VERSION was undefined rather than having the wrong value.    See:  http://tech.groups.yahoo.com/group/apache-asp/message/2136

On one hand the workaround is OK, and I'm not keen to guddle about in the mod_perl code.  On the other hand, I'm not really happy just ignoring the fact that $mod_perl::VERSION is wrong...

Anyone know the cause and/or better fix?  

tim

-- Dr Tim Stickland
EDINA (http://edina.ac.uk/)



Wed Jul 11, 2007 12:19 pm

T.R.Stickland@...
Send Email Send Email

Forward
Message #2203 of 2277 |
Expand Messages Author Sort by Date

[First a quick hello. We (http://edina.ac.uk/) have been using Apache::ASP for a few years, but you haven't heard much from us as it's worked pretty well!] ...
T R Stickland
T.R.Stickland@...
Send Email
Jul 11, 2007
12:20 pm

Hi Tim, (like i postet Tidal 2 months ago on this list) you might try a patch from Maurice Yarrow: see ...
Helmut Zeilinger
hz@...
Send Email
Jul 11, 2007
12:43 pm

Thanks Helmut. My patch is similar to Maurice's, except that his allows for $mod_perl::VERSION to be an empty string. In my case it has been assigned the...
T R Stickland
T.R.Stickland@...
Send Email
Jul 11, 2007
1:00 pm

Howdy, I am attempting to access the session object from another program, not running under Apache::ASP. I recall seeing the syntax to do this on ...
Andrew Koebrick
Andrew.Koebrick@...
Send Email
Jul 12, 2007
8:10 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help