You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by "Tige D. Chastain" <td...@insightbb.com> on 2004/03/02 05:40:05 UTC

Apache/mod_perl/Apache::ASP TIEHASH problem

Hi all.  I'm new to the Apache::ASP module, and am having some issues
with it.  

I recompiled mod_perl against an RPM Apache installation (I know - I
should compile Apache from source), recompiled Apache::ASP, as well as
all dependencies from source.  I'm running Apache 1.3.27, mod_perl 1.29,
and Apache::ASP 2.57.  

Now when I attempt to access an ASP page, I get the following error
message in Apache:

perl_tie_hash: Can't locate object method "TIEHASH" via package
"Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
line 266.
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 266
       
Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de78)','/var/www/html/edocbinder/Default.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181
        Apache::ASP::handler('Apache=SCALAR(0x822de78)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0
perl_tie_hash: Can't locate object method "TIEHASH" via package
"Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
line 267.
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 267
       
Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de78)','/var/www/html/edocbinder/Default.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181
        Apache::ASP::handler('Apache=SCALAR(0x822de78)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0
[Mon Mar  1 22:21:10 2004] [error] Can't locate object method "get" via
package "Apache::Table" at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line
2013.!!Apache::ASP::get_dir_config('Apache::Table=HASH(0x822de18)','Global') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 273!!Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de78)','/var/www/html/edocbinder/Default.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181!!Apache::ASP::handler('Apache=SCALAR(0x822de78)') called at /dev/null line 0!!eval {...} called at /dev/null line 0!
[Mon Mar  1 22:27:23 2004] [error] [client 64.68.92.190] File does not
exist: /var/www/html/perptech/training/\training\ora105.htm
perl_tie_hash: Can't locate object method "TIEHASH" via package
"Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
line 266.
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 266
       
Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de4c)','/var/www/html/edocbinder/TryBuy/Buy.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181
        Apache::ASP::handler('Apache=SCALAR(0x822de4c)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0
perl_tie_hash: Can't locate object method "TIEHASH" via package
"Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
line 267.
        eval {...} called at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 267
       
Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de4c)','/var/www/html/edocbinder/TryBuy/Buy.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181
        Apache::ASP::handler('Apache=SCALAR(0x822de4c)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0
[Mon Mar  1 22:40:42 2004] [error] Can't locate object method "get" via
package "Apache::Table" at
/usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line
2013.!!Apache::ASP::get_dir_config('Apache::Table=HASH(0x822ddec)','Global') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 273!!Apache::ASP::new('Apache::ASP','Apache=SCALAR(0x822de4c)','/var/www/html/edocbinder/TryBuy/Buy.asp') called at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm line 181!!Apache::ASP::handler('Apache=SCALAR(0x822de4c)') called at /dev/null line 0!!eval {...} called at /dev/null line 0!


Does anyone have ANY insight as to what I can do to resolve what the
problem is.  I'd be interested in hearing possible solutions (besides
recompile apache from source).

Thanks in advance!

Tige Chastain



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Apache/mod_perl/Apache::ASP TIEHASH problem

