perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McBride <came...@cwru.edu>
Subject Re: Embperl::Object 2.0b9 offline
Date Thu, 14 Nov 2002 18:46:14 GMT
> that doesn't help.

> > > this is what i get when i run the code snippet in question:
> > > 
> > > ERR:  404: : Not found '_base.epl', searched: 

> > try to add the parameter 
> > 
> > app_name => 'foo'

Using 2.0b8, I get the same error.  Unless I messed up the syntax
somewhere, it appears that the 'object_addpath' is the culprit and 
is not functioning correctly.  

I don't think it works online either (see below snippet from
server-info), as I get a 404 error when requesting 'foo.html'

Has anyone verified that 'object_addpath' works in 2.0b8 or newer?

If it matters, the versions are Embperl 2.0b8, perl 5.6.1, mod_perl
1.26, Apache 1.3.23.

Anyhow, the following offline derived code-snippet seems to work, 
note the chdir.

Cameron

=====================
## Offline working code
use Embperl::Object;

my $path = '/var/www/html/ep/eptest';
chdir $path;

my $h = {
  app_name => 'eptest',
  object_addpath => $path,
  object_base => '_base.epl',
  inputfile => "foo.html",
  outputfile => "something.html",
};
Embperl::Object::Execute( $h );


=====================
## Online mode info

% ls -l /var/www/html/ep/test_add
-rwxrwxr-x    1 cam      web           989 Oct 22 17:59 _base.epl

%  ls -l /var/www/html/ep/eptest/foo.html /var/www/html/ep/eptest/_base.epl
ls: /var/www/html/ep/eptest/_base.epl: No such file or directory
-rw-rw-r--    1 cam      web           434 Oct 22 17:48 /var/www/html/ep/eptest/foo.html

## server-info stats
Embperl_UseEnv off
EMBPERL_LOG /var/log/httpd/embperl.log
EMBPERL_SESSION_HANDLER_CLASS 'no'
EMBPERL_OPTIONS 262144
EMBPERL_DEBUG 10477
EMBPERL_OBJECT_BASE _base.epl
EMBPERL_URIMATCH (\.htm.?|\.epl$)
<Location /ep>
  EMBPERL_APPNAME eptesting  
  EMBPERL_OBJECT_ADDPATH /var/www/html/ep/test_add
</Location>

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


Mime
View raw message