RE: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-07-06 Thread David Christensen
Geoffrey Young wrote: > ... here's the code from http_request.c in 1.3: >request_rec *new; >... >new->headers_in = r->headers_in; >new->headers_out = ap_make_table(r->pool, 12); > ... this is an apache thing, not a mod_perl thing, Okay. > my $sub = $r->lookup_uri($lucky

RE: DBI problem

2005-07-06 Thread David Christensen
Niklas Saers wrote: > ... The perl script below works fine as a CGI from Apache. But when > running it through mod_perl, I get: > [error] Can't locate object method "connect" via package "DBI" > (perhaps you forgot to load "DBI"?) at /home/ab1/test5.pl line 5.\n > ... > use DBI(); > print "Content-

Broken pipe & Connection reset by peer

2005-07-06 Thread Wendy Tan
I got numerous entries as following in the log. I have read mailing archives regarding this topic. To sum it up, it's as follows. The server I set up is not a production server and there are not many users. I do not understand why I have "connection reset by peer" message since the server's CPU a

Re: Framework to Develop Web Apps like Struts

2005-07-06 Thread Chris Winters
On 7/6/05, Alejandro Galue <[EMAIL PROTECTED]> wrote: > Anybody know if exists a Framework for mod_perl like Struts or Java Server > Faces for Java to develop applications with perl using Model-View-Controller > patten ? Perrin just did a presentation on MVC web frameworks at YAPC::NA; his slides

Framework to Develop Web Apps like Struts

2005-07-06 Thread Alejandro Galue
Hello All, Anybody know if exists a Framework for mod_perl like Struts or Java Server Faces for Java to develop applications with perl using Model-View-Controller patten ? Thanks, Alejandro Galue.

[Fwd: CPAN Upload: P/PG/PGOLLUCCI/Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz]