Posted by "Tige D. Chastain" <td...@insightbb.com>.
On Tue, 2004-03-02 at 21:48, Josh Chamas wrote:
> Tige D. Chastain wrote:
> >...
> > As you can see, I did compile in Apache::Tables.  I'll try the older
> > version and see what I come up with.  I just cannot figure out when the
> > mod_perl cannot find the Apache::Table module.  Do I need to load this
> > directly in Apache's httpd.conf file to satisfy a dependency?  When I do
> > a /usr/local/bin/perl -e 'use Apache::Table' I get a 0 for a return
> > code.
> > 
> 
> You can try adding "PerlModule Apache::Table" to your httpd.conf, but
> this probably isn't the issue.  Does it work?
> 
> > Any insight from anyone is greatly appreciated.
> > 
> 
> Make sure your apache was stop/start'd after recompiling the mod_perl
> and that the "make install" was done correctly for the mod_perl
> into the correct perl ( in case there are many perl's on your system ).
> Any one of these missed, and your install would not be picked up correctly.
> 
> Regards,
> 
> Josh
> ________________________________________________________________________
> Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
> Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
> http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org
> 
> 

Josh,

I did ensure the apache instance was shutdown before recompiling
mod_perl from source.  Also, when I generated the make file, I
absolutely referenced the perl binary I wanted used (yes, I have 3
different versions - I loathe RPM dependencies).  I tried putting in a
directive as you suggested for Apache::Table, but that did not work
(didn't seem to have any affect actually).

I was hoping it was something simple.  If it is , I cannot pin down what
it could be.

Tige


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Apache/mod_perl/Apache::ASP TIEHASH problem

Posted by Josh Chamas <jo...@chamas.com>.
Tige D. Chastain wrote:
>...
> As you can see, I did compile in Apache::Tables.  I'll try the older
> version and see what I come up with.  I just cannot figure out when the
> mod_perl cannot find the Apache::Table module.  Do I need to load this
> directly in Apache's httpd.conf file to satisfy a dependency?  When I do
> a /usr/local/bin/perl -e 'use Apache::Table' I get a 0 for a return
> code.
> 

You can try adding "PerlModule Apache::Table" to your httpd.conf, but
this probably isn't the issue.  Does it work?

> Any insight from anyone is greatly appreciated.
> 

Make sure your apache was stop/start'd after recompiling the mod_perl
and that the "make install" was done correctly for the mod_perl
into the correct perl ( in case there are many perl's on your system ).
Any one of these missed, and your install would not be picked up correctly.

Regards,

Josh
________________________________________________________________________
Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Apache/mod_perl/Apache::ASP TIEHASH problem

Posted by "Tige D. Chastain" <td...@insightbb.com>.
On Tue, 2004-03-02 at 20:07, Josh Chamas wrote:
> Tige D. Chastain wrote:
> > Hi all.  I'm new to the Apache::ASP module, and am having some issues
> > with it.  
> > 
> > I recompiled mod_perl against an RPM Apache installation (I know - I
> > should compile Apache from source), recompiled Apache::ASP, as well as
> > all dependencies from source.  I'm running Apache 1.3.27, mod_perl 1.29,
> > and Apache::ASP 2.57.  
> > 
> > Now when I attempt to access an ASP page, I get the following error
> > message in Apache:
> > 
> > perl_tie_hash: Can't locate object method "TIEHASH" via package
> > "Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
> > line 266.
> 
> Hmmm... maybe your mod_perl does not have Apache::Table support compiled in.
> This might have become a problem ever since Apache::ASP 2.55, when a native
> port to mod_perl2 was done, requiring the use of Apache::Table API.
> 
> So you might try downgrading to 2.53 or earlier, check out this link for archived
> versions of the software:
> 
>    http://backpan.cpan.org/modules/by-authors/id/C/CH/CHAMAS/
> 
> If you want to use the latest Apache::ASP, you should at least
> recompile your mod_perl from scratch ( this does not mean you have
> to recompile your Apache though ).  I believe the default mod_perl build
> is to enable Apache::Table support for at least a couple years now.
> 
> Regards,
> 
> Josh
> 
> ________________________________________________________________________
> Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
> Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
> http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
> For additional commands, e-mail: asp-help@perl.apache.org
> 

Josh,

Actually, I thought about that when I recompiled mod_perl from source. 
I basically enabled everything when I compiled from source.  Here are
the flags I used:

USE_APXS=1
WITH_APXS=/usr/sbin/apxs
APACHE_USER=apache  
APACHE_GROUP=apache  
PERL_TABLE_API=1  
PERL_DISPATCH=1  
PERL_POST_READ_REQUEST=1  
PERL_TRANS=1  
PERL_HEADER_PARSER=1  
PERL_ACCESS=1  
PERL_AUTHEN=1  
PERL_AUTHZ=1  
PERL_TYPE=1  
PERL_FIXUP=1  
PERL_LOG=1  
PERL_INIT=1  
PERL_CLEANUP=1  
PERL_RESTART=1  
PERL_STACKED_HANDLERS=1  
PERL_METHOD_HANDLERS=1  
PERL_DIRECTIVE_HANDLERS=1  
PERL_LOG_API=1  
PERL_URI_API=1  
PERL_UTIL_API=1  
PERL_FILE_API=1  
PERL_SECTIONS=1  
PERL_SSI=1 

As you can see, I did compile in Apache::Tables.  I'll try the older
version and see what I come up with.  I just cannot figure out when the
mod_perl cannot find the Apache::Table module.  Do I need to load this
directly in Apache's httpd.conf file to satisfy a dependency?  When I do
a /usr/local/bin/perl -e 'use Apache::Table' I get a 0 for a return
code.

Any insight from anyone is greatly appreciated.

Tige Chastain



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Apache/mod_perl/Apache::ASP TIEHASH problem

Posted by Josh Chamas <jo...@chamas.com>.
Tige D. Chastain wrote:
> Hi all.  I'm new to the Apache::ASP module, and am having some issues
> with it.  
> 
> I recompiled mod_perl against an RPM Apache installation (I know - I
> should compile Apache from source), recompiled Apache::ASP, as well as
> all dependencies from source.  I'm running Apache 1.3.27, mod_perl 1.29,
> and Apache::ASP 2.57.  
> 
> Now when I attempt to access an ASP page, I get the following error
> message in Apache:
> 
> perl_tie_hash: Can't locate object method "TIEHASH" via package
> "Apache::Table" at /usr/local/lib/perl5/site_perl/5.8.3/Apache/ASP.pm
> line 266.

Hmmm... maybe your mod_perl does not have Apache::Table support compiled in.
This might have become a problem ever since Apache::ASP 2.55, when a native
port to mod_perl2 was done, requiring the use of Apache::Table API.

So you might try downgrading to 2.53 or earlier, check out this link for archived
versions of the software:

   http://backpan.cpan.org/modules/by-authors/id/C/CH/CHAMAS/

If you want to use the latest Apache::ASP, you should at least
recompile your mod_perl from scratch ( this does not mean you have
to recompile your Apache though ).  I believe the default mod_perl build
is to enable Apache::Table support for at least a couple years now.

Regards,

Josh

________________________________________________________________________
Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org



---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org