You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Justin Erenkrantz <je...@ebuilt.com> on 2002/02/27 17:54:49 UTC

Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

On Wed, Feb 27, 2002 at 04:44:03PM +0000, Thom May wrote:
> * Justin Erenkrantz (jerenkrantz@ebuilt.com) wrote :
> > -- 
> > >Number:         9952
> > >Category:       mod_jserv
> > >Synopsis:       Cannot load tomcat connection module
> > >Arrival-Date:   Mon Feb 25 07:10:01 PST 2002
> > >Release:        2.0.32
> 
> In regards to Pier's message about 1.3 jserv bugs being reassigned to
> Jakarta, should this one go to?

Sounds like someone is using an Apache 1.3 module with 2.0.  I'm
closing this bug with that note and mentioning that further
Tomcat bugs should be filed with Jakarta's bug system.

However, that brings up a point:

Can we detect when a 1.3 module will be used with 2.0?  One of my
housemates was trying to install the PHP 1.3 module with 2.0.32 on
Win32 last night.  It just said as this bug does too:

Cannot load E:/apache/Apache2/modules/ApacheModuleJServ.dll into server:
The specified module could not be found.

Can we detect and report an suitable error message in this
case?  -- justin


Re: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
At 12:23 PM 2/27/2002, Jobarr wrote:
> > > In that case we should simply make the error more descriptive:
> > >
> > > "Failed to load module. Perhaps this module was compiled for Apache
>1.3?"
> >
> > Ugh.  Then, +1 for Aaron's comment.
>
>A "Failed to load" message of any kind is MUCH better than "module not
>found", as that leads to thinking that the FILE is not there as opposed to
>just being invalid. I had that problem with a PHP module that was compiled
>against a different build of Apache and wouldn't load. It took my a while to
>realize that the problem was the file, not that Apache couldn't find the
>file.

Dead on :)  It's trivial to test for apr_file_stat() if the apr_dso_load() 
fails, so
we can have two equally interesting and possibly even useful messages.



Re: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by Jobarr <jo...@herzeleid.com>.
> > In that case we should simply make the error more descriptive:
> >
> > "Failed to load module. Perhaps this module was compiled for Apache
1.3?"
>
> Ugh.  Then, +1 for Aaron's comment.


A "Failed to load" message of any kind is MUCH better than "module not
found", as that leads to thinking that the FILE is not there as opposed to
just being invalid. I had that problem with a PHP module that was compiled
against a different build of Apache and wouldn't load. It took my a while to
realize that the problem was the file, not that Apache couldn't find the
file.


Re: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Wed, Feb 27, 2002 at 09:32:34AM -0800, Aaron Bannert wrote:
> On Wed, Feb 27, 2002 at 12:20:51PM -0500, Greg Marr wrote:
> > Not on Windows.  You will not be able to even load the module.  The 
> > LoadLibrary call will fail, since the module is linked against 
> > functions that don't exist.  That is a standard system error message 
> > from using LoadLibrary to load a DLL when a required dependency 
> > doesn't exist.
> 
> In that case we should simply make the error more descriptive:
> 
> "Failed to load module. Perhaps this module was compiled for Apache 1.3?"

Ugh.  Then, +1 for Aaron's comment.  

(Windows sucks.)  -- justin


Re: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by Aaron Bannert <aa...@clove.org>.
On Wed, Feb 27, 2002 at 12:20:51PM -0500, Greg Marr wrote:
> Not on Windows.  You will not be able to even load the module.  The 
> LoadLibrary call will fail, since the module is linked against 
> functions that don't exist.  That is a standard system error message 
> from using LoadLibrary to load a DLL when a required dependency 
> doesn't exist.

In that case we should simply make the error more descriptive:

"Failed to load module. Perhaps this module was compiled for Apache 1.3?"

-aaron

RE: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by Greg Marr <gr...@alum.wpi.edu>.
At 12:03 PM 02/27/2002, Ryan Bloom wrote:
> > On Wed, Feb 27, 2002 at 04:44:03PM +0000, Thom May wrote:
> > However, that brings up a point:
> >
> > Can we detect when a 1.3 module will be used with 2.0?  One of my
> > housemates was trying to install the PHP 1.3 module with 2.0.32 on
> > Win32 last night.  It just said as this bug does too:
> >
> > Cannot load E:/apache/Apache2/modules/ApacheModuleJServ.dll into 
> server:
> > The specified module could not be found.
> >
> > Can we detect and report an suitable error message in this
> > case?  -- justin
>
>Yeah, that's actually trivial.  The module structure has a key that 
>is the Apache version number.  Look at MODULE_MAGIC_COOKIE.  Just do 
>a quick comparison when we load the module, and output a valid error.

Not on Windows.  You will not be able to even load the module.  The 
LoadLibrary call will fail, since the module is linked against 
functions that don't exist.  That is a standard system error message 
from using LoadLibrary to load a DLL when a required dependency 
doesn't exist.

-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


RE: Using Apache 1.3 modules with 2.0 was Re: Please help kill httpd-2.0 bugs...

Posted by Ryan Bloom <rb...@covalent.net>.
> On Wed, Feb 27, 2002 at 04:44:03PM +0000, Thom May wrote:
> > * Justin Erenkrantz (jerenkrantz@ebuilt.com) wrote :
> > > --
> > > >Number:         9952
> > > >Category:       mod_jserv
> > > >Synopsis:       Cannot load tomcat connection module
> > > >Arrival-Date:   Mon Feb 25 07:10:01 PST 2002
> > > >Release:        2.0.32
> >
> > In regards to Pier's message about 1.3 jserv bugs being reassigned
to
> > Jakarta, should this one go to?
> 
> Sounds like someone is using an Apache 1.3 module with 2.0.  I'm
> closing this bug with that note and mentioning that further
> Tomcat bugs should be filed with Jakarta's bug system.
> 
> However, that brings up a point:
> 
> Can we detect when a 1.3 module will be used with 2.0?  One of my
> housemates was trying to install the PHP 1.3 module with 2.0.32 on
> Win32 last night.  It just said as this bug does too:
> 
> Cannot load E:/apache/Apache2/modules/ApacheModuleJServ.dll into
server:
> The specified module could not be found.
> 
> Can we detect and report an suitable error message in this
> case?  -- justin

Yeah, that's actually trivial.  The module structure has a key that is
the Apache version number.  Look at MODULE_MAGIC_COOKIE.  Just do a
quick comparison when we load the module, and output a valid error.

Ryan