[jdev] Re: Run JabberD As WindowXP/2000 Service

Frank Seesink frank at mail.wvnet.edu
Sun Jul 18 00:16:33 CDT 2004


Did you ever find a solution to your Jabber setup?  If not, might I 
suggest yet one more option?  Install Cygwin proper (www.cygwin.com), 
with gcc and usual tools, download Jabberd 1.4.3 from


and build from source.  Jabberd 1.4.2 is quite old.  Though Jabberd2 is 
the future and Jabberd 1.4.3 may not move an itch, it runs great 
(including as an NT service).  You'll even find scripts to install it 
that way.  I've done so for more than a year now.  Only issue you may 
have is in DNS resolution (which would prevent server-to-server 
commnication).  I need to re-check that (stopped working for me in Feb2004).

Just a thought.

P.S.	Though a whole different animal, supposedly Jabberd 2.0s3
	now builds natively on Windows, though haven't done it so
	can't confirm.

Henry Lo wrote:
> Hi all,
> I have a problem to run my JabberD as a window service.
> Currently, I download JabberD-1.4.2.exe from
> http://jabberd.jabberstudio.org/1.4/. I develop a flash IM client to
> communicate with my JabberD server. It run as DOS Prompt and just works
> fine in my development environment. 
> The startup script will look like following:
> C:\JabberD\jabberd.exe -H "C:\JabberD" -s "C:\JabberD\spool"
> Before I move JabberD to production, I have been told I CANNOT run
> JabberD in DOS Prompt. So I try to setup JabberD to run as Window
> Service (XP/2000) (sorry, our company is a M$ house, I must force to use
> window in production).
> However, I don't have luck to setup JabberD into window server. What I
> did:
> PLAN A: Make use of cygrunsrv.exe from cygwin.com to convert
> JabberD-1.4.2.exe to win(XP) service
> 1) download Cygrunsrv version 0.99-1 and 1.0-1 from
> http://cygwin.matrix.com.br/release/cygrunsrv/
> 2) install JabberD service using following command:
> cygrunsrv --install jabberd --path C:\JabberD\jabberd.exe --disp "JABBER
> Server" --args "-H C:\JabberD -s C:\JabberD\spool" --shutdown
> 3) When I ran above command I got error "The Procedure entry point
> __getreent could not be located in dynamic link library cygwin1.dll"
> 4) so I download the latest cygwin1.dll(cygwin1-20040530.dll) from
> http://cygwin.com/snapshots/, and replace the existing one in
> window\system32.
> 5) Redo step 2) JabberD service installed, BUT I cannot start up the
> jabberD. NOTE: I cannot start JabberD in Dos Prompt also.
> 6) If I switch back to OLD cygwin1.dll, I can start JabberD in Dos
> Prompt.
> So the problem here is JabberD-1.4.2.exe need the OLD cygwin1.dll, but
> the
> cygrunsrv.exe(0.99-1 or 1.0-1) need the latest cygwin1-20040530.dll. 
> 7) So I try to use cygwin1-20040530.dll to install JabberD as win
> service, then I downgrade to OLD cygwin1.dll, when I startup the JabberD
> service in Window Service, I got general error from service control
> "Error 1053: The Service did not respond to the start or control request
> in a timely fashion"
> PLAN B: make use INSTSRV.exe from M$ to install JabberD-1.4.2.exe as win
> services
> 1) run INSTSRV JABBERD c:\jabberd\jabberd.exe
> 2) modified regedit path to executable to contains the parameters as
> following: "c:\jabberd\jabberd.exe" -H "C:\JabberD" -s
> "C:\JabberD\spool"
> 3) Startup the JABBERD service, I got general error from service control
> "Error 1053: The Service did not respond to the start or control request
> in a timely fashion"
> I have no luck to run JabberD-1.4.2.exe as window service. 
> Does anyone know how to do it?
> Thanks in advance
> Henry

More information about the JDev mailing list