Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#100 Mr. Postman run as service not reading configuration.

open
nobody
None
5
2006-05-26
2006-05-26
Broadcast Guy
No

On XP SP2, office 2002. installed Mr. Postman as
service (using the provided batch file), I noted that
although the file worked, and the service was created
and running, the functionality was not occurring.
(outlook was reporting the port was "unable to connect
to pop server"

I am using a different POP SERVER PORT number than the
default (I am using 1111). While trouble shooting this
error, in the wrapper.log file, I found that the log
indicated that the wrapper service was using the
default port.(11110).
INFO | jvm 1 | 2006/05/26 16:33:13 | May 26, 2006
4:33:13 PM org.mrbook.mrpostman.pop.PopServer <init>
INFO | jvm 1 | 2006/05/26 16:33:13 | INFO:
Starting PopServer on port 11110

I found that If AFTER the service is running, I also
run the .bat file, I get the GUI and Mrpostman works
fine (the gui indicates the correct port number (1111).

I did not have this problem until I switched from w98
to XP, with outlook 2002. (There is a bug in outlook
2002 which only allows a 4 digit POP port number which
required me to change from the standard port.)

Discussion

  • Logged In: NO

    I've had the problem as well but found a solution:

    1. Make sure the service is uninstalled.
    2. Edit the wrapper.conf file found in the mrpostman\wrapper
    folder.
    3. At the "# Java Additional Parameters" section add the
    following line:
    wrapper.java.additional.2=-DServerPort=1111
    (Note: parameters are case sensitive)
    4. Save the file.
    5. Install the service with install-ntservice.bat

    The service now listens on the port specified.

     
  • Logged In: YES
    user_id=182461

    The problem may be user accounts; normal GUI behavior will
    load under YOUR account and most services run under the
    SYSTEM account. You can either run it as you, or better yet
    as NETWORK SERVICE, or you can simply be sure to copy the
    config files into the appropriate user account -- SERVICE
    uses the "All Users" folders for its settings, I believe.

    Use the Task Manager to determine which account you're
    under. The Services control panel will allow you to change
    the user as part of the settings.

    Ted