You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by sbelt <sb...@velos.com> on 2002/02/26 01:28:30 UTC
Re: NT Service
Where can I obtain this solution/package?
Also, does anyone know if the Alexandria solution works on XP?
TIA,
Steve B.
----- Original Message -----
From: "Lionel Lindemann" <li...@proliber.com>
To: <tr...@thinkvirtual.com>; <ja...@jakarta.apache.org>
Sent: Monday, May 28, 2001 10:19 AM
Subject: NT Service
> I have packaged a solution to run james as an NT service. It uses
> JavaService from Alexandria
> (http://www.alexandriasc.com/software/JavaService/index.html). See the
> readme file for installation instructions. You have to edit the .bat file
to
> specify the path where james is installed. Tell me if you have any
problems.
>
> From: travis
> Subject: NT Service
> Date: Mon, 14 May 2001 12:15:47 -0700
>
> --------------------------------------------------------------------------
--
> ----
>
> How can I run James as a service on NT?
>
> Travis Reeder
> Chief Software Architect
> ThinkVirtual
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NT Service
Posted by Shal Jain <sh...@intertechsys.com>.
Please ignore. User error
----- Original Message -----
From: "Shal Jain" <sh...@intertechsys.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, February 27, 2002 9:47 AM
Subject: Re: NT Service
> I'm trying to do the same on Win2K Server. When I use the example batch
> file I get the message about the service
> installing successfully - however when I try to use the service looks like
> James is not running.
> The test I'm using is as follows - startup outlook express and try
> connecting to the local account.
> With James run from command line (using the run.bat), outlook express
> connects
> With James run as service , outlook express fails to connect.
>
>
> ----- Original Message -----
> From: "sbelt" <sb...@velos.com>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Tuesday, February 26, 2002 12:02 PM
> Subject: Re: NT Service
>
>
> > I'll reply to myself ;)
> >
> > Yes, the Alexandria will setup/run JAMES on XP
> >
> > I created a .bat file called InstallJamesNTService.bat containing the
> > following (I used the Alexandria tomcat.bat file as my template, as you
> can
> > see):
> >
> > @echo off
> > echo --------
> > echo Usage: %0 jdk_home james_home (classic/hotspot/server)
> > echo NOTE: You MAY NOT use spaces in the path names.
> > echo JDK 1.3 does not come with hotpot server by default, you
> must
> > echo install this seperately if you wish to use it.
> > echo Example: %0 c:\progra~1\jdk c:\progra~1\james classic
> > echo --------
> >
> > if "%1" == "" goto eof
> > if "%2" == "" goto eof
> > if "%3" == "" goto eof
> >
> > copy JavaService.exe %2\bin\James.exe > nul
> > %2\bin\James.exe -install JamesMailServer
> >
>
%1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib -Djava.class.path=%CLASSPATH%;%
> > 2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar -start
> > org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log -err
> > %2\logs\stderr.log
> >
> > goto eof
> >
> > :eof
> >
> > I created another .bat file called UnistallJamesNTService containing the
> > following 1 line:
> >
> > James -uninstall JamesMailServer
> >
> > By copying the 2 above .bat files and the JavaService.exe (follow the
> > download link at
> > http://www.alexandriasc.com/software/JavaService/index.html) to the
> > <james>\bin folder, I am able
> > to install and uninstall the JamesMailServer NT service!
> >
> > Steve B.
> >
> >
> > ----- Original Message -----
> > From: "sbelt" <sb...@velos.com>
> > To: <ja...@jakarta.apache.org>
> > Sent: Monday, February 25, 2002 4:28 PM
> > Subject: Re: NT Service
> >
> >
> > > Where can I obtain this solution/package?
> > >
> > > Also, does anyone know if the Alexandria solution works on XP?
> > >
> > > TIA,
> > >
> > > Steve B.
> > >
> > > ----- Original Message -----
> > > From: "Lionel Lindemann" <li...@proliber.com>
> > > To: <tr...@thinkvirtual.com>; <ja...@jakarta.apache.org>
> > > Sent: Monday, May 28, 2001 10:19 AM
> > > Subject: NT Service
> > >
> > >
> > > > I have packaged a solution to run james as an NT service. It uses
> > > > JavaService from Alexandria
> > > > (http://www.alexandriasc.com/software/JavaService/index.html). See
the
> > > > readme file for installation instructions. You have to edit the .bat
> > file
> > > to
> > > > specify the path where james is installed. Tell me if you have any
> > > problems.
> > > >
> > > > From: travis
> > > > Subject: NT Service
> > > > Date: Mon, 14 May 2001 12:15:47 -0700
> > > >
> > >
> >
>
> --------------------------------------------------------------------------
> > > --
> > > > ----
> > > >
> > > > How can I run James as a service on NT?
> > > >
> > > > Travis Reeder
> > > > Chief Software Architect
> > > > ThinkVirtual
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: james-user-help@jakarta.apache.org
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NT Service
Posted by Steve <sb...@velos.com>.
What parameters did you use for the install .bat file?
Look in <James-Dir>\logs - were the stdout or stderr log files created?
Look in EventViewer - if the service did not load, there should be an error
there.
Verify the jvm.dll is where it is expected to be (%1\jre\bin\%3\jvm.dll).
Did your email client add any hard returns to my .bat?
%2\bin\James.exe...stderr.log is all one line.
Let me know,
Steve B.
----- Original Message -----
From: "Shal Jain" <sh...@intertechsys.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Wednesday, February 27, 2002 7:47 AM
Subject: Re: NT Service
> I'm trying to do the same on Win2K Server. When I use the example batch
> file I get the message about the service
> installing successfully - however when I try to use the service looks like
> James is not running.
> The test I'm using is as follows - startup outlook express and try
> connecting to the local account.
> With James run from command line (using the run.bat), outlook express
> connects
> With James run as service , outlook express fails to connect.
>
>
> ----- Original Message -----
> From: "sbelt" <sb...@velos.com>
> To: "James Users List" <ja...@jakarta.apache.org>
> Sent: Tuesday, February 26, 2002 12:02 PM
> Subject: Re: NT Service
>
>
> > I'll reply to myself ;)
> >
> > Yes, the Alexandria will setup/run JAMES on XP
> >
> > I created a .bat file called InstallJamesNTService.bat containing the
> > following (I used the Alexandria tomcat.bat file as my template, as you
> can
> > see):
> >
> > @echo off
> > echo --------
> > echo Usage: %0 jdk_home james_home (classic/hotspot/server)
> > echo NOTE: You MAY NOT use spaces in the path names.
> > echo JDK 1.3 does not come with hotpot server by default, you
> must
> > echo install this seperately if you wish to use it.
> > echo Example: %0 c:\progra~1\jdk c:\progra~1\james classic
> > echo --------
> >
> > if "%1" == "" goto eof
> > if "%2" == "" goto eof
> > if "%3" == "" goto eof
> >
> > copy JavaService.exe %2\bin\James.exe > nul
> > %2\bin\James.exe -install JamesMailServer
> >
>
%1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib -Djava.class.path=%CLASSPATH%;%
> > 2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar -start
> > org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log -err
> > %2\logs\stderr.log
> >
> > goto eof
> >
> > :eof
> >
> > I created another .bat file called UnistallJamesNTService containing the
> > following 1 line:
> >
> > James -uninstall JamesMailServer
> >
> > By copying the 2 above .bat files and the JavaService.exe (follow the
> > download link at
> > http://www.alexandriasc.com/software/JavaService/index.html) to the
> > <james>\bin folder, I am able
> > to install and uninstall the JamesMailServer NT service!
> >
> > Steve B.
> >
> >
> > ----- Original Message -----
> > From: "sbelt" <sb...@velos.com>
> > To: <ja...@jakarta.apache.org>
> > Sent: Monday, February 25, 2002 4:28 PM
> > Subject: Re: NT Service
> >
> >
> > > Where can I obtain this solution/package?
> > >
> > > Also, does anyone know if the Alexandria solution works on XP?
> > >
> > > TIA,
> > >
> > > Steve B.
> > >
> > > ----- Original Message -----
> > > From: "Lionel Lindemann" <li...@proliber.com>
> > > To: <tr...@thinkvirtual.com>; <ja...@jakarta.apache.org>
> > > Sent: Monday, May 28, 2001 10:19 AM
> > > Subject: NT Service
> > >
> > >
> > > > I have packaged a solution to run james as an NT service. It uses
> > > > JavaService from Alexandria
> > > > (http://www.alexandriasc.com/software/JavaService/index.html). See
the
> > > > readme file for installation instructions. You have to edit the .bat
> > file
> > > to
> > > > specify the path where james is installed. Tell me if you have any
> > > problems.
> > > >
> > > > From: travis
> > > > Subject: NT Service
> > > > Date: Mon, 14 May 2001 12:15:47 -0700
> > > >
> > >
> >
>
> --------------------------------------------------------------------------
> > > --
> > > > ----
> > > >
> > > > How can I run James as a service on NT?
> > > >
> > > > Travis Reeder
> > > > Chief Software Architect
> > > > ThinkVirtual
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: james-user-help@jakarta.apache.org
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NT Service
Posted by Shal Jain <sh...@intertechsys.com>.
I'm trying to do the same on Win2K Server. When I use the example batch
file I get the message about the service
installing successfully - however when I try to use the service looks like
James is not running.
The test I'm using is as follows - startup outlook express and try
connecting to the local account.
With James run from command line (using the run.bat), outlook express
connects
With James run as service , outlook express fails to connect.
----- Original Message -----
From: "sbelt" <sb...@velos.com>
To: "James Users List" <ja...@jakarta.apache.org>
Sent: Tuesday, February 26, 2002 12:02 PM
Subject: Re: NT Service
> I'll reply to myself ;)
>
> Yes, the Alexandria will setup/run JAMES on XP
>
> I created a .bat file called InstallJamesNTService.bat containing the
> following (I used the Alexandria tomcat.bat file as my template, as you
can
> see):
>
> @echo off
> echo --------
> echo Usage: %0 jdk_home james_home (classic/hotspot/server)
> echo NOTE: You MAY NOT use spaces in the path names.
> echo JDK 1.3 does not come with hotpot server by default, you
must
> echo install this seperately if you wish to use it.
> echo Example: %0 c:\progra~1\jdk c:\progra~1\james classic
> echo --------
>
> if "%1" == "" goto eof
> if "%2" == "" goto eof
> if "%3" == "" goto eof
>
> copy JavaService.exe %2\bin\James.exe > nul
> %2\bin\James.exe -install JamesMailServer
>
%1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib -Djava.class.path=%CLASSPATH%;%
> 2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar -start
> org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log -err
> %2\logs\stderr.log
>
> goto eof
>
> :eof
>
> I created another .bat file called UnistallJamesNTService containing the
> following 1 line:
>
> James -uninstall JamesMailServer
>
> By copying the 2 above .bat files and the JavaService.exe (follow the
> download link at
> http://www.alexandriasc.com/software/JavaService/index.html) to the
> <james>\bin folder, I am able
> to install and uninstall the JamesMailServer NT service!
>
> Steve B.
>
>
> ----- Original Message -----
> From: "sbelt" <sb...@velos.com>
> To: <ja...@jakarta.apache.org>
> Sent: Monday, February 25, 2002 4:28 PM
> Subject: Re: NT Service
>
>
> > Where can I obtain this solution/package?
> >
> > Also, does anyone know if the Alexandria solution works on XP?
> >
> > TIA,
> >
> > Steve B.
> >
> > ----- Original Message -----
> > From: "Lionel Lindemann" <li...@proliber.com>
> > To: <tr...@thinkvirtual.com>; <ja...@jakarta.apache.org>
> > Sent: Monday, May 28, 2001 10:19 AM
> > Subject: NT Service
> >
> >
> > > I have packaged a solution to run james as an NT service. It uses
> > > JavaService from Alexandria
> > > (http://www.alexandriasc.com/software/JavaService/index.html). See the
> > > readme file for installation instructions. You have to edit the .bat
> file
> > to
> > > specify the path where james is installed. Tell me if you have any
> > problems.
> > >
> > > From: travis
> > > Subject: NT Service
> > > Date: Mon, 14 May 2001 12:15:47 -0700
> > >
> >
>
> --------------------------------------------------------------------------
> > --
> > > ----
> > >
> > > How can I run James as a service on NT?
> > >
> > > Travis Reeder
> > > Chief Software Architect
> > > ThinkVirtual
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: james-user-help@jakarta.apache.org
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: NT Service
Posted by sbelt <sb...@velos.com>.
I'll reply to myself ;)
Yes, the Alexandria will setup/run JAMES on XP
I created a .bat file called InstallJamesNTService.bat containing the
following (I used the Alexandria tomcat.bat file as my template, as you can
see):
@echo off
echo --------
echo Usage: %0 jdk_home james_home (classic/hotspot/server)
echo NOTE: You MAY NOT use spaces in the path names.
echo JDK 1.3 does not come with hotpot server by default, you must
echo install this seperately if you wish to use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\james classic
echo --------
if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof
copy JavaService.exe %2\bin\James.exe > nul
%2\bin\James.exe -install JamesMailServer
%1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib -Djava.class.path=%CLASSPATH%;%
2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar -start
org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log -err
%2\logs\stderr.log
goto eof
:eof
I created another .bat file called UnistallJamesNTService containing the
following 1 line:
James -uninstall JamesMailServer
By copying the 2 above .bat files and the JavaService.exe (follow the
download link at
http://www.alexandriasc.com/software/JavaService/index.html) to the
<james>\bin folder, I am able
to install and uninstall the JamesMailServer NT service!
Steve B.
----- Original Message -----
From: "sbelt" <sb...@velos.com>
To: <ja...@jakarta.apache.org>
Sent: Monday, February 25, 2002 4:28 PM
Subject: Re: NT Service
> Where can I obtain this solution/package?
>
> Also, does anyone know if the Alexandria solution works on XP?
>
> TIA,
>
> Steve B.
>
> ----- Original Message -----
> From: "Lionel Lindemann" <li...@proliber.com>
> To: <tr...@thinkvirtual.com>; <ja...@jakarta.apache.org>
> Sent: Monday, May 28, 2001 10:19 AM
> Subject: NT Service
>
>
> > I have packaged a solution to run james as an NT service. It uses
> > JavaService from Alexandria
> > (http://www.alexandriasc.com/software/JavaService/index.html). See the
> > readme file for installation instructions. You have to edit the .bat
file
> to
> > specify the path where james is installed. Tell me if you have any
> problems.
> >
> > From: travis
> > Subject: NT Service
> > Date: Mon, 14 May 2001 12:15:47 -0700
> >
>
> --------------------------------------------------------------------------
> --
> > ----
> >
> > How can I run James as a service on NT?
> >
> > Travis Reeder
> > Chief Software Architect
> > ThinkVirtual
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: james-user-help@jakarta.apache.org
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>