2005-07-06 Thread Philip M. Gollucci
The uploaded file Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PG/PGOLLUCCI/Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz size: 7748 bytes md5: 253f4df9d395dbb4735c0708aa809968 No action is required on your part Request entered by: PGOLLUCCI (P

[Fwd: CPAN Upload: P/PG/PGOLLUCCI/Apache2-DebugFilter-0.02.tar.gz]

2005-07-06 Thread Philip M. Gollucci
The uploaded file Apache2-DebugFilter-0.02.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PG/PGOLLUCCI/Apache2-DebugFilter-0.02.tar.gz size: 6225 bytes md5: 9de4d181191e4a1ea39f9c0345716197 No action is required on your part Request entered by: PGOLLUCCI (Philip M. Gollucci) Reques

Re: Apache::DBI, exceeding max connections and Perl CPU usage

2005-07-06 Thread Perrin Harkins
On Wed, 2005-07-06 at 20:57 +, Mark Stosberg wrote: > Unrelated, I was just reviewing your slides from MVC presentation I > missed at YAPC. I would have liked to met you there. I did get to met > Michael Peters, another fine representative of your firm. I'm glad you and Michael got a chance to

Re: Failure calling BOOT: code

2005-07-06 Thread Stas Bekman
Marc Tardif wrote: [...] The problem is that if I uncomment the require line in the handler, I get the following error message in /tmp/mod_perl.error.log: Error loading Mozilla::LDAP::API: perldap_init failed The solution might be related to the following XS code in API.xs: BOOT: if ( p

MLDBM::Sync / BerkeleyDB

2005-07-06 Thread Bill Whillers
Instead of using Apache::Reload to monitor periodically re-cached flat files of session configuration data, I'm considering implementing MLDBM::Sync or BerkeleyDB. The amount of data needing to be loaded during each session is relatively small and variable (10-25k) but typically, these configur

Re: Apache::DBI, exceeding max connections and Perl CPU usage

2005-07-06 Thread Mark Stosberg
Thanks for the response Perrin. Unrelated, I was just reviewing your slides from MVC presentation I missed at YAPC. I would have liked to met you there. I did get to met Michael Peters, another fine representative of your firm. On 2005-07-06, Perrin Harkins <[EMAIL PROTECTED]> wrote: > On Wed,

Re: Can't get simple ModPerl::Registery test page working

2005-07-06 Thread Stas Bekman
Ray Licon wrote: Hello - I can't get the simple ModPerl::Registry test page to run. I complied everything from scratch using gcc3.4.2 on Solaris 2.8. The server starts and the error_log is clean before and after I attempt to run my test page. From apache error_log: [Wed Jul 06 11:26:52 2005] [

Re: Can't get simple ModPerl::Registery test page working

2005-07-06 Thread Stas Bekman
Perrin Harkins wrote: On Wed, 2005-07-06 at 12:26 -0700, Ray Licon wrote: When I ask for the page from the server, it merely attempts to download the text of the page. Is the file marked executable? It's no longer the case. registry in mp2 doesn't check the exec bit since it had problems

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
You're probably right, I hadn't noticed the signifigant digits were the same.  Thanks for the heads up.  Now if I could just figure out why modperl refuses to work with DBI.. Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4,

Re: Can't get simple ModPerl::Registery test page working

2005-07-06 Thread Perrin Harkins
On Wed, 2005-07-06 at 12:26 -0700, Ray Licon wrote: > > When I ask for the page from the server, it merely > > attempts to download the text of the page. Is the file marked executable? - Perrin

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Perrin Harkins
On Wed, 2005-07-06 at 14:40 -0400, Robert Aspinall wrote: > Something I noticed when reinstalling DBI.. it's finding perl 5.008 > somewhere on the system, despite invoking cpan with the 5.8 binary. Isn't that just how perl version numbers work? I thought 5.8 and 5.008 actually meant the same thin

Failure calling BOOT: code

2005-07-06 Thread Marc Tardif
This is the software installed on my system: Red Hat Enterprise Linux ES release 4 httpd-2.0.54 mod_perl-2.0.1 This is the configuration in my httpd.conf file: LoadModule perl_module modules/mod_perl.so PerlRequire /usr/my/dev/lib/My/bootstrapper.pl SetHandler modperl PerlResponse

Re: Revisions to Testing POD

2005-07-06 Thread Stas Bekman
William McKee wrote: Well, I posted too fast. Scratch that first diff for this version which has a bit more detail about how the UPLOAD function is working. Thanks William. Committed with a few tweaks. -- __ Stas Bekman

Re: Revisions to Testing POD

2005-07-06 Thread Stas Bekman
William McKee wrote: I've been working with adding upload tests to my script and have a few additions to make to the testing.pod file which are attached. I've also updated all the t_cmp() examples to indicate the new format of received, expected, comment. -These are two special methods added b

Re: Revisions to Testing POD

2005-07-06 Thread William McKee
Well, I posted too fast. Scratch that first diff for this version which has a bit more detail about how the UPLOAD function is working. William -- Knowmad Services Inc. http://www.knowmad.com --- testing.pod.orig2005-07-06 09:21:53.0 -0400 +++ testing.pod 2005-07-06 15:26:19.000

Can't get simple ModPerl::Registery test page working

2005-07-06 Thread Ray Licon
> Hello - > > I can't get the simple ModPerl::Registry test page > to > run. > > I complied everything from scratch using gcc3.4.2 > on > Solaris 2.8. The server starts and the error_log is > clean before and after I attempt to run my test > page. > > From apache error_log: > [Wed Jul 06 11:

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
No, when I invoked CPAN I did it as /usr/local/bin/perl -MCPAN -e shell (the location of the perl 5.8 binary) Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Phili

Revisions to Testing POD

2005-07-06 Thread William McKee
I've been working with adding upload tests to my script and have a few additions to make to the testing.pod file which are attached. I've also updated all the t_cmp() examples to indicate the new format of received, expected, comment. Thanks, William -- Knowmad Services Inc. http://www.knowmad.

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Philip M. Gollucci
Robert Aspinall wrote: There is more than one perl installed (an unfortunate side effect of IRIX). Any idea how to get cpan to only build using 5.8? I think it might be as simple as: /full/path/to/perl -MCPAN -e shell cpan> install DBI rather then perl -MCPAN -e shell cpan> install DBI EN

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
There is more than one perl installed (an unfortunate side effect of IRIX). Any idea how to get cpan to only build using 5.8? Stas Bekman wrote: > Something I noticed when reinstalling DBI.. it's finding perl 5.008 > somewhere on the system, despite invoking cpan with the 5.8 binary. I > ge

Re: Apache::DBI, exceeding max connections and Perl CPU usage

2005-07-06 Thread Perrin Harkins
On Wed, 2005-07-06 at 18:11 +, Mark Stosberg wrote: > On the front end web server machine, the CPU spiked up well beyond > average and stayed there. On the backend PostgreSQL 7.4 server, we saw > a number or errors that that the number of max connections had been > exceeded. The CPU spike soun

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Stas Bekman
[Robert, please quote only the relevant parts you reply to. The way you reply renders this thread very hard to read in the future. Thanks. Robert Aspinall wrote: I'm not sure what output you're looking for, but if I run ldd on /var/sgi_apache/httpd-outbox/libexec/libperl.so: libm.so =>

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
Something I noticed when reinstalling DBI.. it's finding perl 5.008 somewhere on the system, despite invoking cpan with the 5.8 binary.  I get this message: Creating DBI::PurePerl test variant: t/zvpp_60preparse.t Creating DBI::PurePerl test variant: t/zvpp_80proxy.t Checking if your kit is co

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
I'm not sure what output you're looking for, but if I run ldd on /var/sgi_apache/httpd-outbox/libexec/libperl.so: libm.so => /usr/lib32/libm.so libc.so.1 =>/usr/lib32/libc.so.1 Which file do you want me to ldd as far as the perl lib goes? Robert Aspinall NOAA's National Ocean Servi

Apache::DBI, exceeding max connections and Perl CPU usage

2005-07-06 Thread Mark Stosberg
Hello, Yesterday we noticed two things happening about the same time with a mod-perl driven website we managed, and I'm trying to figure out and if how they were related. On the front end web server machine, the CPU spiked up well beyond average and stayed there. On the backend PostgreSQL 7.4 ser

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Stas Bekman
Robert Aspinall wrote: ldd DBI.so just returns: libc.so.1 => /usr/lib32/libc.so.1 Hmm, that's bizzare. Was DBI linked statically with perl or something like that? I'm not familiar with Irix, so I'm just guessing. But in this case there should be no DBI.so. How about nuking /opt/perl-5.8.

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
ldd DBI.so just returns: libc.so.1 => /usr/lib32/libc.so.1 Robert Aspinall NOAA's National Ocean Service CO-OPS/Information Systems Division 1305 East-West Highway Bldg. SSMC4, Station Id 6314 Silver Spring, MD 20910 [EMAIL PROTECTED] Stas Bekman wrote: [Robert, please don't forget to R

Re: APR::Pool segfaults on Win32 and Cygwin

2005-07-06 Thread Philip M. Gollucci
Might be a good idea to run: perl -d -MAPR::Pool -e '$p=APR::Pool->new;'since you're using cygin you could also send the gdb backtrace of the core file ? I don't know if I can debug it, but I'm sure that will help others attempt to. -- END --

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Stas Bekman
[Robert, please don't forget to Reply-All] Robert Aspinall wrote: I saw that article, however, as far as I can tell I'm using the same perl libraries that I compiled modperl with. Right, what about DBI.so, that's the only that fails. Stas Bekman wrote: Robert Aspinall wrote: I'm running

APR::Pool segfaults on Win32 and Cygwin

2005-07-06 Thread Nick ***
perl -MAPR::Pool -e "$p=APR::Pool->new;" fails on Win32 with the following error: The instruction at "0x6eec7c79" referenced memory at "0x0014". The memory could not be "read". E:\>perl -V Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=MSWin32

Re: Modification of read only value attempted

2005-07-06 Thread Stas Bekman
Malte Ubl wrote: Hi, I'd really appreciate some help with a really weird mod_perl problem we keep running into. This is mod_perl version 1.29 using Apache::PerlRun The application servers of our mod_perl site occasionally (once every 2-3 weeks) start spitting out these error messages: [

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Stas Bekman
Robert Aspinall wrote: I'm running modperl 1.29 on Apache 1.3.31 with Perl 5.8.2, running on Irix 6.5.25m. When I try to use the Apache::DBI module, I get the following Can't load '/opt/perl-5.8.2/lib/site_perl/5.8.2/IP27-irix/auto/DBI/DBI.so' for module DBI: 71121247:/var/sgi_apache/server/s

[JOB SEARCH] Looking for a new job

2005-07-06 Thread Stas Bekman
Hi, First of all, I'd like to thank TicketMaster for sponsoring my full time work on the development and the support of the mod_perl project over the period of the last 3.5 years (!). Special thanks go to Craig McLane, who was my invisible supervisor all these years. Finally mod_perl 2.0 is

Re: Problems with DBI & modperl on Irix 6.5

2005-07-06 Thread Robert Aspinall
A little update:  I see these errors when compiling with 'make':  cc -n32  -O3 -OPT:Olimit=0:space=ON -I/opt/perl-5.8.2/lib/5.8.2/IP27-irix/CORE -D_BSD_TYPES -D_BSD_TIME -woff 1184,1552 -DLANGUAGE_C  -DMOD_PERL_VERSION=\"1.29\" -DMOD_PERL_STRING_VERSION=\"mod_perl/1.29\" -I/var/sgi_apache/serv

DBI problem

2005-07-06 Thread Niklas Saers
Dear All, I'm trying out mod_perl and I've been running into problem. The perl script below works fine as a CGI from Apache. But when running it through mod_perl, I get: [error] Can't locate object method "connect" via package "DBI" (perhaps you forgot to load "DBI"?) at /home/ab1/test5.pl line 5.

Re: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-07-06 Thread Geoffrey Young
> I added some debug logging to see headers_out() before and after calling > no_cache(1). no_cache(1) appears to be setting the specified headers and > internal_redirect() appears to be ignoring them. alright, I think I see what's going on here. I'll explain technically and then try to explain

RE: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-07-06 Thread Frank Maas
> Frank Maas wrote: > >> What you can try is to update the Last-Modified header on each >> request. Bear in mind that this won't work for requests that are made >> within the same second. To probably state the obvious: it is >> necessary that you set the header to the timestamp of the request, >>