Discussion:
[Mason] Undefined subroutine apache_request_to_comp_path using
Guido Brugnara
2017-04-16 19:16:33 UTC
Permalink
To set up the MasonX::Request::ExtendedCompRoot component I have add these two rows in my Apache 2.4 config file:

PerlSetVar MasonRequestClass MasonX::Request::ExtendedCompRoot
PerlSetVar MasonResolverClass MasonX::Resolver::ExtendedCompRoot

... but the Apache 2.4 (or 2.2) server respond with this error:

[Sun Apr 16 20:26:17.446351 2017] [perl:error] [pid 5672] [client 192.168.9.2:40230] Undefined subroutine &HTML::Mason::Resolver::File::ApacheHandler::apache_request_to_comp_path called at /

Someone use with success this component with Apache 2?

My goal is to call to a specific component root, for example to partially change the component beavior in main root with a component in the secondary root which then calls the main component.

There are MasonX::Request::ExtendedCompRoot alternatives?

Any suggestions would be appreciated.

bye
gdo
Alex Robinson
2017-04-17 00:24:59 UTC
Permalink
Hi gdo


Are you using HTML:Mason rather than Mason 2? (and if so, why? ;)

http://search.cpan.org/~drolsky/HTML-Mason-1.56/lib/HTML/Mason.pm#WAIT_-_HAVE_YOU_SEEN_MASON_2
?



I've attached 2 files that essentially show what I kludged up back in 2004
or 5. Or whenever.

The ApacheHandler is massively cut down, but hopefully it gives the rough
idea.


My apache config contains something along the lines of:

PerlModule Apache2::compat
PerlSetVar MasonArgsMethod mod_perl
PerlOptions +GlobalRequest
PerlModule EDT::Mason::ApacheHandler

<Location />
Require all granted
SetHandler modperl
PerlHandler EDT::Mason::ApacheHandler
</Location>


Works for me - YMMV (there are still several sites still running on it
having been migrated from box to box - I can confirm against Apache 2.4.6 ;)


Sorry to not have a clean and concise answer...


Alex
Post by Guido Brugnara
To set up the MasonX::Request::ExtendedCompRoot component I have add
PerlSetVar MasonRequestClass MasonX::Request::ExtendedCompRoot
PerlSetVar MasonResolverClass MasonX::Resolver::ExtendedCompRoot
[Sun Apr 16 20:26:17.446351 2017] [perl:error] [pid 5672] [client
ApacheHandler::apache_request_to_comp_path called at /
Someone use with success this component with Apache 2?
My goal is to call to a specific component root, for example to partially
change the component beavior in main root with a component in the secondary
root which then calls the main component.
There are MasonX::Request::ExtendedCompRoot alternatives?
Any suggestions would be appreciated.
bye
gdo
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mason-users mailing list
https://lists.sourceforge.net/lists/listinfo/mason-users
Loading...