modules.xml loading error with apache httpd service

11 views
Skip to first unread message

whoiste...@hotmail.com

unread,
Aug 28, 2007, 8:06:32 AM8/28/07
to wxJavaScript
I have module wxDB running with wxjs.exe, but whenever I use it in
apache, I get the following error in my apache/logs/error.log and
the .wxjs script certainly won't run.

[Tue Aug 28 19:48:16 2007] [error] Error: Failed to load shared
library 'd:\\apache\\wxjs\\wxjs_win.0.9.71\\modules\
\wxJS_db.dll' (error 126: _________)
[Tue Aug 28 19:48:16 2007] [error] Error: wxJS: Module db(d:\\apache\
\wxjs\\wxjs_win.0.9.71\\modules\\wxJS_db.dll )not loaded

So, I tried to run httpd from command prompt instead of from windows'
service (the usual debug step) and I don't get this error?

I tried adding Loadfile "d:/apache/wxjs..../wxJS_db.dll" and it still
works from command prompt but not from services? According to
window's event viewer, this Loadfile line prevented httpd from
loading....

Is there some timing problem with loading modules.xml? Maybe this is
the incorrect order in the httpd.conf?

#Module wxjs
LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/libapreq2.dll"
LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.71/bin/
mod_apreq2.so"
LoadModule wxjs_module "d:/apache/wxjs/wxjs_win.0.9.71/bin/
mod_wxjs.dll"
AddHandler wxjs .wxjs
wxJS_Modules "d:/apache/wxjs/wxjs_win.0.9.71/bin/modules.xml"
wxJS_RtSize 4M
wxJS_CtxSize 8K

whoiste...@hotmail.com

unread,
Aug 28, 2007, 9:39:45 AM8/28/07
to wxJavaScript
turns out need to Loadfile all the wx...dll to avoid error message
about "failed to load shared lib....

LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/libapreq2.dll"
LoadModule apreq_module "d:/apache/wxjs/wxjs_win.0.9.71/bin/
mod_apreq2.so"

LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/
wxmsw28u_core_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/
wxbase28u_net_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/
wxmsw28u_adv_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/wxbase28u_vc_custom.dll"
LoadFile "d:/apache/wxjs/wxjs_win.0.9.71/bin/
wxbase28u_odbc_vc_custom.dll"


LoadModule wxjs_module "d:/apache/wxjs/wxjs_win.0.9.71/bin/
mod_wxjs.dll"
AddHandler wxjs .wxjs
wxJS_Modules "d:/apache/wxjs/wxjs_win.0.9.71/bin/modules.xml"
wxJS_RtSize 4M
wxJS_CtxSize 8K

And it turns out apache running as a service requires that no error
message be generated, otherwise service doesn't load.

C:\Documents and Settings\user>httpd -k config -n "Apache2"
Reconfiguring the Apache2 service
The Apache2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be
started.
[Tue Aug 28 21:33:45 2007] [notice] wxJS: RuntimeSize= 4194304
[Tue Aug 28 21:33:45 2007] [notice] wxJS: ContextSize= 8192

Need to get rid of above messages? How?

Franky Braem

unread,
Aug 28, 2007, 3:25:11 PM8/28/07
to wxjava...@googlegroups.com
It's indeed required to load the wx-dll's before loading mod_wxjs. But I
don't see the problem you have when an error is shown.
My logfile looks like this:

[Tue Aug 28 21:21:38 2007] [notice] Apache/2.2.3 (Win32) mod_ssl/2.2.3
OpenSSL/0.9.8d mod_autoindex_color DAV/2 PHP/5.1.6
mod_apreq2-20051231/2.6.0 configured -- resuming normal operations
[Tue Aug 28 21:21:38 2007] [notice] Server built: Sep 30 2006 21:24:06
[Tue Aug 28 21:21:38 2007] [notice] Parent: Created child process 2076
[Tue Aug 28 21:21:39 2007] [notice] wxJS: RuntimeSize= 1048576
[Tue Aug 28 21:21:39 2007] [notice] wxJS: ContextSize= 8192
[Tue Aug 28 21:21:42 2007] [notice] Trying to load engine for localhost
[Tue Aug 28 21:21:42 2007] [notice] Engine loaded for host: localhost
[Tue Aug 28 21:21:42 2007] [notice] Engine already loaded for host localhost
[Tue Aug 28 21:21:42 2007] [notice] Child 2076: Child process is running
[Tue Aug 28 21:21:42 2007] [notice] Child 2076: Acquired the start mutex.
[Tue Aug 28 21:21:42 2007] [notice] Child 2076: Starting 250 worker threads.
[Tue Aug 28 21:21:42 2007] [notice] Child 2076: Starting thread to
listen on port 443.
[Tue Aug 28 21:21:42 2007] [notice] Child 2076: Starting thread to
listen on port 80

There's no difference between Apache running in a console or as a service.

Franky.

whoiste...@hotmail.com

unread,
Sep 3, 2007, 1:09:53 PM9/3/07
to wxJavaScript
If you try httpd -k config -n "Apache2" I think you will get the same
message I got which says that these two lines must be resolved:

[Tue Aug 28 21:21:39 2007] [notice] wxJS: RuntimeSize= 1048576
[Tue Aug 28 21:21:39 2007] [notice] wxJS: ContextSize= 8192

Perhaps your version of Apache allow this?

On Aug 29, 3:25 am, Franky Braem <franky.br...@gmail.com> wrote:

whoiste...@hotmail.com

unread,
Oct 4, 2007, 3:57:06 AM10/4/07
to wxJavaScript

franky...@gmail.com

unread,
Oct 4, 2007, 6:46:08 AM10/4/07
to wxJavaScript
Yes. I hope this resolves this problem. I haven't tested it yet.

On 4 okt, 09:57, whoisterence...@hotmail.com wrote:
> Is this revision related to this?
>

> http://wxjs.svn.sourceforge.net/viewvc/wxjs/trunk/wxJS2/src/mod_wxjs/...

> > > Franky.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Reply all
Reply to author
Forward
0 new messages