You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(13) |
Nov
(16) |
Dec
(29) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(38) |
Feb
(51) |
Mar
(51) |
Apr
(115) |
May
(82) |
Jun
(30) |
Jul
(50) |
Aug
(68) |
Sep
(57) |
Oct
(160) |
Nov
(80) |
Dec
(78) |
| 2004 |
Jan
(71) |
Feb
(75) |
Mar
(108) |
Apr
(87) |
May
(79) |
Jun
(70) |
Jul
(69) |
Aug
(39) |
Sep
(52) |
Oct
(47) |
Nov
(50) |
Dec
(32) |
| 2005 |
Jan
(22) |
Feb
(122) |
Mar
(46) |
Apr
(76) |
May
(31) |
Jun
(51) |
Jul
(61) |
Aug
(70) |
Sep
(37) |
Oct
(46) |
Nov
(57) |
Dec
(83) |
| 2006 |
Jan
(55) |
Feb
(81) |
Mar
(51) |
Apr
(67) |
May
(77) |
Jun
(43) |
Jul
(106) |
Aug
(64) |
Sep
(47) |
Oct
(64) |
Nov
(60) |
Dec
(12) |
| 2007 |
Jan
(50) |
Feb
(93) |
Mar
(49) |
Apr
(56) |
May
(40) |
Jun
(63) |
Jul
(40) |
Aug
(47) |
Sep
(54) |
Oct
(37) |
Nov
(54) |
Dec
(37) |
| 2008 |
Jan
(35) |
Feb
(39) |
Mar
(26) |
Apr
(14) |
May
(23) |
Jun
(51) |
Jul
(43) |
Aug
(26) |
Sep
(29) |
Oct
(31) |
Nov
(24) |
Dec
(16) |
| 2009 |
Jan
(21) |
Feb
(30) |
Mar
(74) |
Apr
(26) |
May
(26) |
Jun
(43) |
Jul
(23) |
Aug
(23) |
Sep
(15) |
Oct
(27) |
Nov
(37) |
Dec
(10) |
| 2010 |
Jan
(16) |
Feb
(28) |
Mar
(16) |
Apr
(45) |
May
(8) |
Jun
(68) |
Jul
(45) |
Aug
(44) |
Sep
(51) |
Oct
(7) |
Nov
(20) |
Dec
(21) |
| 2011 |
Jan
(14) |
Feb
(17) |
Mar
(7) |
Apr
(7) |
May
(48) |
Jun
(23) |
Jul
(5) |
Aug
(33) |
Sep
(22) |
Oct
(14) |
Nov
(14) |
Dec
(5) |
| 2012 |
Jan
|
Feb
(10) |
Mar
(12) |
Apr
(51) |
May
(10) |
Jun
(8) |
Jul
(14) |
Aug
(22) |
Sep
(9) |
Oct
(24) |
Nov
(14) |
Dec
(13) |
| 2013 |
Jan
(12) |
Feb
(4) |
Mar
(14) |
Apr
(19) |
May
(2) |
Jun
(5) |
Jul
(13) |
Aug
(10) |
Sep
(4) |
Oct
(11) |
Nov
(13) |
Dec
(2) |
| 2014 |
Jan
(3) |
Feb
(14) |
Mar
(5) |
Apr
(10) |
May
(10) |
Jun
(11) |
Jul
(10) |
Aug
(3) |
Sep
(13) |
Oct
(22) |
Nov
(14) |
Dec
(32) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(17) |
Apr
(1) |
May
(24) |
Jun
|
Jul
(4) |
Aug
|
Sep
(9) |
Oct
(9) |
Nov
(5) |
Dec
(2) |
| 2016 |
Jan
(8) |
Feb
(6) |
Mar
(6) |
Apr
(9) |
May
(3) |
Jun
(2) |
Jul
(7) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
| 2017 |
Jan
(9) |
Feb
(8) |
Mar
(6) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
(10) |
Sep
(8) |
Oct
|
Nov
(6) |
Dec
|
| 2018 |
Jan
|
Feb
(5) |
Mar
(7) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
(2) |
Sep
(9) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2019 |
Jan
(9) |
Feb
|
Mar
|
Apr
(10) |
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2021 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(3) |
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2023 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Adam R. <ad...@ex...> - 2015-10-05 11:45:32
|
There were previously two memory leaks reported here - http://sourceforge.net/p/wrapper/mailman/message/33048371/ One is related to the interaction of the wrapper and glibc but can be resolved by applying the patch given in the thread to the wrapper. The other was a bug in the wrapper for which a patch was also provided, and I think may have been fixed in 3.5.26? Can anyone please confirm whether one or both of those issues are fixed in 3.5.27? They do not appear to be mentioned in the short changelog that I could find. -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |
|
From: Adam R. <ad...@ex...> - 2015-10-05 11:44:01
|
In version 3.5.26 of the Wrapper, I have configured the lines:
RUN_AS_USER=my-user
USE_SYSTEMD=true
in the shell file, however when installing the wrapper the generated
systemd config file is missing the user property.
The resultant systemd config /etc/systemd/system/my-service.service:
[Unit]
Description=My Service
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/local/my-app/tools/wrapper/bin/my-app.sh start sysd
ExecStop=/usr/local/my-app/tools/wrapper/bin/my-app.sh stop sysd
[Install]
WantedBy=multi-user.target
However systemd won't correctly start and stop the service because it
attempts to use the wrong user. To fix this I have to manually modify
/etc/systemd/system/my-service.service after installation and add the
following to the `[Service]` section:
User=my-user
Thus looks like a bug in the installation of the service wrapper to
me, can anyone confirm?
I have tried this on both Ubuntu Vivid and Ubuntu Wily.
--
Adam Retter
eXist Developer
{ United Kingdom }
ad...@ex...
irc://irc.freenode.net/existdb
|
|
From: Adam R. <ad...@ex...> - 2015-09-28 11:27:51
|
You could setup sudoers to allow you to exec just that as root or even use setuid on your app that makes the changes On 28 Sep 2015 04:20, "Casey Jordan" <cas...@jo...> wrote: > Thanks Leif, > > So I the main thing I need to ensure is that this gets run as root, since > the command I need to run will only be effective as root. It seems to me > that the first method won't allow me to do that, since I will already be > inside the JVM executing that code right? > > Will the event script method allow me to do this? > > Thanks! > > > > On Sun, Sep 27, 2015 at 9:11 PM Leif Mortenson < > lei...@ta...> wrote: > >> Casey, >> This would need to be done after the JVM is launched. >> You can get the PID from within the JVM with WrapperManager.getJavaPID() >> or by using the wrapper.java.pidfile property. >> >> But the easiest way to do this is to use the "jvm_start" event in the >> Professional Edition to launch the required external command at the >> appropriate time. >> This can be setup as follows: >> --- >> wrapper.event.jvm_start.command.argv.1=/usr/bin/myscript >> wrapper.event.jvm_start.command.argv.2=%WRAPPER_EVENT_JVM_PID% >> --- >> The following will help with debugging and understanding the timing of >> various events: >> --- >> wrapper.event.default.loglevel=INFO >> wrapper.event.jvm_start.command.loglevel=INFO >> --- >> Your "myscript" script would then handle the pid argument and run your >> command. >> >> See the following for details: >> http://wrapper.tanukisoftware.com/doc/english/props-event.html#command >> http://wrapper.tanukisoftware.com/doc/english/props-envvars.html >> >> Cheers, >> Leif >> >> >> >> >> >> On Mon, Sep 28, 2015 at 3:10 AM, Casey Jordan <cas...@jo...> >> wrote: >> >>> Hi Dannes, >>> >>> Thanks for the input but I have already explored options not using >>> overcommit, or turning off the OOM killer entirely and from what I can tell >>> the best thing for me to do is tell the OOM killer not to kill eXist. >>> >>> So before I evaluate other options I really need to know how to add this >>> functionality to the eXist startup. >>> >>> Thanks >>> >>> >>> On Sun, Sep 27, 2015 at 1:58 PM Dannes Wessels <da...@ex...> >>> wrote: >>> >>>> Hi, >>>> >>>> over committing memory sounds like a bad thing to do? You should make >>>> sure anyway that the JVM will not be swapped out due to memory restrictions. >>>> >>>> regards >>>> >>>> Dannes >>>> >>>> >>>> On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo... >>>> > wrote: >>>> >>>>> Hi all, >>>>> >>>>> We are having an issue where the out of memory killer is killing out >>>>> process due to the out of the box overcommit memory settings on CentOS. >>>>> >>>>> After researching this quite a bit, I think the best thing to do is to >>>>> tell the OOM killer to never kill the process, as described here: >>>>> http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html >>>>> >>>>> To do this, we need to execute the following command after startup: >>>>> >>>>> echo -17 > /proc/{pid}/oom_adj >>>>> >>>>> >>>>> I was thinking this could be done as part of the *.sh script that gets >>>>> executed via the java service wrapper, but I am not sure exactly how to do >>>>> this (mainly where in this script I can put the valid logic). I am hoping >>>>> someone might have done this before that could help. >>>>> >>>>> Thanks! >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> >>>>> _______________________________________________ >>>>> Wrapper-user mailing list >>>>> Wra...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>>> >>>>> >>>> >>>> >>>> -- >>>> eXist-db Native XML Database - http://exist-db.org >>>> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Wrapper-user mailing list >>>> Wra...@li... >>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >>> >> >> >> -- >> Leif Mortenson >> President & CEO >> Tanuki Software, Ltd. >> 6-18-10-4F Nishi-Kasai, Edogawa-ku >> Tokyo 134-0088 Japan >> Tel: +81-3-3878-3211 >> Fax: +81-3-3878-0313 >> モートンソン リーフ >> 代表取締役 >> タヌキソフトウェア有限会社 >> 〒134-0088 東京都江戸川区西葛西6-18-10 SKセントラルビル4階 >> Tel: 03-3878-3211 >> Fax: 03-3878-0313 >> http://www.tanukisoftware.com >> lei...@ta... >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Leif M. <lei...@ta...> - 2015-09-28 11:25:58
|
Casey, No. The Wrapper will also run the event script as the user the Wrapper is running as. If it needs to be run by an elevated process, then one idea would be to have another cron job running as root look for the pid file written by the wrapper.java.pidfile property and then take action based on that. You would need to write out another state file or something so you know when you already did it. Cheers, Leif On Mon, Sep 28, 2015 at 12:20 PM, Casey Jordan <cas...@jo...> wrote: > Thanks Leif, > > So I the main thing I need to ensure is that this gets run as root, since > the command I need to run will only be effective as root. It seems to me > that the first method won't allow me to do that, since I will already be > inside the JVM executing that code right? > > Will the event script method allow me to do this? > > Thanks! > > > > On Sun, Sep 27, 2015 at 9:11 PM Leif Mortenson < > lei...@ta...> wrote: > >> Casey, >> This would need to be done after the JVM is launched. >> You can get the PID from within the JVM with WrapperManager.getJavaPID() >> or by using the wrapper.java.pidfile property. >> >> But the easiest way to do this is to use the "jvm_start" event in the >> Professional Edition to launch the required external command at the >> appropriate time. >> This can be setup as follows: >> --- >> wrapper.event.jvm_start.command.argv.1=/usr/bin/myscript >> wrapper.event.jvm_start.command.argv.2=%WRAPPER_EVENT_JVM_PID% >> --- >> The following will help with debugging and understanding the timing of >> various events: >> --- >> wrapper.event.default.loglevel=INFO >> wrapper.event.jvm_start.command.loglevel=INFO >> --- >> Your "myscript" script would then handle the pid argument and run your >> command. >> >> See the following for details: >> http://wrapper.tanukisoftware.com/doc/english/props-event.html#command >> http://wrapper.tanukisoftware.com/doc/english/props-envvars.html >> >> Cheers, >> Leif >> >> >> >> >> >> On Mon, Sep 28, 2015 at 3:10 AM, Casey Jordan <cas...@jo...> >> wrote: >> >>> Hi Dannes, >>> >>> Thanks for the input but I have already explored options not using >>> overcommit, or turning off the OOM killer entirely and from what I can tell >>> the best thing for me to do is tell the OOM killer not to kill eXist. >>> >>> So before I evaluate other options I really need to know how to add this >>> functionality to the eXist startup. >>> >>> Thanks >>> >>> >>> On Sun, Sep 27, 2015 at 1:58 PM Dannes Wessels <da...@ex...> >>> wrote: >>> >>>> Hi, >>>> >>>> over committing memory sounds like a bad thing to do? You should make >>>> sure anyway that the JVM will not be swapped out due to memory restrictions. >>>> >>>> regards >>>> >>>> Dannes >>>> >>>> >>>> On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo... >>>> > wrote: >>>> >>>>> Hi all, >>>>> >>>>> We are having an issue where the out of memory killer is killing out >>>>> process due to the out of the box overcommit memory settings on CentOS. >>>>> >>>>> After researching this quite a bit, I think the best thing to do is to >>>>> tell the OOM killer to never kill the process, as described here: >>>>> http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html >>>>> >>>>> To do this, we need to execute the following command after startup: >>>>> >>>>> echo -17 > /proc/{pid}/oom_adj >>>>> >>>>> >>>>> I was thinking this could be done as part of the *.sh script that gets >>>>> executed via the java service wrapper, but I am not sure exactly how to do >>>>> this (mainly where in this script I can put the valid logic). I am hoping >>>>> someone might have done this before that could help. >>>>> >>>>> Thanks! >>>>> >>>> |
|
From: Casey J. <cas...@jo...> - 2015-09-28 03:20:20
|
Thanks Leif, So I the main thing I need to ensure is that this gets run as root, since the command I need to run will only be effective as root. It seems to me that the first method won't allow me to do that, since I will already be inside the JVM executing that code right? Will the event script method allow me to do this? Thanks! On Sun, Sep 27, 2015 at 9:11 PM Leif Mortenson < lei...@ta...> wrote: > Casey, > This would need to be done after the JVM is launched. > You can get the PID from within the JVM with WrapperManager.getJavaPID() > or by using the wrapper.java.pidfile property. > > But the easiest way to do this is to use the "jvm_start" event in the > Professional Edition to launch the required external command at the > appropriate time. > This can be setup as follows: > --- > wrapper.event.jvm_start.command.argv.1=/usr/bin/myscript > wrapper.event.jvm_start.command.argv.2=%WRAPPER_EVENT_JVM_PID% > --- > The following will help with debugging and understanding the timing of > various events: > --- > wrapper.event.default.loglevel=INFO > wrapper.event.jvm_start.command.loglevel=INFO > --- > Your "myscript" script would then handle the pid argument and run your > command. > > See the following for details: > http://wrapper.tanukisoftware.com/doc/english/props-event.html#command > http://wrapper.tanukisoftware.com/doc/english/props-envvars.html > > Cheers, > Leif > > > > > > On Mon, Sep 28, 2015 at 3:10 AM, Casey Jordan <cas...@jo...> > wrote: > >> Hi Dannes, >> >> Thanks for the input but I have already explored options not using >> overcommit, or turning off the OOM killer entirely and from what I can tell >> the best thing for me to do is tell the OOM killer not to kill eXist. >> >> So before I evaluate other options I really need to know how to add this >> functionality to the eXist startup. >> >> Thanks >> >> >> On Sun, Sep 27, 2015 at 1:58 PM Dannes Wessels <da...@ex...> >> wrote: >> >>> Hi, >>> >>> over committing memory sounds like a bad thing to do? You should make >>> sure anyway that the JVM will not be swapped out due to memory restrictions. >>> >>> regards >>> >>> Dannes >>> >>> >>> On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo...> >>> wrote: >>> >>>> Hi all, >>>> >>>> We are having an issue where the out of memory killer is killing out >>>> process due to the out of the box overcommit memory settings on CentOS. >>>> >>>> After researching this quite a bit, I think the best thing to do is to >>>> tell the OOM killer to never kill the process, as described here: >>>> http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html >>>> >>>> To do this, we need to execute the following command after startup: >>>> >>>> echo -17 > /proc/{pid}/oom_adj >>>> >>>> >>>> I was thinking this could be done as part of the *.sh script that gets >>>> executed via the java service wrapper, but I am not sure exactly how to do >>>> this (mainly where in this script I can put the valid logic). I am hoping >>>> someone might have done this before that could help. >>>> >>>> Thanks! >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Wrapper-user mailing list >>>> Wra...@li... >>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>>> >>>> >>> >>> >>> -- >>> eXist-db Native XML Database - http://exist-db.org >>> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > > -- > Leif Mortenson > President & CEO > Tanuki Software, Ltd. > 6-18-10-4F Nishi-Kasai, Edogawa-ku > Tokyo 134-0088 Japan > Tel: +81-3-3878-3211 > Fax: +81-3-3878-0313 > モートンソン リーフ > 代表取締役 > タヌキソフトウェア有限会社 > 〒134-0088 東京都江戸川区西葛西6-18-10 SKセントラルビル4階 > Tel: 03-3878-3211 > Fax: 03-3878-0313 > http://www.tanukisoftware.com > lei...@ta... > > ------------------------------------------------------------------------------ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <lei...@ta...> - 2015-09-28 01:10:55
|
Casey, This would need to be done after the JVM is launched. You can get the PID from within the JVM with WrapperManager.getJavaPID() or by using the wrapper.java.pidfile property. But the easiest way to do this is to use the "jvm_start" event in the Professional Edition to launch the required external command at the appropriate time. This can be setup as follows: --- wrapper.event.jvm_start.command.argv.1=/usr/bin/myscript wrapper.event.jvm_start.command.argv.2=%WRAPPER_EVENT_JVM_PID% --- The following will help with debugging and understanding the timing of various events: --- wrapper.event.default.loglevel=INFO wrapper.event.jvm_start.command.loglevel=INFO --- Your "myscript" script would then handle the pid argument and run your command. See the following for details: http://wrapper.tanukisoftware.com/doc/english/props-event.html#command http://wrapper.tanukisoftware.com/doc/english/props-envvars.html Cheers, Leif On Mon, Sep 28, 2015 at 3:10 AM, Casey Jordan <cas...@jo...> wrote: > Hi Dannes, > > Thanks for the input but I have already explored options not using > overcommit, or turning off the OOM killer entirely and from what I can tell > the best thing for me to do is tell the OOM killer not to kill eXist. > > So before I evaluate other options I really need to know how to add this > functionality to the eXist startup. > > Thanks > > > On Sun, Sep 27, 2015 at 1:58 PM Dannes Wessels <da...@ex...> > wrote: > >> Hi, >> >> over committing memory sounds like a bad thing to do? You should make >> sure anyway that the JVM will not be swapped out due to memory restrictions. >> >> regards >> >> Dannes >> >> >> On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo...> >> wrote: >> >>> Hi all, >>> >>> We are having an issue where the out of memory killer is killing out >>> process due to the out of the box overcommit memory settings on CentOS. >>> >>> After researching this quite a bit, I think the best thing to do is to >>> tell the OOM killer to never kill the process, as described here: >>> http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html >>> >>> To do this, we need to execute the following command after startup: >>> >>> echo -17 > /proc/{pid}/oom_adj >>> >>> >>> I was thinking this could be done as part of the *.sh script that gets >>> executed via the java service wrapper, but I am not sure exactly how to do >>> this (mainly where in this script I can put the valid logic). I am hoping >>> someone might have done this before that could help. >>> >>> Thanks! >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >>> >> >> >> -- >> eXist-db Native XML Database - http://exist-db.org >> Join us on linked-in: http://www.linkedin.com/groups?gid=35624 >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- Leif Mortenson President & CEO Tanuki Software, Ltd. 6-18-10-4F Nishi-Kasai, Edogawa-ku Tokyo 134-0088 Japan Tel: +81-3-3878-3211 Fax: +81-3-3878-0313 モートンソン リーフ 代表取締役 タヌキソフトウェア有限会社 〒134-0088 東京都江戸川区西葛西6-18-10 SKセントラルビル4階 Tel: 03-3878-3211 Fax: 03-3878-0313 http://www.tanukisoftware.com lei...@ta... |
|
From: Casey J. <cas...@jo...> - 2015-09-27 18:10:42
|
Hi Dannes, Thanks for the input but I have already explored options not using overcommit, or turning off the OOM killer entirely and from what I can tell the best thing for me to do is tell the OOM killer not to kill eXist. So before I evaluate other options I really need to know how to add this functionality to the eXist startup. Thanks On Sun, Sep 27, 2015 at 1:58 PM Dannes Wessels <da...@ex...> wrote: > Hi, > > over committing memory sounds like a bad thing to do? You should make sure > anyway that the JVM will not be swapped out due to memory restrictions. > > regards > > Dannes > > > On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo...> > wrote: > >> Hi all, >> >> We are having an issue where the out of memory killer is killing out >> process due to the out of the box overcommit memory settings on CentOS. >> >> After researching this quite a bit, I think the best thing to do is to >> tell the OOM killer to never kill the process, as described here: >> http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html >> >> To do this, we need to execute the following command after startup: >> >> echo -17 > /proc/{pid}/oom_adj >> >> >> I was thinking this could be done as part of the *.sh script that gets >> executed via the java service wrapper, but I am not sure exactly how to do >> this (mainly where in this script I can put the valid logic). I am hoping >> someone might have done this before that could help. >> >> Thanks! >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > > ------------------------------------------------------------------------------ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Dannes W. <da...@ex...> - 2015-09-27 17:57:32
|
Hi, over committing memory sounds like a bad thing to do? You should make sure anyway that the JVM will not be swapped out due to memory restrictions. regards Dannes On Sun, Sep 27, 2015 at 12:32 AM, Casey Jordan <cas...@jo...> wrote: > Hi all, > > We are having an issue where the out of memory killer is killing out > process due to the out of the box overcommit memory settings on CentOS. > > After researching this quite a bit, I think the best thing to do is to > tell the OOM killer to never kill the process, as described here: > http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html > > To do this, we need to execute the following command after startup: > > echo -17 > /proc/{pid}/oom_adj > > > I was thinking this could be done as part of the *.sh script that gets > executed via the java service wrapper, but I am not sure exactly how to do > this (mainly where in this script I can put the valid logic). I am hoping > someone might have done this before that could help. > > Thanks! > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
|
From: Casey J. <cas...@jo...> - 2015-09-26 22:54:34
|
Hi all, We are having an issue where the out of memory killer is killing out process due to the out of the box overcommit memory settings on CentOS. After researching this quite a bit, I think the best thing to do is to tell the OOM killer to never kill the process, as described here: http://www.oracle.com/technetwork/articles/servers-storage-dev/oom-killer-1911807.html To do this, we need to execute the following command after startup: echo -17 > /proc/{pid}/oom_adj I was thinking this could be done as part of the *.sh script that gets executed via the java service wrapper, but I am not sure exactly how to do this (mainly where in this script I can put the valid logic). I am hoping someone might have done this before that could help. Thanks! |
|
From: Jason C. <ch...@na...> - 2015-09-11 06:36:12
|
Hi again, just wanted to let you know that I found the solution to my problem. As it turns out I needed to add tomcat-juli.jar to the class path in addition to the bootstrap.jar: wrapper.java.classpath.3=C:\Development\Tomcat\bin\tomcat-juli.jar Sure enough, as soon as I did, everything was fine. Sorry for wasting your time if this was already in your integration guide somewhere that I had missed. Regards, Jason. Jason Child Senior Development Officer - Nintendo Australia 804 Stud Rd, Scoresby VIC 3179 Phone: (03) 9730 9920 Mobile: 0412 229 258 >>> Jason Child 11/09/2015 1:46 PM >>> Hi There, I am trying to use Java Service Wrapper for windows version: "Java Service Wrapper Community Edition 32-bit 3.5.27" OS: Windows 7 Professional Service Pack 1 (64-bit) I have a 32 bit version of jdk 1.7 installed (C:\Development\Java\jdk1.7.0_80). And am running Tomcat 7 (C:\Development\Tomcat). I have modified all the scripts, copied the relevant jar's and .dll and updated the wrapper.conf file as necessary for my environment as per your integration guide, however I am encountering the following line the resulting wrapper.log file after successfully installing the service and then starting it for the first time: INFO | jvm 1 | 2015/09/11 12:09:25 | WrapperStartStopApp Error: Class org.apache.catalina.startup.Bootstrap found but could not be initialized: java.lang.NoClassDefFoundError: Could not initialize class org.apache.catalina.startup.Bootstrap I have attached a copy of my wrapper.conf file as well as the resulting wrapper.log file (with debug enabled) for better inspection. The bootstrap.jar file does reside in C:\Development\Tomcat\bin as referenced by the wrapper.conf line "wrapper.java.classpath.2=C:\Development\Tomcat\bin\bootstrap.jar". As you can see the class is found... but can't be initialized due to no class def found error which I find a bit odd. How can the class be found, but have a no class def found error? I have read the integration guide, FAQ and troubleshooting guides but can not find any further information relating to my issue. I appreciate any support that you can provide. Kind Regards, Jason Child. Jason Child Senior Development Officer - Nintendo Australia 804 Stud Rd, Scoresby VIC 3179 Phone: (03) 9730 9920 Mobile: 0412 229 258 |
|
From: Jason C. <ch...@na...> - 2015-09-11 03:46:48
|
Hi There, I am trying to use Java Service Wrapper for windows version: "Java Service Wrapper Community Edition 32-bit 3.5.27" OS: Windows 7 Professional Service Pack 1 (64-bit) I have a 32 bit version of jdk 1.7 installed (C:\Development\Java\jdk1.7.0_80). And am running Tomcat 7 (C:\Development\Tomcat). I have modified all the scripts, copied the relevant jar's and .dll and updated the wrapper.conf file as necessary for my environment as per your integration guide, however I am encountering the following line the resulting wrapper.log file after successfully installing the service and then starting it for the first time: INFO | jvm 1 | 2015/09/11 12:09:25 | WrapperStartStopApp Error: Class org.apache.catalina.startup.Bootstrap found but could not be initialized: java.lang.NoClassDefFoundError: Could not initialize class org.apache.catalina.startup.Bootstrap I have attached a copy of my wrapper.conf file as well as the resulting wrapper.log file (with debug enabled) for better inspection. The bootstrap.jar file does reside in C:\Development\Tomcat\bin as referenced by the wrapper.conf line "wrapper.java.classpath.2=C:\Development\Tomcat\bin\bootstrap.jar". As you can see the class is found... but can't be initialized due to no class def found error which I find a bit odd. How can the class be found, but have a no class def found error? I have read the integration guide, FAQ and troubleshooting guides but can not find any further information relating to my issue. I appreciate any support that you can provide. Kind Regards, Jason Child. Jason Child Senior Development Officer - Nintendo Australia 804 Stud Rd, Scoresby VIC 3179 Phone: (03) 9730 9920 Mobile: 0412 229 258 |
|
From: Lin Z. <li...@ex...> - 2015-07-14 20:37:38
|
Sounds to me this needs operating system support and requires something like cgroups ( https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/ch01.html ) On Tue, Jul 14, 2015 at 11:30 AM, Damon Miller <dtm...@ho...> wrote: > Hi all. I use the Enterprise version of the Java service wrapper and > had a question. Does anyone know if it is possible to throttle CPU > utilization through the wrapper? I don’t know how to easily accomplish > that through the JVM so I thought perhaps the service wrapper might be a > convenient way to do this. If anyone has ideas on this, I’d love to hear > it. > > Thanks, > > Damon > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Damon M. <dtm...@ho...> - 2015-07-14 18:33:16
|
Hi all. I use the Enterprise version of the Java service wrapper and had a question. Does anyone know if it is possible to throttle CPU utilization through the wrapper? I don’t know how to easily accomplish that through the JVM so I thought perhaps the service wrapper might be a convenient way to do this. If anyone has ideas on this, I’d love to hear it. Thanks, Damon |
|
From: Alan V. <ala...@cu...> - 2015-07-07 20:17:25
|
Hi All, I'm looking to filter and parse the logging inside of the wrapper and send filtered line(s) to another log file. I've looked over the filter actions http://wrapper.tanukisoftware.com/doc/english/prop-filter-x-n.html#action but I'm not quite sure how to go about doing this. Thanks, Alan ________________________________________ Alan R. Vidmar Assistant Director of Electronic Document Management and Middleware Applications University Information Systems University of Colorado 1800 Grant Street, Suite 326 Denver, CO 80203 t. 303-860-4335 f. 303-860-5610 [cu-logo_fl] [cid:AD933D38-847C-444B-B213-65C5A695494F] Learn how Elevate is changing the way you work: www.cu.edu/Elevate |
|
From: Isenberg, H. <ise...@e-...> - 2015-07-03 08:23:46
|
If you are using the Wrapper on Windows to launch your application as Windows Service, then current Windows versions since Vista are protecting the Service process from access by others via UAC. Some description and workarounds, though the workaround don't work any more on Windows 2012 I guess: http://stackoverflow.com/questions/1197912/cant-debug-java-windows-services-with-jhat-jps-jstack If your Windows isn't using very restricted UAC, then you might have luck with changing the service user name from SYSTEM to a new user and launch jstat after logged in as that user. -- Holger Isenberg e-Spirit AG T: +49 231 477 77 331 F: +49 231 477 77 499 M: +49 178 280 81 64 ise...@e-... http://e-spirit.com Sitz des Unternehmens: Barcelonaweg 14 | 44269 Dortmund Vorstand: Jörn Bodemann (Vors.) | Johannes Häusele | Christoph Junge Vorsitzender des Aufsichtsrats: Michael Kenfenheuer Amtsgericht Dortmund (HRB 20399) ________________________________ Von: Ryan Kogelheide [rko...@pi...] Gesendet: Dienstag, 28. April 2015 19:26 An: wra...@li... Betreff: [Wrapper-user] jstat and jps do not function with wrapper I see that there's an old post asking how to use jps / jstat with the wrapper, but I'm not sure how it was resolved (the link is stale). Does anyone remember? jps never finds the wrapped JVM and jstat <pid> always returns <pid> not found. I can get jstack to work with the wrapper using SysInternal's psexec -s. psexec -s puts the user in the LocalSystem context, but this does not help with jps / jstat. There's some indication in various forums that these utilities are sensitive to the availability of the hsperfdata directory. For the wrapper, I found this directory in C:\Windows\Temp\hsperfdata_<machine>$. I tried setting the -J-Djava.io.tmpdir="C:\Windows\Temp" to the jstat and jps command line, but this did not help. Any advice would be welcome. |
|
From: Leif M. <lei...@ta...> - 2015-05-13 07:35:43
|
Rob, I really want to help out here, but at this point the problem is nothing to do with the Wrapper from what I can see. If the code of the program you are using is not showing any log output, this is a problem in that code, and I have no way of telling what the problem is without source or related log output. Most likely they are making some assumptions about the environment and the way it looks when running as a service is going through the code in a way that has no log output. If the process is failing to be launched then their code should be catching that and showing an error. If I could see that error, I would likely be able to give you some ideas. It sounds like they need some debug output around the code to launch the process to query the registry, show its output, and then the code to load the native library. That way we can see what is going on. One thing to keep in mind is that the active registry space is different when running as a SYSTEM user as a service than it is when running as a standard user as a desktop application. So depending on the registry address they are looking up, it is highly likely that the value they are looking for is in a different location. If the product you are working with is a company then I would suggest sending them your config with the Wrapper and asking them to look into making it work on their end. If they are dealing with accessing the registry, outside of Java, there will likely be some things that need to be adjusted when running as a service. Feel free to keep me in the loop and I will help as possible. Cheers, Leif On Wed, May 13, 2015 at 3:27 PM, Rob Daems <rob...@gm...> wrote: > Hello Leif, > > I added both lines to the conf: > set.PATH=..%WRAPPER_FILE_SEPARATOR%lib%WRAPPER_PATH_SEPARATOR%%PATH% > > set.LD_LIBRARY_PATH=..%WRAPPER_FILE_SEPARATOR%lib%WRAPPER_PATH_SEPARATOR%%LD_LIBRARY_PATH% > > And I checked the the wrapper.log: > DEBUG | wrapper | 2015/05/13 08:14:52 | P---C | Path=..\lib;C:\ProgramData\Oracle\Java\javapath;C:\Oracle\11.2.0.3\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program > Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth > Software\syswow64;C:\Program Files (x86)\Intel\OpenCL > SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL > SDK\2.0\bin\x64;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program > Files (x86)\Enterprise > Vault\EVClient\;C:\Progra~2\Java\jre7\bin;D:\apache-ant-1.9.4\bin;C:\Program > Files\Microsoft SQL > Server\110\Tools\Binn\;C:\Progra~2\Android\android-sdk\platform-tools;C:\Program > Files (x86)\Microsoft\ILMerge;D:\ikvm-7.2.4630.5\bin;C:\Program Files > (x86)\MySQL\MySQL Utilities\;C:\Program Files (x86)\MySQL\MySQL > Utilities\Doctrine extensions for > PHP\;C:\Qt\Qt5.3.2\5.3\msvc2013_64_opengl\bin;C:\Program > Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL > Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft > SDKs\TypeScript\1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program > Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program > Files\Microsoft\Web Platform Installer\;C:\Progra~2\Quamotion\iMobileDevice;C:\Program > Files (x86)\Jamo Solutions\M-eux Test\bin; > > I noticed that "../lib" is now added to my PATH, nevertheless, the place > where I copied them from, was already in my PATH (M-eux Test\bin). So > actually I didn't need them to copy them to ../lib. > Correct me if I'm wrong but as far as I understand the problem of the > location to the dll's is not an issue??? > > So the dll's are not loaded, I don't know why but I contacted the > developer of the tool I use and this is his response: > > Indeed our DLL’s do not get loaded. > > Inside Java we load the DLL by its absolute path. We know the absolute > path of the DLL because we consult the registry on the PC. > > Inside the registry, we keep the path to the installation directory of > M-eux Test. > > The consult the registry by launching a Windows command. So we launch a > process from the java code. Perhaps this causes the problems. > Strange is that we do not see the logs coming from our tool ( which can be > related since we have to read the logging.xml and for locating this file, > we consult the registry). So my guess is that the launch of the process > fails. Can you double check and make sure that the server allows the launch > of a process? > > > Br, Rob > > > 2015-05-12 13:08 GMT+02:00 Leif Mortenson < > lei...@ta...>: > >> Rob, >> We describe this on the following page: >> >> http://wrapper.tanukisoftware.com/doc/english/prop-java-library-path-n.html >> >> Java locates its native libraries using the java library path. >> You are specifying them on the classpath. In both cases this is being >> ignored. But they are all located in the ../lib directory. >> >> The most likely problem is that while java locates its native libraries >> using the java library path, those libraries locate ant dependent DLLs >> using the system PATH. >> The PATH is likely different in the user account where you are running >> your application. >> So my fist guess is that the SYSTEM user's PATH does not include the >> location of those dependent DLLs. >> We describe how to correct this in the above link. >> >> Please reply with the results. If this in not the problem, I will think >> about it some more. >> >> Cheers, >> Leif >> >> On Tue, May 12, 2015 at 4:13 PM, Rob Daems <rob...@gm...> wrote: >> >>> Hello, >>> >>> I'm using the following: >>> wrapper version 3.5.26 (communicty) on win7 - 64bit. >>> Wrapper is started in 32 mode >>> Integration method 4 is used. >>> >>> When I execute the last step to see that everything is configured >>> correctly, by executing the bat manually, there are no problems. (see >>> wrapper_via_bat.log) >>> >>> But when I actually run it as a windows service I get problems. (see >>> wrapper_via_service.log) >>> >>> An exception is thrown. According to the developer of that program which >>> I use, it's caused that native libraries are not loaded. >>> Since my program uses native dll (cppdll.dll and csdll.dll) they should >>> be loaded, but I don't have a clue where I have to put these and where I've >>> to configure them to be loaded. >>> I configured the following but it wasn't successfull: >>> >>> # Java Classpath (include wrapper.jar) Add class path elements as >>> # needed starting from 1 >>> wrapper.java.classpath.1=../lib/wrapper.jar >>> wrapper.java.classpath.2=../lib/*.jar >>> wrapper.java.classpath.3=../lib/Cppdll.dll >>> wrapper.java.classpath.4=../lib/Csdll.dll >>> >>> Nevertheless, I don't understand why it's working via the bat but not >>> when it's not running as a service >>> >>> Br, Rob >>> >> |
|
From: Rob D. <rob...@gm...> - 2015-05-13 06:27:26
|
Hello Leif, I added both lines to the conf: set.PATH=..%WRAPPER_FILE_SEPARATOR%lib%WRAPPER_PATH_SEPARATOR%%PATH% set.LD_LIBRARY_PATH=..%WRAPPER_FILE_SEPARATOR%lib%WRAPPER_PATH_SEPARATOR%%LD_LIBRARY_PATH% And I checked the the wrapper.log: DEBUG | wrapper | 2015/05/13 08:14:52 | P---C | Path=..\lib;C:\ProgramData\Oracle\Java\javapath;C:\Oracle\11.2.0.3\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Progra~2\Java\jre7\bin;D:\apache-ant-1.9.4\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Progra~2\Android\android-sdk\platform-tools;C:\Program Files (x86)\Microsoft\ILMerge;D:\ikvm-7.2.4630.5\bin;C:\Program Files (x86)\MySQL\MySQL Utilities\;C:\Program Files (x86)\MySQL\MySQL Utilities\Doctrine extensions for PHP\;C:\Qt\Qt5.3.2\5.3\msvc2013_64_opengl\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Progra~2\Quamotion\iMobileDevice;C:\Program Files (x86)\Jamo Solutions\M-eux Test\bin; I noticed that "../lib" is now added to my PATH, nevertheless, the place where I copied them from, was already in my PATH (M-eux Test\bin). So actually I didn't need them to copy them to ../lib. Correct me if I'm wrong but as far as I understand the problem of the location to the dll's is not an issue??? So the dll's are not loaded, I don't know why but I contacted the developer of the tool I use and this is his response: Indeed our DLL’s do not get loaded. Inside Java we load the DLL by its absolute path. We know the absolute path of the DLL because we consult the registry on the PC. Inside the registry, we keep the path to the installation directory of M-eux Test. The consult the registry by launching a Windows command. So we launch a process from the java code. Perhaps this causes the problems. Strange is that we do not see the logs coming from our tool ( which can be related since we have to read the logging.xml and for locating this file, we consult the registry). So my guess is that the launch of the process fails. Can you double check and make sure that the server allows the launch of a process? Br, Rob 2015-05-12 13:08 GMT+02:00 Leif Mortenson <lei...@ta... >: > Rob, > We describe this on the following page: > http://wrapper.tanukisoftware.com/doc/english/prop-java-library-path-n.html > > Java locates its native libraries using the java library path. > You are specifying them on the classpath. In both cases this is being > ignored. But they are all located in the ../lib directory. > > The most likely problem is that while java locates its native libraries > using the java library path, those libraries locate ant dependent DLLs > using the system PATH. > The PATH is likely different in the user account where you are running > your application. > So my fist guess is that the SYSTEM user's PATH does not include the > location of those dependent DLLs. > We describe how to correct this in the above link. > > Please reply with the results. If this in not the problem, I will think > about it some more. > > Cheers, > Leif > > On Tue, May 12, 2015 at 4:13 PM, Rob Daems <rob...@gm...> wrote: > >> Hello, >> >> I'm using the following: >> wrapper version 3.5.26 (communicty) on win7 - 64bit. >> Wrapper is started in 32 mode >> Integration method 4 is used. >> >> When I execute the last step to see that everything is configured >> correctly, by executing the bat manually, there are no problems. (see >> wrapper_via_bat.log) >> >> But when I actually run it as a windows service I get problems. (see >> wrapper_via_service.log) >> >> An exception is thrown. According to the developer of that program which >> I use, it's caused that native libraries are not loaded. >> Since my program uses native dll (cppdll.dll and csdll.dll) they should >> be loaded, but I don't have a clue where I have to put these and where I've >> to configure them to be loaded. >> I configured the following but it wasn't successfull: >> >> # Java Classpath (include wrapper.jar) Add class path elements as >> # needed starting from 1 >> wrapper.java.classpath.1=../lib/wrapper.jar >> wrapper.java.classpath.2=../lib/*.jar >> wrapper.java.classpath.3=../lib/Cppdll.dll >> wrapper.java.classpath.4=../lib/Csdll.dll >> >> Nevertheless, I don't understand why it's working via the bat but not >> when it's not running as a service >> >> Br, Rob >> > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Leif M. <lei...@ta...> - 2015-05-12 13:11:45
|
Nguyen, Please see the following page: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html You need to set the "Logon as Service" right. This is explained on this page. Cheers, Leif On Tue, May 12, 2015 at 9:39 PM, Etienne de Dieuleveult < e.d...@ad...> wrote: > Tu T.Nguyen, > How to launch the Service as Administrator ? > If I test this setting : wrapper.ntservice.account=.\Administrateur > the service don't launch and I have an error 1069. > Usually services open a session as LocalSystem, LocalService or > NetWorkService. > > I would like to test the wrapper mode (LocalService), with java.exe and > wrapper.exe as Administrator instead as SYSTEM, > but I don't know how to do or if it's possible ? > > Etienne > > > > > |
|
From: Etienne de D. <e.d...@ad...> - 2015-05-12 12:40:00
|
Tu T.Nguyen, How to launch the Service as Administrator ? If I test this setting : wrapper.ntservice.account=.\Administrateur the service don't launch and I have an error 1069. Usually services open a session as LocalSystem, LocalService or NetWorkService. I would like to test the wrapper mode (LocalService), with java.exe and wrapper.exe as Administrator instead as SYSTEM, but I don't know how to do or if it's possible ? Etienne ----- Original Message ----- From: Tu T. Nguyen To: wra...@li... Sent: Monday, May 11, 2015 7:50 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Did you try running the service as Administrator as I suggested? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 11, 2015 8:23 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Leif or Tu T. Nguyen, I have been realised a test with this parameter in Debug mode : wrapper.ntservice.account=NT AUTHORITY\LocalService But it doesn't work. Following the wrapper.conf and the wrapper.log. When we execute our java application in standalone mode (not in the service), there is no problem to execute PDF Printer or another physical printers. When we use the wrapper to execute the same application as a service, physical printers are working fine but not PDF Printer ! Maybe it's significant point : In standalone mode : one task has been created , java.exe as Administrateur. In wrapper mode : two task have been created , java.exe as SYSTEM and wrapper.exe as SYSTEM Thank's for your help Etienne wrapper.conf : #encoding=UTF-8 # Configuration files must begin with a line specifying the encoding # of the the file. #******************************************************************** # Wrapper License Properties (Ignored by Community Edition) #******************************************************************** # Professional and Standard Editions of the Wrapper require a valid # License Key to start. Licenses can be purchased or a trial license # requested on the following pages: # http://wrapper.tanukisoftware.com/purchase # http://wrapper.tanukisoftware.com/trial # Include file problems can be debugged by removing the first '#' # from the following line: ##include.debug # The Wrapper will look for either of the following optional files for a # valid License Key. License Key properties can optionally be included # directly in this configuration file. #include ../conf/wrapper-license.conf #include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf # The following property will output information about which License Key(s) # are being found, and can aid in resolving any licensing problems. #wrapper.license.debug=TRUE #******************************************************************** # Wrapper Localization #******************************************************************** # Specify the locale which the Wrapper should use. By default the system # locale is used. #wrapper.lang=en_US # en_US or ja_JP # Specify the location of the Wrapper's language resources. If these are # missing, the Wrapper will default to the en_US locale. wrapper.lang.folder=../lang #******************************************************************** # Wrapper Java Properties #******************************************************************** # Java Application # Locate the java binary on the system PATH: wrapper.java.command=java # Specify a specific java binary: #set.JAVA_HOME=/java/path #wrapper.java.command=%JAVA_HOME%/bin/java # Tell the Wrapper to log the full generated Java command line. #wrapper.java.command.loglevel=INFO # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=ad6.printserver.server.AD6PrintServerAppWR # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=ad6printserver.jar wrapper.java.classpath.2=lib/*.jar wrapper.java.classpath.3=lib/*.zip # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=lib # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. wrapper.java.additional.auto_bits=TRUE # Java Additional Parameters wrapper.java.additional.1= # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1= #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Enables Debug output from the Wrapper. wrapper.debug=TRUE wrapper.environment.dump=TRUE # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=conf/wrapper.log #wrapper.logfile=ad6printserver.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper General Properties #******************************************************************** # Allow for the use of non-contiguous numbered properties wrapper.ignore_sequence_gaps=TRUE # Do not start if the pid file already exists. wrapper.pidfile.strict=TRUE # Title to use when running as a console wrapper.console.title=Test Wrapper Sample Application #******************************************************************** # Wrapper JVM Checks #******************************************************************** # Detect DeadLocked Threads in the JVM. (Requires Standard Edition) wrapper.check.deadlock=TRUE wrapper.check.deadlock.interval=10 wrapper.max_failed_invocations=99 wrapper.console.fatal_to_stderr=FALSE wrapper.console.error_to_stderr=FALSE wrapper.check.deadlock.action=RESTART wrapper.check.deadlock.output=FULL # Out Of Memory detection. # (Simple match) wrapper.filter.trigger.1000=java.lang.OutOfMemoryError # (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) #wrapper.filter.trigger.1000=Exception in thread "*" java.lang.OutOfMemoryError #wrapper.filter.allow_wildcards.1000=TRUE wrapper.filter.action.1000=RESTART wrapper.filter.message.1000=The JVM has run out of memory. #******************************************************************** # Wrapper Email Notifications. (Requires Professional Edition) #******************************************************************** # Common Event Email settings. #wrapper.event.default.email.debug=TRUE #wrapper.event.default.email.smtp.host=<SMTP_Host> #wrapper.event.default.email.smtp.port=25 #wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification #wrapper.event.default.email.sender=<Sender email> #wrapper.event.default.email.recipient=<Recipient email> # Configure the log attached to event emails. #wrapper.event.default.email.attach_log=TRUE #wrapper.event.default.email.maillog.lines=50 #wrapper.event.default.email.maillog.format=LPTM #wrapper.event.default.email.maillog.loglevel=INFO # Enable specific event emails. #wrapper.event.wrapper_start.email=TRUE #wrapper.event.jvm_prelaunch.email=TRUE #wrapper.event.jvm_start.email=TRUE #wrapper.event.jvm_started.email=TRUE #wrapper.event.jvm_deadlock.email=TRUE #wrapper.event.jvm_stop.email=TRUE #wrapper.event.jvm_stopped.email=TRUE #wrapper.event.jvm_restart.email=TRUE #wrapper.event.jvm_failed_invocation.email=TRUE #wrapper.event.jvm_max_failed_invocations.email=TRUE #wrapper.event.jvm_kill.email=TRUE #wrapper.event.jvm_killed.email=TRUE #wrapper.event.jvm_unexpected_exit.email=TRUE #wrapper.event.wrapper_stop.email=TRUE # Specify custom mail content wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.name=AD6PrintServer # Display name of the service wrapper.displayname=AD6PrintServer # Description of the service wrapper.description=AD6PrintServer Description # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START wrapper.ntservice.starttype=DEMAND_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false wrapper.ntservice.account=NT AUTHORITY\LocalService And the wrapper.log : DEBUG | wrapperm | 2015/05/11 16:46:48 | Service command: F:\Execution\PrintServer\wrapper.exe -s F:\Execution\PrintServer\conf\wrapperapp.conf DEBUG | wrapperm | 2015/05/11 16:46:48 | checkDomain: OpenPolicy returned 0 DEBUG | wrapperm | 2015/05/11 16:46:48 | ERROR | wrapperm | 2015/05/11 16:46:53 | OpenPolicy failed 1722 STATUS | wrapperm | 2015/05/11 16:46:53 | AD6PrintServer service installed. DEBUG | wrapperm | 2015/05/11 16:46:53 | active log file changed: conf\wrapper.log STATUS | wrapper | 2015/05/11 16:46:58 | --> Wrapper Started as Service DEBUG | wrapper | 2015/05/11 16:46:58 | Allocating a console for the service. DEBUG | wrapper | 2015/05/11 16:46:58 | Found console window. STATUS | wrapper | 2015/05/11 16:46:58 | Java Service Wrapper Community Edition 32-bit 3.5.26 STATUS | wrapper | 2015/05/11 16:46:58 | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2015/05/11 16:46:58 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Launching Startup thread. DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread started. DEBUG | wrapper | 2015/05/11 16:46:58 | Attempting to verify the binary signature. DEBUG | wrapper | 2015/05/11 16:46:58 | The file "F:\Execution\PrintServer\wrapper.exe" is signed and the signature was verified. DEBUG | wrapper | 2015/05/11 16:46:58 | Signer Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 00 97 06 fe b5 6e 56 cc cb 66 3a bb 55 a7 a0 e4 76 DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: Tanuki Software Ltd. DEBUG | wrapper | 2015/05/11 16:46:58 | TimeStamp Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 47 8a 8e fb 59 e1 d8 3f 0c e1 42 d2 a2 87 07 be DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: COMODO Time Stamping Signer DEBUG | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread stopped. DEBUG | wrapper | 2015/05/11 16:46:58 | Release time: 2014/12/05 00:00:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Build time: 2014/12/05 18:36:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Timezone: Paris, Madrid (Paris, Madrid (heure dÆÚtÚ)) Offset: -3600, hasDaylight: 1 DEBUG | wrapper | 2015/05/11 16:46:58 | Using tick timer. DEBUG | wrapper | 2015/05/11 16:46:58 | Current User: SERVICE LOCAL Domain: AUTORITE NT DEBUG | wrapper | 2015/05/11 16:46:58 | Operating System ID: Microsoft Windows Vista Business Edition Service Pack 2 (build 6002), 32-bit INFO | wrapper | 2015/05/11 16:46:58 | INFO | wrapper | 2015/05/11 16:46:58 | Environment variables (Source | Name=Value) BEGIN: INFO | wrapper | 2015/05/11 16:46:58 | P---- | ALLUSERSPROFILE=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | APPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Roaming INFO | wrapper | 2015/05/11 16:46:58 | P---- | CNVPATH=C:\Program Files\Systran\CNV INFO | wrapper | 2015/05/11 16:46:58 | P---- | CommonProgramFiles=C:\Program Files\Common Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | COMPUTERNAME=PC-DE-ETDI INFO | wrapper | 2015/05/11 16:46:58 | P---- | ComSpec=C:\Windows\system32\cmd.exe INFO | wrapper | 2015/05/11 16:46:58 | P---- | FP_NO_HOST_CHECK=NO INFO | wrapper | 2015/05/11 16:46:58 | P---- | Lib=C:\NeXT\NextDeveloper\Libraries INFO | wrapper | 2015/05/11 16:46:58 | P---- | LOCALAPPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Local INFO | wrapper | 2015/05/11 16:46:58 | P---- | NEXT_ROOT=C:/NeXT INFO | wrapper | 2015/05/11 16:46:58 | P---- | NUMBER_OF_PROCESSORS=2 INFO | wrapper | 2015/05/11 16:46:58 | P---- | OS=Windows_NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | Path=C:\NEXT\NEXTDEVELOPER\EXECUTABLES\UTILITIES;C:\NEXT\NEXTLIBRARY\DOCUMENTATION\NEXTDEV;C:\NEXT\NEXTDEVELOPER\EXECUTABLES;C:\NEXT\NEXTLIBRARY\EXECUTABLES;Z:\Rostaing\AD6Library\Executables;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\TortoiseSVN\bin INFO | wrapper | 2015/05/11 16:46:58 | P---- | PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_ARCHITECTURE=x86 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_LEVEL=6 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_REVISION=0f0d INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramData=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramFiles=C:\Program Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | PUBLIC=C:\Users\Public INFO | wrapper | 2015/05/11 16:46:58 | P---- | RoxioCentral=C:\Program Files\Common Files\Roxio Shared\9.0\Roxio Central33\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemDrive=C: INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemRoot=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | P---- | TEMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | TMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERDOMAIN=AUTORITE NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERNAME=SERVICE LOCAL INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERPROFILE=C:\Windows\ServiceProfiles\LocalService INFO | wrapper | 2015/05/11 16:46:58 | P---- | windir=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_ARCH=x86 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BIN_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BITS=32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_CONF_DIR=F:\Execution\PrintServer\conf INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_FILE_SEPARATOR=\ INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOST_NAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOSTNAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | P--W- | WRAPPER_INIT_DIR=C:\Windows\system32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_LANG=en INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_OS=windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PATH_SEPARATOR=; INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PID=5728 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_WORKING_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | Environment variables END: INFO | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Use tick timer mutex=FALSE DEBUG | wrapper | 2015/05/11 16:46:58 | active log file changed: conf\wrapper.log DEBUG | wrapper | 2015/05/11 16:46:58 | Preparing to restart with mode 1. DEBUG | wrapperp | 2015/05/11 16:46:58 | server listening on port 32000. DEBUG | wrapper | 2015/05/11 16:46:58 | Magic number for file C:\Windows\system32\java.exe: 0x4d5a9000 DEBUG | wrapper | 2015/05/11 16:46:58 | Startup Timeouts: wrapper.startup.timeout=30, wrapper.startup.delay.console=0, wrapper.startup.delay.service=0, wrapper.restart.delay=5 DEBUG | wrapper | 2015/05/11 16:46:58 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30, wrapper.ping.alert.threshold=7 DEBUG | wrapper | 2015/05/11 16:46:58 | Shutdown Timeouts: wrapper.shutdown.timeout=30, wrapper.jvm_exit.timeout=15, wrapper.jvm_cleanup.timeout=10, wrapper.jvm_terminate.timeout=10 STATUS | wrapper | 2015/05/11 16:46:58 | Launching a JVM... DEBUG | wrapper | 2015/05/11 16:46:58 | Java Command Line: DEBUG | wrapper | 2015/05/11 16:46:58 | Command: "C:\Windows\system32\java.exe" -Djava.library.path="lib" -classpath "ad6printserver.jar;lib/ad6.jar;lib/ad6filelistener.jar;lib/ad6print.jar;lib/as400.jar;lib/j2ee.jar;lib/jTDS2.jar;lib/jconn2.jar;lib/jdom-2.0.0.jar;lib/jsse.jar;lib/log4j-1.2.16.jar;lib/mail.jar;lib/mysql-connector-java-3.1.8-bin.jar;lib/ojdbc14.jar;lib/sqljdbc.jar;lib/swt-3.5.jar;lib/wrapper.jar;lib/jdbc.zip;lib/progress.zip" -Dwrapper.key="r_D-PqgQiQEK28TV" -Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.pid=5728 -Dwrapper.version="3.5.26" -Dwrapper.native_library="wrapper" -Dwrapper.arch="x86" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 ad6.printserver.server.AD6PrintServerAppWR DEBUG | wrapper | 2015/05/11 16:46:58 | JVM started (PID=4932) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@1fdc96c INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager: Initializing... INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: JVM #1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Running a 32-bit JVM. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager package information: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Title: org.tanukisoftware.wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Vendor: Tanuki Software, Ltd. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Version: 3.5.26 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Is Sealed?: False INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager protection domain: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Location: file:/F:/Execution/PrintServer/lib/wrapper.jar INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Size: 123 204 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: MD5: 453227d430aff56133cbc0deb6514800 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registering shutdown hook INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Using wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registered MBean with Platform MBean Server: org.tanukisoftware.wrapper:type=WrapperManager INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Load native library. There are multiple possible file names and the first to be found will be used. Errors loading non-existing files is normal and is only a problem if they all fail. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper-windows-x86-32.dll Result: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper.dll Result: Success! INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Successfully loaded native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Loaded localized resources. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Calling native initialization method. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Initializing WrapperManager native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Java Executable: C:\Windows\system32\java.exe INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Native Library: F:\Execution\PrintServer\lib\wrapper.dll INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Windows version: 6.0.6002 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java Version : 1.7.0_71-b14 Java HotSpot(TM) Client VM INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java VM Vendor : Oracle Corporation INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Name : Windows Vista INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Arch : x86 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Control event monitor thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager.start(a ad6.printserver.server.AD6PrintServerAppWR, args[]) called by thread: main INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Initial thread: main Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Communications runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Opened Socket from 31 000 to 32 000 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet KEY : r_D-PqgQiQEK28TV INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: handleBackend() INFO | wrapperp | 2015/05/11 16:46:59 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2015/05/11 16:46:59 | closing backend server. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet KEY : r_D-PqgQiQEK28TV DEBUG | wrapper | 2015/05/11 16:46:59 | Got key from JVM: r_D-PqgQiQEK28TV DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOGFILE : conf\wrapper.log DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet PROPERTIES : (Property Values, Size=3969) DEBUG | wrapper | 2015/05/11 16:46:59 | Start Application. DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOGFILE : conf\wrapper.log INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values, Size=3969) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java temporary directory: C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: calling WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Application start main thread: WrapperListener_start_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,709 [INFO ] (Util.java:printInfo:202) AD6-FileListener 1.07 started INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,722 [INFO ] (AD6PrintServerApp.java:startPrintServerApp:30) AD6 PrintServer started INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: returned from WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet STARTED : INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet STARTED : DEBUG | wrapper | 2015/05/11 16:46:59 | JVM signaled that it was started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:47:02 | Send a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Received a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Send a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:02 | read a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:06 | Send a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Received a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Send a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:06 | read a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:10 | Send a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Received a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Send a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:10 | read a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:14 | Send a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Received a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Send a packet PING : ping fffffea6 DEBUG | wrapperp | 2015/05/11 16:47:14 | read a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,323 [INFO ] (PrintServerSharedAction.java:execute:34) Automatic work starting 1 (1 files). INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,324 [INFO ] (PrintServerSharedAction.java:execute:42) File 1 : F:\Workspace2\AD6_PrintServer\dev\Temp2/2015_05_11_164714813.txt (SP3_kanban_yanmar_impression) DEBUG | wrapperp | 2015/05/11 16:47:18 | Send a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Received a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Send a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:19 | read a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:23 | Send a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Received a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Send a packet PING : ping fffffef8 DEBUG | wrapperp | 2015/05/11 16:47:23 | read a packet PING : ping fffffef8 DEBUG | wrapper | 2015/05/11 16:47:24 | SERVICE_CONTROL_STOP DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet SERVICE_CONTROL_CODE : 1 DEBUG | wrapper | 2015/05/11 16:47:24 | wrapperStopProcess(0, TRUE) called. DEBUG | wrapper | 2015/05/11 16:47:24 | Sending stop signal to JVM DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet STOP : NULL INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet SERVICE_CONTROL_CODE : 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: ServiceControlCode from Wrapper with code 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: calling listener.stop() INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Waiting for WrapperListener.stop runner thread to complete. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: WrapperListener.stop runner thread started. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Application stop main thread: WrapperListener_stop_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Stopped checking for control events. DEBUG | wrapper | 2015/05/11 16:47:24 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. WARN | wrapper | 2015/05/11 16:47:24 | JVM exited unexpectedly while stopping the application. DEBUG | wrapperp | 2015/05/11 16:47:24 | Closing backend socket. STATUS | wrapper | 2015/05/11 16:47:24 | <-- Wrapper Stopped ----- Original Message ----- From: Leif Mortenson To: Wrapper User List Sent: Thursday, May 07, 2015 4:36 AM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Etienne, Forgot to mention. Any error messages associated with trying to access your printers is going to be in application code and not directly related to the Wrapper. If there is no error message being logged then this a problem with the application that should be corrected. If it is a 3rd party tool, try and see if there is a way to enable debug log output. Cheers, Leif On Thu, May 7, 2015 at 11:34 AM, Leif Mortenson <lei...@ta...> wrote: Etienne How are you running the Wrapper? As a service? If so then it will be running as the SYSTEM user by default. The SYSTEM user has its own environment and path, as well as restrictions on network access. I am not clear, is your pdf printer a registered printer? Or an executable you are trying to run? You can debug the active environment with the following property: wrapper.environment.dump=TRUE http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html You may need to setup your printer in a specific user and then configure the Wrapper to run as that user. Please read over the following: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html It is also possible to configure the Wrapper so it can access remote Printers and Network Shares without having to first set them up in that account. Not sure if this is useful to you: http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html Cheers, Leif On Thu, May 7, 2015 at 12:00 AM, Tu T. Nguyen <ttn...@ra...> wrote: Please see the following link for information regarding windows services. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-windows-vista-from-windows-vista-inside-out Under startup options you can see the tab for “Log On” Make sure you choose “This Account:” and specify a username and password that has at least local administrator privileges. From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Tuesday, May 05, 2015 6:04 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I' don't know if it's a matter of administrator account, we reproduce this problem on other PC and we are connected as Administrator. If you know how to assign an administrator account to the Windows Service ? When we send documents to pdf Printer, the System launch binaries such PDFCreator.exe, maybe we need to manage permission in the wrapper to execute binaries ? ----- Original Message ----- From: Tu T. Nguyen To: wra...@li... Sent: Monday, May 04, 2015 6:35 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Maybe this is a permissions issue. Have you tried assigning the Windows service an administrator account instead of using the service account? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 04, 2015 6:46 AM To: wra...@li... Subject: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I, We use your wrapper (wrapper-windows-x86-32-3.5.26) to launch a java application as a Windows Service (Vista OS). Our java application generates documents, whose sent to physical Printer (Canon, HP ...) for the printing, and that's works fine. If we send document to pdf Printer (PDFCreator or doPDF) it doesn't work ! And we have no Error and no trace in log file. Perhap's, there is a parameter to be matched in the wrapperapp.conf, we would not have seen ? Thank's for your help. E. de Dieuleveult. ---------------------------------------------------------------------------- ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ---------------------------------------------------------------------------- _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ------------------------------------------------------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <lei...@ta...> - 2015-05-12 11:08:34
|
Rob, We describe this on the following page: http://wrapper.tanukisoftware.com/doc/english/prop-java-library-path-n.html Java locates its native libraries using the java library path. You are specifying them on the classpath. In both cases this is being ignored. But they are all located in the ../lib directory. The most likely problem is that while java locates its native libraries using the java library path, those libraries locate ant dependent DLLs using the system PATH. The PATH is likely different in the user account where you are running your application. So my fist guess is that the SYSTEM user's PATH does not include the location of those dependent DLLs. We describe how to correct this in the above link. Please reply with the results. If this in not the problem, I will think about it some more. Cheers, Leif On Tue, May 12, 2015 at 4:13 PM, Rob Daems <rob...@gm...> wrote: > Hello, > > I'm using the following: > wrapper version 3.5.26 (communicty) on win7 - 64bit. > Wrapper is started in 32 mode > Integration method 4 is used. > > When I execute the last step to see that everything is configured > correctly, by executing the bat manually, there are no problems. (see > wrapper_via_bat.log) > > But when I actually run it as a windows service I get problems. (see > wrapper_via_service.log) > > An exception is thrown. According to the developer of that program which I > use, it's caused that native libraries are not loaded. > Since my program uses native dll (cppdll.dll and csdll.dll) they should be > loaded, but I don't have a clue where I have to put these and where I've to > configure them to be loaded. > I configured the following but it wasn't successfull: > > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=../lib/*.jar > wrapper.java.classpath.3=../lib/Cppdll.dll > wrapper.java.classpath.4=../lib/Csdll.dll > > Nevertheless, I don't understand why it's working via the bat but not when > it's not running as a service > > Br, Rob > |
|
From: Rob D. <rob...@gm...> - 2015-05-12 07:13:57
|
Hello, I'm using the following: wrapper version 3.5.26 (communicty) on win7 - 64bit. Wrapper is started in 32 mode Integration method 4 is used. When I execute the last step to see that everything is configured correctly, by executing the bat manually, there are no problems. (see wrapper_via_bat.log) But when I actually run it as a windows service I get problems. (see wrapper_via_service.log) An exception is thrown. According to the developer of that program which I use, it's caused that native libraries are not loaded. Since my program uses native dll (cppdll.dll and csdll.dll) they should be loaded, but I don't have a clue where I have to put these and where I've to configure them to be loaded. I configured the following but it wasn't successfull: # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=../lib/wrapper.jar wrapper.java.classpath.2=../lib/*.jar wrapper.java.classpath.3=../lib/Cppdll.dll wrapper.java.classpath.4=../lib/Csdll.dll Nevertheless, I don't understand why it's working via the bat but not when it's not running as a service Br, Rob |
|
From: Colin K. W. <di...@uw...> - 2015-05-12 00:51:50
|
Thanks Leif, this resolved my issue. I will try changing the log level next time. Best, Colin Williams On Wed, May 6, 2015 at 7:15 PM, Leif Mortenson < lei...@ta...> wrote: > Colin, > > The arguments passed to the Wrapper need to be broken up. You have > registered them as pairs of arguments (name and value) with a space. Those > are passed as a single argument to the JVM on UNIX. > Please try it as follows and let me know if this fixes your problem. > > wrapper.app.parameter.1=com.quantifind.kafka.offsetapp.OffsetGetterWeb > > wrapper.app.parameter.2=--zk > > wrapper.app.parameter.3=myzk1:2181,myzk2:2181,myzk3:2181/kafka1 > > wrapper.app.parameter.4=--port > > wrapper.app.parameter.5=8080 > > wrapper.app.parameter.6=--refresh > > wrapper.app.parameter.7=10.seconds > > wrapper.app.parameter.8=--retain > > wrapper.app.parameter.9=7.days > > > Problems like this can be easily debugged by setting the following > property to show the generated command line in the log file (You have it > commented out): > > > wrapper.java.command.loglevel=INFO > > > Cheers, > > Leif > > On Thu, May 7, 2015 at 8:32 AM, Colin Kincaid Williams <di...@uw...> > wrote: > >> >java -cp KafkaOffsetMonitor-assembly-0.2.1.jar >> com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk >> myzk1:2181,myzk2:2181,myzk3:2181/kafka1 --port 8080 --refresh 10.seconds >> --retain 2.days >> >> serving resources from: >> jar:file:/opt/kafka-offset-monitor/KafkaOffsetMonitor-assembly-0.2.1.jar!/offsetapp >> ... >> >> starting the application via the command line as I showed above works. >> Then I'm trying to adapt it to the wrapper. I will look at the wrapper >> again. >> > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Tu T. N. <ttn...@ra...> - 2015-05-11 18:22:27
|
Did you try running the service as Administrator as I suggested? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 11, 2015 8:23 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Leif or Tu T. Nguyen, I have been realised a test with this parameter in Debug mode : wrapper.ntservice.account=NT AUTHORITY\LocalService But it doesn't work. Following the wrapper.conf and the wrapper.log. When we execute our java application in standalone mode (not in the service), there is no problem to execute PDF Printer or another physical printers. When we use the wrapper to execute the same application as a service, physical printers are working fine but not PDF Printer ! Maybe it's significant point : In standalone mode : one task has been created , java.exe as Administrateur. In wrapper mode : two task have been created , java.exe as SYSTEM and wrapper.exe as SYSTEM Thank's for your help Etienne wrapper.conf : #encoding=UTF-8 # Configuration files must begin with a line specifying the encoding # of the the file. #******************************************************************** # Wrapper License Properties (Ignored by Community Edition) #******************************************************************** # Professional and Standard Editions of the Wrapper require a valid # License Key to start. Licenses can be purchased or a trial license # requested on the following pages: # http://wrapper.tanukisoftware.com/purchase # http://wrapper.tanukisoftware.com/trial # Include file problems can be debugged by removing the first '#' # from the following line: ##include.debug # The Wrapper will look for either of the following optional files for a # valid License Key. License Key properties can optionally be included # directly in this configuration file. #include ../conf/wrapper-license.conf #include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf # The following property will output information about which License Key(s) # are being found, and can aid in resolving any licensing problems. #wrapper.license.debug=TRUE #******************************************************************** # Wrapper Localization #******************************************************************** # Specify the locale which the Wrapper should use. By default the system # locale is used. #wrapper.lang=en_US # en_US or ja_JP # Specify the location of the Wrapper's language resources. If these are # missing, the Wrapper will default to the en_US locale. wrapper.lang.folder=../lang #******************************************************************** # Wrapper Java Properties #******************************************************************** # Java Application # Locate the java binary on the system PATH: wrapper.java.command=java # Specify a specific java binary: #set.JAVA_HOME=/java/path #wrapper.java.command=%JAVA_HOME%/bin/java # Tell the Wrapper to log the full generated Java command line. #wrapper.java.command.loglevel=INFO # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=ad6.printserver.server.AD6PrintServerAppWR # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=ad6printserver.jar wrapper.java.classpath.2=lib/*.jar wrapper.java.classpath.3=lib/*.zip # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=lib # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. wrapper.java.additional.auto_bits=TRUE # Java Additional Parameters wrapper.java.additional.1= # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1= #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Enables Debug output from the Wrapper. wrapper.debug=TRUE wrapper.environment.dump=TRUE # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=conf/wrapper.log #wrapper.logfile=ad6printserver.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper General Properties #******************************************************************** # Allow for the use of non-contiguous numbered properties wrapper.ignore_sequence_gaps=TRUE # Do not start if the pid file already exists. wrapper.pidfile.strict=TRUE # Title to use when running as a console wrapper.console.title=Test Wrapper Sample Application #******************************************************************** # Wrapper JVM Checks #******************************************************************** # Detect DeadLocked Threads in the JVM. (Requires Standard Edition) wrapper.check.deadlock=TRUE wrapper.check.deadlock.interval=10 wrapper.max_failed_invocations=99 wrapper.console.fatal_to_stderr=FALSE wrapper.console.error_to_stderr=FALSE wrapper.check.deadlock.action=RESTART wrapper.check.deadlock.output=FULL # Out Of Memory detection. # (Simple match) wrapper.filter.trigger.1000=java.lang.OutOfMemoryError # (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) #wrapper.filter.trigger.1000=Exception in thread "*" java.lang.OutOfMemoryError #wrapper.filter.allow_wildcards.1000=TRUE wrapper.filter.action.1000=RESTART wrapper.filter.message.1000=The JVM has run out of memory. #******************************************************************** # Wrapper Email Notifications. (Requires Professional Edition) #******************************************************************** # Common Event Email settings. #wrapper.event.default.email.debug=TRUE #wrapper.event.default.email.smtp.host=<SMTP_Host> #wrapper.event.default.email.smtp.port=25 #wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification #wrapper.event.default.email.sender=<Sender email> #wrapper.event.default.email.recipient=<Recipient email> # Configure the log attached to event emails. #wrapper.event.default.email.attach_log=TRUE #wrapper.event.default.email.maillog.lines=50 #wrapper.event.default.email.maillog.format=LPTM #wrapper.event.default.email.maillog.loglevel=INFO # Enable specific event emails. #wrapper.event.wrapper_start.email=TRUE #wrapper.event.jvm_prelaunch.email=TRUE #wrapper.event.jvm_start.email=TRUE #wrapper.event.jvm_started.email=TRUE #wrapper.event.jvm_deadlock.email=TRUE #wrapper.event.jvm_stop.email=TRUE #wrapper.event.jvm_stopped.email=TRUE #wrapper.event.jvm_restart.email=TRUE #wrapper.event.jvm_failed_invocation.email=TRUE #wrapper.event.jvm_max_failed_invocations.email=TRUE #wrapper.event.jvm_kill.email=TRUE #wrapper.event.jvm_killed.email=TRUE #wrapper.event.jvm_unexpected_exit.email=TRUE #wrapper.event.wrapper_stop.email=TRUE # Specify custom mail content wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.name=AD6PrintServer # Display name of the service wrapper.displayname=AD6PrintServer # Description of the service wrapper.description=AD6PrintServer Description # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START wrapper.ntservice.starttype=DEMAND_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false wrapper.ntservice.account=NT AUTHORITY\LocalService And the wrapper.log : DEBUG | wrapperm | 2015/05/11 16:46:48 | Service command: F:\Execution\PrintServer\wrapper.exe -s F:\Execution\PrintServer\conf\wrapperapp.conf DEBUG | wrapperm | 2015/05/11 16:46:48 | checkDomain: OpenPolicy returned 0 DEBUG | wrapperm | 2015/05/11 16:46:48 | ERROR | wrapperm | 2015/05/11 16:46:53 | OpenPolicy failed 1722 STATUS | wrapperm | 2015/05/11 16:46:53 | AD6PrintServer service installed. DEBUG | wrapperm | 2015/05/11 16:46:53 | active log file changed: conf\wrapper.log STATUS | wrapper | 2015/05/11 16:46:58 | --> Wrapper Started as Service DEBUG | wrapper | 2015/05/11 16:46:58 | Allocating a console for the service. DEBUG | wrapper | 2015/05/11 16:46:58 | Found console window. STATUS | wrapper | 2015/05/11 16:46:58 | Java Service Wrapper Community Edition 32-bit 3.5.26 STATUS | wrapper | 2015/05/11 16:46:58 | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2015/05/11 16:46:58 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Launching Startup thread. DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread started. DEBUG | wrapper | 2015/05/11 16:46:58 | Attempting to verify the binary signature. DEBUG | wrapper | 2015/05/11 16:46:58 | The file "F:\Execution\PrintServer\wrapper.exe" is signed and the signature was verified. DEBUG | wrapper | 2015/05/11 16:46:58 | Signer Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 00 97 06 fe b5 6e 56 cc cb 66 3a bb 55 a7 a0 e4 76 DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: Tanuki Software Ltd. DEBUG | wrapper | 2015/05/11 16:46:58 | TimeStamp Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 47 8a 8e fb 59 e1 d8 3f 0c e1 42 d2 a2 87 07 be DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: COMODO Time Stamping Signer DEBUG | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread stopped. DEBUG | wrapper | 2015/05/11 16:46:58 | Release time: 2014/12/05 00:00:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Build time: 2014/12/05 18:36:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Timezone: Paris, Madrid (Paris, Madrid (heure dÆÚtÚ)) Offset: -3600, hasDaylight: 1 DEBUG | wrapper | 2015/05/11 16:46:58 | Using tick timer. DEBUG | wrapper | 2015/05/11 16:46:58 | Current User: SERVICE LOCAL Domain: AUTORITE NT DEBUG | wrapper | 2015/05/11 16:46:58 | Operating System ID: Microsoft Windows Vista Business Edition Service Pack 2 (build 6002), 32-bit INFO | wrapper | 2015/05/11 16:46:58 | INFO | wrapper | 2015/05/11 16:46:58 | Environment variables (Source | Name=Value) BEGIN: INFO | wrapper | 2015/05/11 16:46:58 | P---- | ALLUSERSPROFILE=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | APPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Roaming INFO | wrapper | 2015/05/11 16:46:58 | P---- | CNVPATH=C:\Program Files\Systran\CNV INFO | wrapper | 2015/05/11 16:46:58 | P---- | CommonProgramFiles=C:\Program Files\Common Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | COMPUTERNAME=PC-DE-ETDI INFO | wrapper | 2015/05/11 16:46:58 | P---- | ComSpec=C:\Windows\system32\cmd.exe INFO | wrapper | 2015/05/11 16:46:58 | P---- | FP_NO_HOST_CHECK=NO INFO | wrapper | 2015/05/11 16:46:58 | P---- | Lib=C:\NeXT\NextDeveloper\Libraries INFO | wrapper | 2015/05/11 16:46:58 | P---- | LOCALAPPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Local INFO | wrapper | 2015/05/11 16:46:58 | P---- | NEXT_ROOT=C:/NeXT INFO | wrapper | 2015/05/11 16:46:58 | P---- | NUMBER_OF_PROCESSORS=2 INFO | wrapper | 2015/05/11 16:46:58 | P---- | OS=Windows_NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | Path=C:\NEXT\NEXTDEVELOPER\EXECUTABLES\UTILITIES;C:\NEXT\NEXTLIBRARY\DOCUMENTATION\NEXTDEV;C:\NEXT\NEXTDEVELOPER\EXECUTABLES;C:\NEXT\NEXTLIBRARY\EXECUTABLES;Z:\Rostaing\AD6Library\Executables;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\TortoiseSVN\bin INFO | wrapper | 2015/05/11 16:46:58 | P---- | PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_ARCHITECTURE=x86 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_LEVEL=6 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_REVISION=0f0d INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramData=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramFiles=C:\Program Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | PUBLIC=C:\Users\Public INFO | wrapper | 2015/05/11 16:46:58 | P---- | RoxioCentral=C:\Program Files\Common Files\Roxio Shared\9.0\Roxio Central33\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemDrive=C: INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemRoot=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | P---- | TEMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | TMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERDOMAIN=AUTORITE NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERNAME=SERVICE LOCAL INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERPROFILE=C:\Windows\ServiceProfiles\LocalService INFO | wrapper | 2015/05/11 16:46:58 | P---- | windir=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_ARCH=x86 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BIN_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BITS=32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_CONF_DIR=F:\Execution\PrintServer\conf INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_FILE_SEPARATOR=\ INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOST_NAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOSTNAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | P--W- | WRAPPER_INIT_DIR=C:\Windows\system32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_LANG=en INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_OS=windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PATH_SEPARATOR=; INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PID=5728 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_WORKING_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | Environment variables END: INFO | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Use tick timer mutex=FALSE DEBUG | wrapper | 2015/05/11 16:46:58 | active log file changed: conf\wrapper.log DEBUG | wrapper | 2015/05/11 16:46:58 | Preparing to restart with mode 1. DEBUG | wrapperp | 2015/05/11 16:46:58 | server listening on port 32000. DEBUG | wrapper | 2015/05/11 16:46:58 | Magic number for file C:\Windows\system32\java.exe: 0x4d5a9000 DEBUG | wrapper | 2015/05/11 16:46:58 | Startup Timeouts: wrapper.startup.timeout=30, wrapper.startup.delay.console=0, wrapper.startup.delay.service=0, wrapper.restart.delay=5 DEBUG | wrapper | 2015/05/11 16:46:58 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30, wrapper.ping.alert.threshold=7 DEBUG | wrapper | 2015/05/11 16:46:58 | Shutdown Timeouts: wrapper.shutdown.timeout=30, wrapper.jvm_exit.timeout=15, wrapper.jvm_cleanup.timeout=10, wrapper.jvm_terminate.timeout=10 STATUS | wrapper | 2015/05/11 16:46:58 | Launching a JVM... DEBUG | wrapper | 2015/05/11 16:46:58 | Java Command Line: DEBUG | wrapper | 2015/05/11 16:46:58 | Command: "C:\Windows\system32\java.exe" -Djava.library.path="lib" -classpath "ad6printserver.jar;lib/ad6.jar;lib/ad6filelistener.jar;lib/ad6print.jar;lib/as400.jar;lib/j2ee.jar;lib/jTDS2.jar;lib/jconn2.jar;lib/jdom-2.0.0.jar;lib/jsse.jar;lib/log4j-1.2.16.jar;lib/mail.jar;lib/mysql-connector-java-3.1.8-bin.jar;lib/ojdbc14.jar;lib/sqljdbc.jar;lib/swt-3.5.jar;lib/wrapper.jar;lib/jdbc.zip;lib/progress.zip" -Dwrapper.key="r_D-PqgQiQEK28TV" -Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.pid=5728 -Dwrapper.version="3.5.26" -Dwrapper.native_library="wrapper" -Dwrapper.arch="x86" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 ad6.printserver.server.AD6PrintServerAppWR DEBUG | wrapper | 2015/05/11 16:46:58 | JVM started (PID=4932) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@1fdc96c INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager: Initializing... INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: JVM #1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Running a 32-bit JVM. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager package information: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Title: org.tanukisoftware.wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Vendor: Tanuki Software, Ltd. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Version: 3.5.26 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Is Sealed?: False INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager protection domain: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Location: file:/F:/Execution/PrintServer/lib/wrapper.jar INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Size: 123 204 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: MD5: 453227d430aff56133cbc0deb6514800 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registering shutdown hook INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Using wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registered MBean with Platform MBean Server: org.tanukisoftware.wrapper:type=WrapperManager INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Load native library. There are multiple possible file names and the first to be found will be used. Errors loading non-existing files is normal and is only a problem if they all fail. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper-windows-x86-32.dll Result: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper.dll Result: Success! INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Successfully loaded native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Loaded localized resources. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Calling native initialization method. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Initializing WrapperManager native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Java Executable: C:\Windows\system32\java.exe INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Native Library: F:\Execution\PrintServer\lib\wrapper.dll INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Windows version: 6.0.6002 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java Version : 1.7.0_71-b14 Java HotSpot(TM) Client VM INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java VM Vendor : Oracle Corporation INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Name : Windows Vista INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Arch : x86 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Control event monitor thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager.start(a ad6.printserver.server.AD6PrintServerAppWR, args[]) called by thread: main INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Initial thread: main Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Communications runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Opened Socket from 31 000 to 32 000 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet KEY : r_D-PqgQiQEK28TV INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: handleBackend() INFO | wrapperp | 2015/05/11 16:46:59 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2015/05/11 16:46:59 | closing backend server. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet KEY : r_D-PqgQiQEK28TV DEBUG | wrapper | 2015/05/11 16:46:59 | Got key from JVM: r_D-PqgQiQEK28TV DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOGFILE : conf\wrapper.log DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet PROPERTIES : (Property Values, Size=3969) DEBUG | wrapper | 2015/05/11 16:46:59 | Start Application. DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOGFILE : conf\wrapper.log INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values, Size=3969) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java temporary directory: C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: calling WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Application start main thread: WrapperListener_start_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,709 [INFO ] (Util.java:printInfo:202) AD6-FileListener 1.07 started INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,722 [INFO ] (AD6PrintServerApp.java:startPrintServerApp:30) AD6 PrintServer started INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: returned from WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet STARTED : INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet STARTED : DEBUG | wrapper | 2015/05/11 16:46:59 | JVM signaled that it was started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:47:02 | Send a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Received a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Send a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:02 | read a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:06 | Send a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Received a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Send a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:06 | read a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:10 | Send a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Received a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Send a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:10 | read a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:14 | Send a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Received a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Send a packet PING : ping fffffea6 DEBUG | wrapperp | 2015/05/11 16:47:14 | read a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,323 [INFO ] (PrintServerSharedAction.java:execute:34) Automatic work starting 1 (1 files). INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,324 [INFO ] (PrintServerSharedAction.java:execute:42) File 1 : F:\Workspace2\AD6_PrintServer\dev\Temp2/2015_05_11_164714813.txt (SP3_kanban_yanmar_impression) DEBUG | wrapperp | 2015/05/11 16:47:18 | Send a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Received a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Send a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:19 | read a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:23 | Send a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Received a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Send a packet PING : ping fffffef8 DEBUG | wrapperp | 2015/05/11 16:47:23 | read a packet PING : ping fffffef8 DEBUG | wrapper | 2015/05/11 16:47:24 | SERVICE_CONTROL_STOP DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet SERVICE_CONTROL_CODE : 1 DEBUG | wrapper | 2015/05/11 16:47:24 | wrapperStopProcess(0, TRUE) called. DEBUG | wrapper | 2015/05/11 16:47:24 | Sending stop signal to JVM DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet STOP : NULL INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet SERVICE_CONTROL_CODE : 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: ServiceControlCode from Wrapper with code 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: calling listener.stop() INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Waiting for WrapperListener.stop runner thread to complete. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: WrapperListener.stop runner thread started. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Application stop main thread: WrapperListener_stop_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Stopped checking for control events. DEBUG | wrapper | 2015/05/11 16:47:24 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. WARN | wrapper | 2015/05/11 16:47:24 | JVM exited unexpectedly while stopping the application. DEBUG | wrapperp | 2015/05/11 16:47:24 | Closing backend socket. STATUS | wrapper | 2015/05/11 16:47:24 | <-- Wrapper Stopped ----- Original Message ----- From: Leif Mortenson<mailto:lei...@ta...> To: Wrapper User List<mailto:wra...@li...> Sent: Thursday, May 07, 2015 4:36 AM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Etienne, Forgot to mention. Any error messages associated with trying to access your printers is going to be in application code and not directly related to the Wrapper. If there is no error message being logged then this a problem with the application that should be corrected. If it is a 3rd party tool, try and see if there is a way to enable debug log output. Cheers, Leif On Thu, May 7, 2015 at 11:34 AM, Leif Mortenson <lei...@ta...<mailto:lei...@ta...>> wrote: Etienne How are you running the Wrapper? As a service? If so then it will be running as the SYSTEM user by default. The SYSTEM user has its own environment and path, as well as restrictions on network access. I am not clear, is your pdf printer a registered printer? Or an executable you are trying to run? You can debug the active environment with the following property: wrapper.environment.dump=TRUE http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html You may need to setup your printer in a specific user and then configure the Wrapper to run as that user. Please read over the following: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html It is also possible to configure the Wrapper so it can access remote Printers and Network Shares without having to first set them up in that account. Not sure if this is useful to you: http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html Cheers, Leif On Thu, May 7, 2015 at 12:00 AM, Tu T. Nguyen <ttn...@ra...<mailto:ttn...@ra...>> wrote: Please see the following link for information regarding windows services. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-windows-vista-from-windows-vista-inside-out Under startup options you can see the tab for “Log On” Make sure you choose “This Account:” and specify a username and password that has at least local administrator privileges. From: Etienne de Dieuleveult [mailto:e.d...@ad...<mailto:e.d...@ad...>] Sent: Tuesday, May 05, 2015 6:04 AM To: wra...@li...<mailto:wra...@li...> Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I' don't know if it's a matter of administrator account, we reproduce this problem on other PC and we are connected as Administrator. If you know how to assign an administrator account to the Windows Service ? When we send documents to pdf Printer, the System launch binaries such PDFCreator.exe, maybe we need to manage permission in the wrapper to execute binaries ? ----- Original Message ----- From: Tu T. Nguyen<mailto:ttn...@ra...> To: wra...@li...<mailto:wra...@li...> Sent: Monday, May 04, 2015 6:35 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Maybe this is a permissions issue. Have you tried assigning the Windows service an administrator account instead of using the service account? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 04, 2015 6:46 AM To: wra...@li...<mailto:wra...@li...> Subject: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I, We use your wrapper (wrapper-windows-x86-32-3.5.26) to launch a java application as a Windows Service (Vista OS). Our java application generates documents, whose sent to physical Printer (Canon, HP ...) for the printing, and that's works fine. If we send document to pdf Printer (PDFCreator or doPDF) it doesn't work ! And we have no Error and no trace in log file. Perhap's, there is a parameter to be matched in the wrapperapp.conf, we would not have seen ? Thank's for your help. E. de Dieuleveult. ________________________________ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ________________________________ _______________________________________________ Wrapper-user mailing list Wra...@li...<mailto:Wra...@li...> https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Etienne de D. <e.d...@ad...> - 2015-05-11 15:23:51
|
Leif or Tu T. Nguyen, I have been realised a test with this parameter in Debug mode : wrapper.ntservice.account=NT AUTHORITY\LocalService But it doesn't work. Following the wrapper.conf and the wrapper.log. When we execute our java application in standalone mode (not in the service), there is no problem to execute PDF Printer or another physical printers. When we use the wrapper to execute the same application as a service, physical printers are working fine but not PDF Printer ! Maybe it's significant point : In standalone mode : one task has been created , java.exe as Administrateur. In wrapper mode : two task have been created , java.exe as SYSTEM and wrapper.exe as SYSTEM Thank's for your help Etienne wrapper.conf : #encoding=UTF-8 # Configuration files must begin with a line specifying the encoding # of the the file. #******************************************************************** # Wrapper License Properties (Ignored by Community Edition) #******************************************************************** # Professional and Standard Editions of the Wrapper require a valid # License Key to start. Licenses can be purchased or a trial license # requested on the following pages: # http://wrapper.tanukisoftware.com/purchase # http://wrapper.tanukisoftware.com/trial # Include file problems can be debugged by removing the first '#' # from the following line: ##include.debug # The Wrapper will look for either of the following optional files for a # valid License Key. License Key properties can optionally be included # directly in this configuration file. #include ../conf/wrapper-license.conf #include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf # The following property will output information about which License Key(s) # are being found, and can aid in resolving any licensing problems. #wrapper.license.debug=TRUE #******************************************************************** # Wrapper Localization #******************************************************************** # Specify the locale which the Wrapper should use. By default the system # locale is used. #wrapper.lang=en_US # en_US or ja_JP # Specify the location of the Wrapper's language resources. If these are # missing, the Wrapper will default to the en_US locale. wrapper.lang.folder=../lang #******************************************************************** # Wrapper Java Properties #******************************************************************** # Java Application # Locate the java binary on the system PATH: wrapper.java.command=java # Specify a specific java binary: #set.JAVA_HOME=/java/path #wrapper.java.command=%JAVA_HOME%/bin/java # Tell the Wrapper to log the full generated Java command line. #wrapper.java.command.loglevel=INFO # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=ad6.printserver.server.AD6PrintServerAppWR # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=ad6printserver.jar wrapper.java.classpath.2=lib/*.jar wrapper.java.classpath.3=lib/*.zip # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=lib # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. wrapper.java.additional.auto_bits=TRUE # Java Additional Parameters wrapper.java.additional.1= # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1= #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Enables Debug output from the Wrapper. wrapper.debug=TRUE wrapper.environment.dump=TRUE # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=conf/wrapper.log #wrapper.logfile=ad6printserver.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper General Properties #******************************************************************** # Allow for the use of non-contiguous numbered properties wrapper.ignore_sequence_gaps=TRUE # Do not start if the pid file already exists. wrapper.pidfile.strict=TRUE # Title to use when running as a console wrapper.console.title=Test Wrapper Sample Application #******************************************************************** # Wrapper JVM Checks #******************************************************************** # Detect DeadLocked Threads in the JVM. (Requires Standard Edition) wrapper.check.deadlock=TRUE wrapper.check.deadlock.interval=10 wrapper.max_failed_invocations=99 wrapper.console.fatal_to_stderr=FALSE wrapper.console.error_to_stderr=FALSE wrapper.check.deadlock.action=RESTART wrapper.check.deadlock.output=FULL # Out Of Memory detection. # (Simple match) wrapper.filter.trigger.1000=java.lang.OutOfMemoryError # (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) #wrapper.filter.trigger.1000=Exception in thread "*" java.lang.OutOfMemoryError #wrapper.filter.allow_wildcards.1000=TRUE wrapper.filter.action.1000=RESTART wrapper.filter.message.1000=The JVM has run out of memory. #******************************************************************** # Wrapper Email Notifications. (Requires Professional Edition) #******************************************************************** # Common Event Email settings. #wrapper.event.default.email.debug=TRUE #wrapper.event.default.email.smtp.host=<SMTP_Host> #wrapper.event.default.email.smtp.port=25 #wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification #wrapper.event.default.email.sender=<Sender email> #wrapper.event.default.email.recipient=<Recipient email> # Configure the log attached to event emails. #wrapper.event.default.email.attach_log=TRUE #wrapper.event.default.email.maillog.lines=50 #wrapper.event.default.email.maillog.format=LPTM #wrapper.event.default.email.maillog.loglevel=INFO # Enable specific event emails. #wrapper.event.wrapper_start.email=TRUE #wrapper.event.jvm_prelaunch.email=TRUE #wrapper.event.jvm_start.email=TRUE #wrapper.event.jvm_started.email=TRUE #wrapper.event.jvm_deadlock.email=TRUE #wrapper.event.jvm_stop.email=TRUE #wrapper.event.jvm_stopped.email=TRUE #wrapper.event.jvm_restart.email=TRUE #wrapper.event.jvm_failed_invocation.email=TRUE #wrapper.event.jvm_max_failed_invocations.email=TRUE #wrapper.event.jvm_kill.email=TRUE #wrapper.event.jvm_killed.email=TRUE #wrapper.event.jvm_unexpected_exit.email=TRUE #wrapper.event.wrapper_stop.email=TRUE # Specify custom mail content wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.name=AD6PrintServer # Display name of the service wrapper.displayname=AD6PrintServer # Description of the service wrapper.description=AD6PrintServer Description # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START wrapper.ntservice.starttype=DEMAND_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false wrapper.ntservice.account=NT AUTHORITY\LocalService And the wrapper.log : DEBUG | wrapperm | 2015/05/11 16:46:48 | Service command: F:\Execution\PrintServer\wrapper.exe -s F:\Execution\PrintServer\conf\wrapperapp.conf DEBUG | wrapperm | 2015/05/11 16:46:48 | checkDomain: OpenPolicy returned 0 DEBUG | wrapperm | 2015/05/11 16:46:48 | ERROR | wrapperm | 2015/05/11 16:46:53 | OpenPolicy failed 1722 STATUS | wrapperm | 2015/05/11 16:46:53 | AD6PrintServer service installed. DEBUG | wrapperm | 2015/05/11 16:46:53 | active log file changed: conf\wrapper.log STATUS | wrapper | 2015/05/11 16:46:58 | --> Wrapper Started as Service DEBUG | wrapper | 2015/05/11 16:46:58 | Allocating a console for the service. DEBUG | wrapper | 2015/05/11 16:46:58 | Found console window. STATUS | wrapper | 2015/05/11 16:46:58 | Java Service Wrapper Community Edition 32-bit 3.5.26 STATUS | wrapper | 2015/05/11 16:46:58 | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2015/05/11 16:46:58 | http://wrapper.tanukisoftware.com STATUS | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Launching Startup thread. DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread started. DEBUG | wrapper | 2015/05/11 16:46:58 | Attempting to verify the binary signature. DEBUG | wrapper | 2015/05/11 16:46:58 | The file "F:\Execution\PrintServer\wrapper.exe" is signed and the signature was verified. DEBUG | wrapper | 2015/05/11 16:46:58 | Signer Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 00 97 06 fe b5 6e 56 cc cb 66 3a bb 55 a7 a0 e4 76 DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: Tanuki Software Ltd. DEBUG | wrapper | 2015/05/11 16:46:58 | TimeStamp Certificate: DEBUG | wrapper | 2015/05/11 16:46:58 | Serial Number: DEBUG | wrapper | 2015/05/11 16:46:58 | 47 8a 8e fb 59 e1 d8 3f 0c e1 42 d2 a2 87 07 be DEBUG | wrapper | 2015/05/11 16:46:58 | Issuer Name: UTN-USERFirst-Object DEBUG | wrapper | 2015/05/11 16:46:58 | Subject Name: COMODO Time Stamping Signer DEBUG | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Startup thread stopped. DEBUG | wrapper | 2015/05/11 16:46:58 | Release time: 2014/12/05 00:00:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Build time: 2014/12/05 18:36:00 DEBUG | wrapper | 2015/05/11 16:46:58 | Timezone: Paris, Madrid (Paris, Madrid (heure dÆÚtÚ)) Offset: -3600, hasDaylight: 1 DEBUG | wrapper | 2015/05/11 16:46:58 | Using tick timer. DEBUG | wrapper | 2015/05/11 16:46:58 | Current User: SERVICE LOCAL Domain: AUTORITE NT DEBUG | wrapper | 2015/05/11 16:46:58 | Operating System ID: Microsoft Windows Vista Business Edition Service Pack 2 (build 6002), 32-bit INFO | wrapper | 2015/05/11 16:46:58 | INFO | wrapper | 2015/05/11 16:46:58 | Environment variables (Source | Name=Value) BEGIN: INFO | wrapper | 2015/05/11 16:46:58 | P---- | ALLUSERSPROFILE=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | APPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Roaming INFO | wrapper | 2015/05/11 16:46:58 | P---- | CNVPATH=C:\Program Files\Systran\CNV INFO | wrapper | 2015/05/11 16:46:58 | P---- | CommonProgramFiles=C:\Program Files\Common Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | COMPUTERNAME=PC-DE-ETDI INFO | wrapper | 2015/05/11 16:46:58 | P---- | ComSpec=C:\Windows\system32\cmd.exe INFO | wrapper | 2015/05/11 16:46:58 | P---- | FP_NO_HOST_CHECK=NO INFO | wrapper | 2015/05/11 16:46:58 | P---- | Lib=C:\NeXT\NextDeveloper\Libraries INFO | wrapper | 2015/05/11 16:46:58 | P---- | LOCALAPPDATA=C:\Windows\ServiceProfiles\LocalService\AppData\Local INFO | wrapper | 2015/05/11 16:46:58 | P---- | NEXT_ROOT=C:/NeXT INFO | wrapper | 2015/05/11 16:46:58 | P---- | NUMBER_OF_PROCESSORS=2 INFO | wrapper | 2015/05/11 16:46:58 | P---- | OS=Windows_NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | Path=C:\NEXT\NEXTDEVELOPER\EXECUTABLES\UTILITIES;C:\NEXT\NEXTLIBRARY\DOCUMENTATION\NEXTDEV;C:\NEXT\NEXTDEVELOPER\EXECUTABLES;C:\NEXT\NEXTLIBRARY\EXECUTABLES;Z:\Rostaing\AD6Library\Executables;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\TortoiseSVN\bin INFO | wrapper | 2015/05/11 16:46:58 | P---- | PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_ARCHITECTURE=x86 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 13, GenuineIntel INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_LEVEL=6 INFO | wrapper | 2015/05/11 16:46:58 | P---- | PROCESSOR_REVISION=0f0d INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramData=C:\ProgramData INFO | wrapper | 2015/05/11 16:46:58 | P---- | ProgramFiles=C:\Program Files INFO | wrapper | 2015/05/11 16:46:58 | P---- | PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | PUBLIC=C:\Users\Public INFO | wrapper | 2015/05/11 16:46:58 | P---- | RoxioCentral=C:\Program Files\Common Files\Roxio Shared\9.0\Roxio Central33\ INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemDrive=C: INFO | wrapper | 2015/05/11 16:46:58 | P---- | SystemRoot=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | P---- | TEMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | TMP=C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERDOMAIN=AUTORITE NT INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERNAME=SERVICE LOCAL INFO | wrapper | 2015/05/11 16:46:58 | P---- | USERPROFILE=C:\Windows\ServiceProfiles\LocalService INFO | wrapper | 2015/05/11 16:46:58 | P---- | windir=C:\Windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_ARCH=x86 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BIN_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_BITS=32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_CONF_DIR=F:\Execution\PrintServer\conf INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_FILE_SEPARATOR=\ INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOST_NAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_HOSTNAME=PC-de-Etdi INFO | wrapper | 2015/05/11 16:46:58 | P--W- | WRAPPER_INIT_DIR=C:\Windows\system32 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_LANG=en INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_OS=windows INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PATH_SEPARATOR=; INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_PID=5728 INFO | wrapper | 2015/05/11 16:46:58 | ---W- | WRAPPER_WORKING_DIR=F:\Execution\PrintServer INFO | wrapper | 2015/05/11 16:46:58 | Environment variables END: INFO | wrapper | 2015/05/11 16:46:58 | DEBUG | wrapper | 2015/05/11 16:46:58 | Use tick timer mutex=FALSE DEBUG | wrapper | 2015/05/11 16:46:58 | active log file changed: conf\wrapper.log DEBUG | wrapper | 2015/05/11 16:46:58 | Preparing to restart with mode 1. DEBUG | wrapperp | 2015/05/11 16:46:58 | server listening on port 32000. DEBUG | wrapper | 2015/05/11 16:46:58 | Magic number for file C:\Windows\system32\java.exe: 0x4d5a9000 DEBUG | wrapper | 2015/05/11 16:46:58 | Startup Timeouts: wrapper.startup.timeout=30, wrapper.startup.delay.console=0, wrapper.startup.delay.service=0, wrapper.restart.delay=5 DEBUG | wrapper | 2015/05/11 16:46:58 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30, wrapper.ping.alert.threshold=7 DEBUG | wrapper | 2015/05/11 16:46:58 | Shutdown Timeouts: wrapper.shutdown.timeout=30, wrapper.jvm_exit.timeout=15, wrapper.jvm_cleanup.timeout=10, wrapper.jvm_terminate.timeout=10 STATUS | wrapper | 2015/05/11 16:46:58 | Launching a JVM... DEBUG | wrapper | 2015/05/11 16:46:58 | Java Command Line: DEBUG | wrapper | 2015/05/11 16:46:58 | Command: "C:\Windows\system32\java.exe" -Djava.library.path="lib" -classpath "ad6printserver.jar;lib/ad6.jar;lib/ad6filelistener.jar;lib/ad6print.jar;lib/as400.jar;lib/j2ee.jar;lib/jTDS2.jar;lib/jconn2.jar;lib/jdom-2.0.0.jar;lib/jsse.jar;lib/log4j-1.2.16.jar;lib/mail.jar;lib/mysql-connector-java-3.1.8-bin.jar;lib/ojdbc14.jar;lib/sqljdbc.jar;lib/swt-3.5.jar;lib/wrapper.jar;lib/jdbc.zip;lib/progress.zip" -Dwrapper.key="r_D-PqgQiQEK28TV" -Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.pid=5728 -Dwrapper.version="3.5.26" -Dwrapper.native_library="wrapper" -Dwrapper.arch="x86" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 ad6.printserver.server.AD6PrintServerAppWR DEBUG | wrapper | 2015/05/11 16:46:58 | JVM started (PID=4932) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@1fdc96c INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager: Initializing... INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: JVM #1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Running a 32-bit JVM. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager package information: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Title: org.tanukisoftware.wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Vendor: Tanuki Software, Ltd. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Implementation Version: 3.5.26 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Is Sealed?: False INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager protection domain: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Location: file:/F:/Execution/PrintServer/lib/wrapper.jar INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Size: 123 204 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: MD5: 453227d430aff56133cbc0deb6514800 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registering shutdown hook INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Using wrapper INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Registered MBean with Platform MBean Server: org.tanukisoftware.wrapper:type=WrapperManager INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Load native library. There are multiple possible file names and the first to be found will be used. Errors loading non-existing files is normal and is only a problem if they all fail. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper-windows-x86-32.dll Result: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Attempt to load native library with name: wrapper.dll Result: Success! INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Successfully loaded native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Loaded localized resources. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Calling native initialization method. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Initializing WrapperManager native library. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Java Executable: C:\Windows\system32\java.exe INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Native Library: F:\Execution\PrintServer\lib\wrapper.dll INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperJNI Debug: Windows version: 6.0.6002 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java Version : 1.7.0_71-b14 Java HotSpot(TM) Client VM INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java VM Vendor : Oracle Corporation INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Name : Windows Vista INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: OS Arch : x86 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Control event monitor thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperManager.start(a ad6.printserver.server.AD6PrintServerAppWR, args[]) called by thread: main INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Initial thread: main Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Communications runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Opened Socket from 31 000 to 32 000 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet KEY : r_D-PqgQiQEK28TV INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: handleBackend() INFO | wrapperp | 2015/05/11 16:46:59 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2015/05/11 16:46:59 | closing backend server. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet KEY : r_D-PqgQiQEK28TV DEBUG | wrapper | 2015/05/11 16:46:59 | Got key from JVM: r_D-PqgQiQEK28TV DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet LOGFILE : conf\wrapper.log DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet PROPERTIES : (Property Values, Size=3969) DEBUG | wrapper | 2015/05/11 16:46:59 | Start Application. DEBUG | wrapperp | 2015/05/11 16:46:59 | Send a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet LOGFILE : conf\wrapper.log INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values, Size=3969) INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Received a packet START : start INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Java temporary directory: C:\Windows\SERVIC~2\LOCALS~1\AppData\Local\Temp INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: calling WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Application start main thread: WrapperListener_start_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,709 [INFO ] (Util.java:printInfo:202) AD6-FileListener 1.07 started INFO | jvm 1 | 2015/05/11 16:46:59 | 2015-05-11 16:46:59,722 [INFO ] (AD6PrintServerApp.java:startPrintServerApp:30) AD6 PrintServer started INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: returned from WrapperListener.start() INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Send a packet STARTED : INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: WrapperListener.start runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:46:59 | read a packet STARTED : DEBUG | wrapper | 2015/05/11 16:46:59 | JVM signaled that it was started. INFO | jvm 1 | 2015/05/11 16:46:59 | WrapperManager Debug: Startup runner thread stopped. DEBUG | wrapperp | 2015/05/11 16:47:02 | Send a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Received a packet PING : ping fffffe2b INFO | jvm 1 | 2015/05/11 16:47:02 | WrapperManager Debug: Send a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:02 | read a packet PING : ping fffffe2b DEBUG | wrapperp | 2015/05/11 16:47:06 | Send a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Received a packet PING : ping fffffe54 INFO | jvm 1 | 2015/05/11 16:47:06 | WrapperManager Debug: Send a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:06 | read a packet PING : ping fffffe54 DEBUG | wrapperp | 2015/05/11 16:47:10 | Send a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Received a packet PING : ping fffffe7d INFO | jvm 1 | 2015/05/11 16:47:10 | WrapperManager Debug: Send a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:10 | read a packet PING : ping fffffe7d DEBUG | wrapperp | 2015/05/11 16:47:14 | Send a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Received a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:14 | WrapperManager Debug: Send a packet PING : ping fffffea6 DEBUG | wrapperp | 2015/05/11 16:47:14 | read a packet PING : ping fffffea6 INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,323 [INFO ] (PrintServerSharedAction.java:execute:34) Automatic work starting 1 (1 files). INFO | jvm 1 | 2015/05/11 16:47:15 | 2015-05-11 16:47:15,324 [INFO ] (PrintServerSharedAction.java:execute:42) File 1 : F:\Workspace2\AD6_PrintServer\dev\Temp2/2015_05_11_164714813.txt (SP3_kanban_yanmar_impression) DEBUG | wrapperp | 2015/05/11 16:47:18 | Send a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Received a packet PING : ping fffffecf INFO | jvm 1 | 2015/05/11 16:47:19 | WrapperManager Debug: Send a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:19 | read a packet PING : ping fffffecf DEBUG | wrapperp | 2015/05/11 16:47:23 | Send a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Received a packet PING : ping fffffef8 INFO | jvm 1 | 2015/05/11 16:47:23 | WrapperManager Debug: Send a packet PING : ping fffffef8 DEBUG | wrapperp | 2015/05/11 16:47:23 | read a packet PING : ping fffffef8 DEBUG | wrapper | 2015/05/11 16:47:24 | SERVICE_CONTROL_STOP DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet SERVICE_CONTROL_CODE : 1 DEBUG | wrapper | 2015/05/11 16:47:24 | wrapperStopProcess(0, TRUE) called. DEBUG | wrapper | 2015/05/11 16:47:24 | Sending stop signal to JVM DEBUG | wrapperp | 2015/05/11 16:47:24 | Send a packet STOP : NULL INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet SERVICE_CONTROL_CODE : 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: ServiceControlCode from Wrapper with code 1 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Thread, Wrapper-Connection, handling the shutdown process. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: calling listener.stop() INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Waiting for WrapperListener.stop runner thread to complete. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: WrapperListener.stop runner thread started. INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Application stop main thread: WrapperListener_stop_runner Priority: 5 INFO | jvm 1 | 2015/05/11 16:47:24 | WrapperManager Debug: Stopped checking for control events. DEBUG | wrapper | 2015/05/11 16:47:24 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. WARN | wrapper | 2015/05/11 16:47:24 | JVM exited unexpectedly while stopping the application. DEBUG | wrapperp | 2015/05/11 16:47:24 | Closing backend socket. STATUS | wrapper | 2015/05/11 16:47:24 | <-- Wrapper Stopped ----- Original Message ----- From: Leif Mortenson To: Wrapper User List Sent: Thursday, May 07, 2015 4:36 AM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Etienne, Forgot to mention. Any error messages associated with trying to access your printers is going to be in application code and not directly related to the Wrapper. If there is no error message being logged then this a problem with the application that should be corrected. If it is a 3rd party tool, try and see if there is a way to enable debug log output. Cheers, Leif On Thu, May 7, 2015 at 11:34 AM, Leif Mortenson <lei...@ta...> wrote: Etienne How are you running the Wrapper? As a service? If so then it will be running as the SYSTEM user by default. The SYSTEM user has its own environment and path, as well as restrictions on network access. I am not clear, is your pdf printer a registered printer? Or an executable you are trying to run? You can debug the active environment with the following property: wrapper.environment.dump=TRUE http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html You may need to setup your printer in a specific user and then configure the Wrapper to run as that user. Please read over the following: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html It is also possible to configure the Wrapper so it can access remote Printers and Network Shares without having to first set them up in that account. Not sure if this is useful to you: http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html Cheers, Leif On Thu, May 7, 2015 at 12:00 AM, Tu T. Nguyen <ttn...@ra...> wrote: Please see the following link for information regarding windows services. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-windows-vista-from-windows-vista-inside-out Under startup options you can see the tab for “Log On” Make sure you choose “This Account:” and specify a username and password that has at least local administrator privileges. From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Tuesday, May 05, 2015 6:04 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I' don't know if it's a matter of administrator account, we reproduce this problem on other PC and we are connected as Administrator. If you know how to assign an administrator account to the Windows Service ? When we send documents to pdf Printer, the System launch binaries such PDFCreator.exe, maybe we need to manage permission in the wrapper to execute binaries ? ----- Original Message ----- From: Tu T. Nguyen To: wra...@li... Sent: Monday, May 04, 2015 6:35 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Maybe this is a permissions issue. Have you tried assigning the Windows service an administrator account instead of using the service account? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 04, 2015 6:46 AM To: wra...@li... Subject: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I, We use your wrapper (wrapper-windows-x86-32-3.5.26) to launch a java application as a Windows Service (Vista OS). Our java application generates documents, whose sent to physical Printer (Canon, HP ...) for the printing, and that's works fine. If we send document to pdf Printer (PDFCreator or doPDF) it doesn't work ! And we have no Error and no trace in log file. Perhap's, there is a parameter to be matched in the wrapperapp.conf, we would not have seen ? Thank's for your help. E. de Dieuleveult. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ------------------------------------------------------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Etienne de D. <e.d...@ad...> - 2015-05-07 09:03:46
|
Leif We are running the wrapper as a service, I confirm that we have 2 processus : java.exe and wrapper.exe as SYSTEM user. Our pdf Printer is a registered printer. Here the wrapper.conf. I currently doing test following your advice. #encoding=UTF-8 # Configuration files must begin with a line specifying the encoding # of the the file. #******************************************************************** # Wrapper License Properties (Ignored by Community Edition) #******************************************************************** # Professional and Standard Editions of the Wrapper require a valid # License Key to start. Licenses can be purchased or a trial license # requested on the following pages: # http://wrapper.tanukisoftware.com/purchase # http://wrapper.tanukisoftware.com/trial # Include file problems can be debugged by removing the first '#' # from the following line: ##include.debug # The Wrapper will look for either of the following optional files for a # valid License Key. License Key properties can optionally be included # directly in this configuration file. #include ../conf/wrapper-license.conf #include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf # The following property will output information about which License Key(s) # are being found, and can aid in resolving any licensing problems. #wrapper.license.debug=TRUE #******************************************************************** # Wrapper Localization #******************************************************************** # Specify the locale which the Wrapper should use. By default the system # locale is used. #wrapper.lang=en_US # en_US or ja_JP # Specify the location of the Wrapper's language resources. If these are # missing, the Wrapper will default to the en_US locale. wrapper.lang.folder=../lang #******************************************************************** # Wrapper Java Properties #******************************************************************** # Java Application # Locate the java binary on the system PATH: wrapper.java.command=java # Specify a specific java binary: #set.JAVA_HOME=/java/path #wrapper.java.command=%JAVA_HOME%/bin/java # Tell the Wrapper to log the full generated Java command line. #wrapper.java.command.loglevel=INFO # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the Integration section # of the documentation for details. wrapper.java.mainclass=ad6.printserver.server.AD6PrintServerAppWR # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=ad6printserver.jar wrapper.java.classpath.2=lib/*.jar wrapper.java.classpath.3=lib/*.zip # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=lib # Java Bits. On applicable platforms, tells the JVM to run in 32 or 64-bit mode. wrapper.java.additional.auto_bits=TRUE # Java Additional Parameters wrapper.java.additional.1= # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1= #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Enables Debug output from the Wrapper. wrapper.debug=TRUE wrapper.environment.dump=TRUE # Format of output for the console. (See docs for formats) wrapper.console.format=PM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=INFO # Log file to use for wrapper output logging. wrapper.logfile=conf/wrapper.log #wrapper.logfile=ad6printserver.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=LPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=INFO # Maximum size that the log file will be allowed to grow to before # the log is rolled. Size is specified in bytes. The default value # of 0, disables log rolling. May abbreviate with the 'k' (kb) or # 'm' (mb) suffix. For example: 10m = 10 megabytes. wrapper.logfile.maxsize=0 # Maximum number of rolled log files which will be allowed before old # files are deleted. The default value of 0 implies no limit. wrapper.logfile.maxfiles=0 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=NONE #******************************************************************** # Wrapper General Properties #******************************************************************** # Allow for the use of non-contiguous numbered properties wrapper.ignore_sequence_gaps=TRUE # Do not start if the pid file already exists. wrapper.pidfile.strict=TRUE # Title to use when running as a console wrapper.console.title=Test Wrapper Sample Application #******************************************************************** # Wrapper JVM Checks #******************************************************************** # Detect DeadLocked Threads in the JVM. (Requires Standard Edition) wrapper.check.deadlock=TRUE wrapper.check.deadlock.interval=10 wrapper.max_failed_invocations=99 wrapper.console.fatal_to_stderr=FALSE wrapper.console.error_to_stderr=FALSE wrapper.check.deadlock.action=RESTART wrapper.check.deadlock.output=FULL # Out Of Memory detection. # (Simple match) wrapper.filter.trigger.1000=java.lang.OutOfMemoryError # (Only match text in stack traces if -XX:+PrintClassHistogram is being used.) #wrapper.filter.trigger.1000=Exception in thread "*" java.lang.OutOfMemoryError #wrapper.filter.allow_wildcards.1000=TRUE wrapper.filter.action.1000=RESTART wrapper.filter.message.1000=The JVM has run out of memory. #******************************************************************** # Wrapper Email Notifications. (Requires Professional Edition) #******************************************************************** # Common Event Email settings. #wrapper.event.default.email.debug=TRUE #wrapper.event.default.email.smtp.host=<SMTP_Host> #wrapper.event.default.email.smtp.port=25 #wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification #wrapper.event.default.email.sender=<Sender email> #wrapper.event.default.email.recipient=<Recipient email> # Configure the log attached to event emails. #wrapper.event.default.email.attach_log=TRUE #wrapper.event.default.email.maillog.lines=50 #wrapper.event.default.email.maillog.format=LPTM #wrapper.event.default.email.maillog.loglevel=INFO # Enable specific event emails. #wrapper.event.wrapper_start.email=TRUE #wrapper.event.jvm_prelaunch.email=TRUE #wrapper.event.jvm_start.email=TRUE #wrapper.event.jvm_started.email=TRUE #wrapper.event.jvm_deadlock.email=TRUE #wrapper.event.jvm_stop.email=TRUE #wrapper.event.jvm_stopped.email=TRUE #wrapper.event.jvm_restart.email=TRUE #wrapper.event.jvm_failed_invocation.email=TRUE #wrapper.event.jvm_max_failed_invocations.email=TRUE #wrapper.event.jvm_kill.email=TRUE #wrapper.event.jvm_killed.email=TRUE #wrapper.event.jvm_unexpected_exit.email=TRUE #wrapper.event.wrapper_stop.email=TRUE # Specify custom mail content wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n #******************************************************************** # Wrapper Windows NT/2000/XP Service Properties #******************************************************************** # WARNING - Do not modify any of these properties when an application # using this configuration file has been installed as a service. # Please uninstall the service before modifying this section. The # service can then be reinstalled. # Name of the service wrapper.name=AD6PrintServer # Display name of the service wrapper.displayname=AD6PrintServer # Description of the service wrapper.description=AD6PrintServer Description # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1= # Mode in which the service is installed. AUTO_START, DELAY_START or DEMAND_START wrapper.ntservice.starttype=DEMAND_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=false ----- Original Message ----- From: Leif Mortenson To: Wrapper User List Sent: Thursday, May 07, 2015 4:34 AM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Etienne How are you running the Wrapper? As a service? If so then it will be running as the SYSTEM user by default. The SYSTEM user has its own environment and path, as well as restrictions on network access. I am not clear, is your pdf printer a registered printer? Or an executable you are trying to run? You can debug the active environment with the following property: wrapper.environment.dump=TRUE http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html You may need to setup your printer in a specific user and then configure the Wrapper to run as that user. Please read over the following: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html It is also possible to configure the Wrapper so it can access remote Printers and Network Shares without having to first set them up in that account. Not sure if this is useful to you: http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html Cheers, Leif On Thu, May 7, 2015 at 12:00 AM, Tu T. Nguyen <ttn...@ra...> wrote: Please see the following link for information regarding windows services. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-windows-vista-from-windows-vista-inside-out Under startup options you can see the tab for “Log On” Make sure you choose “This Account:” and specify a username and password that has at least local administrator privileges. From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Tuesday, May 05, 2015 6:04 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I' don't know if it's a matter of administrator account, we reproduce this problem on other PC and we are connected as Administrator. If you know how to assign an administrator account to the Windows Service ? When we send documents to pdf Printer, the System launch binaries such PDFCreator.exe, maybe we need to manage permission in the wrapper to execute binaries ? ----- Original Message ----- From: Tu T. Nguyen To: wra...@li... Sent: Monday, May 04, 2015 6:35 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Maybe this is a permissions issue. Have you tried assigning the Windows service an administrator account instead of using the service account? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 04, 2015 6:46 AM To: wra...@li... Subject: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I, We use your wrapper (wrapper-windows-x86-32-3.5.26) to launch a java application as a Windows Service (Vista OS). Our java application generates documents, whose sent to physical Printer (Canon, HP ...) for the printing, and that's works fine. If we send document to pdf Printer (PDFCreator or doPDF) it doesn't work ! And we have no Error and no trace in log file. Perhap's, there is a parameter to be matched in the wrapperapp.conf, we would not have seen ? Thank's for your help. E. de Dieuleveult. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ------------------------------------------------------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ----- Original Message ----- From: Leif Mortenson To: Wrapper User List Sent: Thursday, May 07, 2015 4:34 AM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Etienne How are you running the Wrapper? As a service? If so then it will be running as the SYSTEM user by default. The SYSTEM user has its own environment and path, as well as restrictions on network access. I am not clear, is your pdf printer a registered printer? Or an executable you are trying to run? You can debug the active environment with the following property: wrapper.environment.dump=TRUE http://wrapper.tanukisoftware.com/doc/english/prop-environment-dump.html You may need to setup your printer in a specific user and then configure the Wrapper to run as that user. Please read over the following: http://wrapper.tanukisoftware.com/doc/english/prop-ntservice-account.html It is also possible to configure the Wrapper so it can access remote Printers and Network Shares without having to first set them up in that account. Not sure if this is useful to you: http://wrapper.tanukisoftware.com/doc/english/prop-share-general.html Cheers, Leif On Thu, May 7, 2015 at 12:00 AM, Tu T. Nguyen <ttn...@ra...> wrote: Please see the following link for information regarding windows services. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-windows-vista-from-windows-vista-inside-out Under startup options you can see the tab for “Log On” Make sure you choose “This Account:” and specify a username and password that has at least local administrator privileges. From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Tuesday, May 05, 2015 6:04 AM To: wra...@li... Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I' don't know if it's a matter of administrator account, we reproduce this problem on other PC and we are connected as Administrator. If you know how to assign an administrator account to the Windows Service ? When we send documents to pdf Printer, the System launch binaries such PDFCreator.exe, maybe we need to manage permission in the wrapper to execute binaries ? ----- Original Message ----- From: Tu T. Nguyen To: wra...@li... Sent: Monday, May 04, 2015 6:35 PM Subject: Re: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer Maybe this is a permissions issue. Have you tried assigning the Windows service an administrator account instead of using the service account? From: Etienne de Dieuleveult [mailto:e.d...@ad...] Sent: Monday, May 04, 2015 6:46 AM To: wra...@li... Subject: [Wrapper-user] Wrapper binarie doesn't work with pdf Printer I, We use your wrapper (wrapper-windows-x86-32-3.5.26) to launch a java application as a Windows Service (Vista OS). Our java application generates documents, whose sent to physical Printer (Canon, HP ...) for the printing, and that's works fine. If we send document to pdf Printer (PDFCreator or doPDF) it doesn't work ! And we have no Error and no trace in log file. Perhap's, there is a parameter to be matched in the wrapperapp.conf, we would not have seen ? Thank's for your help. E. de Dieuleveult. ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ------------------------------------------------------------------------------ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |