Mailing List Archive

HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject
Hi,

trying nearly exactly the "basic example" from the pod (I changed .htm to
.epl) everythings OK. Trying the other example handling the request object
fails with:

---snip---

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, Volker.Hess@avmz.uni-siegen.de
and inform them of the time the error occurred, and anything you might
have done that may
have caused the error.

[1843]ERR: 24: Line 23: Error in Perl code: Can't locate object method
"title" via package "HTML::Embperl::Req" at
/wappl/2/presse/webroot/htdocs/foo/base.epl line 23.

Apache/1.3.9 (Unix) Debian/GNU AuthPostgreSQL/0.7.1 mod_perl/1.21_03-dev
HTML::Embperl 1.3b4 [Thu Jul 20 12:20:01 2000]

---snip---

Where am I wrong? Is it mod_perl/1.21?
^

Volker

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/
Re: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
Hi,
>
>trying nearly exactly the "basic example" from the pod (I changed .htm to
>.epl) everythings OK. Trying the other example handling the request object
>fails with:
>
>[1843]ERR: 24: Line 23: Error in Perl code: Can't locate object method
>"title" via package "HTML::Embperl::Req" at
>/wappl/2/presse/webroot/htdocs/foo/base.epl line 23.
>
>Apache/1.3.9 (Unix) Debian/GNU AuthPostgreSQL/0.7.1 mod_perl/1.21_03-dev
>HTML::Embperl 1.3b4 [Thu Jul 20 12:20:01 2000]
>
>---snip---
>
mod_perl 1.21 is a problem when it is build as DSO, when it is linked
staticly into Apache it isn't a problem.

Does make test work?

If yes and your are not use DSO for mod_perl, enable the dbgSearchObject in
EMBPERL_DEBUG and send me the embperl.log file.

Gerald
Re: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
Hi Gerald,

On Thu, 20 Jul 2000, Gerald Richter wrote:

> mod_perl 1.21 is a problem when it is build as DSO, when it is linked
> staticly into Apache it isn't a problem.
>
> Does make test work?
>
Yes! It works ...

> If yes and your are not use DSO for mod_perl, enable the
> dbgSearchObject in EMBPERL_DEBUG and send me the embperl.log file.
>
... but I use DSO!

Must I upgrade? Or use the statically linked "monolith"?

Volker

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
Hi,
>
>
> > If yes and your are not use DSO for mod_perl, enable the
> > dbgSearchObject in EMBPERL_DEBUG and send me the embperl.log file.
> >
> ... but I use DSO!
>
> Must I upgrade? Or use the statically linked "monolith"?
>

I very highly recommend to either upgrade mod_perl or to link it staticly
into Apache. Any version of mod_perl before 1.22 has great problems with
Perl modules, that uses XS code (like Embperl), when build as DSO.

Gerald

-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
On Tue, 25 Jul 2000, Gerald Richter wrote:

> Hi,
> >
> >
> > > If yes and your are not use DSO for mod_perl, enable the
> > > dbgSearchObject in EMBPERL_DEBUG and send me the embperl.log file.
> > >
> > ... but I use DSO!
> >
> > Must I upgrade? Or use the statically linked "monolith"?
> >
>
> I very highly recommend to either upgrade mod_perl or to link it staticly
> into Apache. Any version of mod_perl before 1.22 has great problems with
> Perl modules, that uses XS code (like Embperl), when build as DSO.
>
Back from private (german) to public (sad english) ;-)

I checked everything you mentioned, upgraded to mod_perl 1.24 as DSO. It
seems to be a problem with virtual hosts configuration. There are other
vhosts also using HTML::Embperl _without_ HTML::EmbperlObject but they
should not overwrite the settings from vhost with HTML::EmbperlObject?!

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
>
> I checked everything you mentioned, upgraded to mod_perl 1.24 as DSO. It
> seems to be a problem with virtual hosts configuration. There are other
> vhosts also using HTML::Embperl _without_ HTML::EmbperlObject but they
> should not overwrite the settings from vhost with HTML::EmbperlObject?!
>
No, only a <FILES> setting _outside_ vhost, may override the <LOCATION>
inside this vhost. Maybe you try another extention then .epl

Gerald


-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
On Wed, 26 Jul 2000, Gerald Richter wrote:

[...]
> >
> No, only a <FILES> setting _outside_ vhost, may override the <LOCATION>
> inside this vhost. Maybe you try another extention then .epl
>
I did (.perl) and ran into same problem! Every other embperl application
(without object methods) in this environment does it's job. I am really
helpless.

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
> On Wed, 26 Jul 2000, Gerald Richter wrote:
>
> [...]
> > >
> > No, only a <FILES> setting _outside_ vhost, may override the <LOCATION>
> > inside this vhost. Maybe you try another extention then .epl
> >
> I did (.perl) and ran into same problem!

You hopefully also changed the FILESMATCH from epl to perl ?

> Every other embperl application
> (without object methods) in this environment does it's job. I am really
> helpless.
>


Which is the URL that you are request?

Gerald
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
>
> Which is the URL that you are request?
>
try:

http://presse.avmz.uni-siegen.de/foo/page1.perl
(configured with HTML::EmbperlObject, using object methods)

http://presse.avmz.uni-siegen.de/
(configured with HTML::EmbperlObject, not using object methods)

other vhosts (only with HTML::Embperl)

http://giessen.online-h.de/Stadtarchiv/
http://staufenberg.online-h.de/Bilder/archiv/

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
> try:
>
> http://presse.avmz.uni-siegen.de/foo/page1.perl
> (configured with HTML::EmbperlObject, using object methods)
>

Oooops, sorry it's my fault. The example is wrong. The call to new must be
inside a [- -] block, otherwise it's called before the object is correctly
blessed. Sorry, again

Gerald


[!

sub new
{
my $self = shift ;


# here we attach some data to the request object
$self -> {fontsize} = 3 ;
}


# Here we give a default title
sub title { 'Title not given' } ;

!]

[-
$req = shift ;

# here we call the method new
$req -> new ;

-]

-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: HTML::Embperl 1.3b4: Problem with HTML::EmbperlObject [ In reply to ]
>
> Oooops, sorry it's my fault. The example is wrong. The call to new must be
> inside a [- -] block, otherwise it's called before the object is correctly
> blessed. Sorry, again
>
No problem - mostly it's my fault ;-)
Thanx for assistant and your great work!

--
Uni Siegen . Medienzentrum ** Volker.Hess@avmz.uni-siegen.de
phone: +49(0)271/740 2282 ** fax: +49(0)271/740 2526
http://www.avmz.uni-siegen.de/ ** http://www.online-h.de/