Matthew Preston wrote:

Using James 2.2.0, WinXP, essentially a default config file (passwords and
domain names changed)

I've looked through the documentation and FAQ and cannot seem to find any
information that works for these two issues:

- Installed using wrapper.exe, but cannot get James to start as a service.
Runs fine from the command line.  Installed using:

(Copied wrapper.conf to bin directory)
Wrapper.exe -i run.bat

Error in the logs is java.lang.NoClassDefFoundError: Main, but not sure what
needs to be changed to find the classes?



- Need to configure the remote mail delievery to masquerade as my isp for
outgoing mail delievery.  Don't see any options in the config file for this.
Is this possible to set up using James 2.2.0, or not support in this
version?


Thanks, Matt




Put this in james\bin
installJames.bat install service
wrapper.conf must be in james\conf\wrapper.conf

Enroi

@echo off
setlocal

rem
rem Java Service Wrapper general NT service install script
rem

if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows.
goto :eof

:nt
rem
rem Find the application home.
rem
rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe

rem
rem Find the wrapper.conf
rem
:conf
set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"

rem
rem Install the Wrapper as an NT service.
rem
:startup
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
pause

@echo off
setlocal

rem
rem Java Service Wrapper general NT service uninstall script
rem

if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows.
goto :eof

:nt
rem
rem Find the application home.
rem
rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe

rem
rem Find the wrapper.conf
rem
:conf
set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%..\conf\wrapper.conf"

rem
rem Uninstall the Wrapper as an NT service.
rem
:startup
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
pause

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to