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: Leif M. <le...@ta...> - 2003-05-09 09:04:14
|
Saw your note on http://forum.java.sun.com/thread.jsp?thread=373769&forum=4&message=1589244 No answers their other than it looks like it is possible. Someone else was even using the Wrapper. The following is taken from the documentation on setting up Apache under windows. The same should apply to your application with the Wrapper. Please verify that everything below is true for your account: http://httpd.apache.org/docs/win_service.html User Account for Apache Service to Run As (NT/2000) When Apache is first installed as a service (e.g. with the -i option) it will run as user "System" (the LocalSystem account). There should be few issues if all resources for the web server reside on the local system, but it has broad security privileges to affect the local machine! LocalSystem is a very privileged account locally, so you shouldn't run any shareware applications there. However, it has no network privileges and cannot leave the machine via any NT-secured mechanism, including file system, named pipes, DCOM, or secure RPC. NEVER grant network privileges to the SYSTEM account! Create a new user account instead, grant the appropriate privileges to that user, and use the 'Log On As:' option. Select the Start Menu -> Settings -> Control Panel -> Services -> apache service ... and click the "Startup" button to access this setting. A service that runs in the context of the LocalSystem account inherits the security context of the SCM. It is not associated with any logged-on user account and does not have credentials (domain name, user name, and password) to be used for verification. The SYSTEM account has no privileges to the network, so shared pages or a shared installation of Apache is invisible to the service. If you intend to use any network resources, the following steps should help: * Select Apache from the Control Panel's Service dialog and click Startup. * Verify that the service account is correct. You may wish to create an account for your Apache services. * Retype the password and password confirmation. * Go to User Manager for Domains. * Click on Policies from the title bar menu, and select User Rights. * Select the option for Advanced User Rights. * In the drop-down list, verify that the following rights have been granted to the selected account: o Act as part of the operating system o Back up files and directories o Log on as a service o Restore files and directories * Confirm that the selected account is a member of the Users group. * Confirm the selected account has access to all document and script directories (minimally read and browse access). * Confirm the selected account has read/write/delete access to the Apache logs directory! If you allow the account to log in as a user, then you can log in yourself and test that the account has the privileges to execute the scripts, read the web pages, and that you can start Apache in a console window. If this works, and you have followed the steps above, Apache should execute as a service with no problems. Cheers, Leif Suo Anders wrote: >Hi Leif, >indeed, both wrapper and java.exe are running as the user I specified in conf. I'll try to set even more generous priviliges on the mapped drive to see if that has something to do with it. > >/Anders > >-----Ursprungligt meddelande----- >Från: Leif Mortenson [mailto:le...@ta...] >Skickat: den 8 maj 2003 18:11 >Till: wra...@li... >Ämne: Re: SV: [Wrapper-user] Access network directories from NT service! > > >Suo, > If the same settings are working on your Win2k box, that makes me >wonder if it is a problem with NT. I'm not sure if there are any differences >in the way NT handles account privileges. > > Could you give the program that David posted a try and verify that both >the Wrapper and JVM processes are both running as the intended user? >Most likely they are but it would be nice to confirm. > >Cheers, >Leif > >Suo Anders wrote: > > > >>Hi Leif, thanks for your reply. >>I've reinstalled the service a number of times and it seems to be ok as far as the user in "log on as" is the one I set in the conf-file. >>I'd like the posibility to see what user the service runs as but it doesn't seem to be possible in NT... >> >>I have tried both ways, G:\ and //server/dir, but it makes no difference. >>Actually, I have a Win2k machine on which it runs fine! But I can't tell for sure what the difference is: the OS or the user privileges! But on the WinNT machine, I do have access to the mapped drive as a "windows user", I can create and delete files on that drive through Explorer. It's just when I run my app as a servive it fails. >>BTW, the jre I'm using for the service is 1.3.1_02. >> >>/Anders >> >> >>-----Ursprungligt meddelande----- >>Från: Leif Mortenson [mailto:le...@ta...] >>Skickat: den 8 maj 2003 13:41 >>Till: wra...@li... >>Ämne: Re: [Wrapper-user] Access network directories from NT service! >> >> >>Suo, >>Most people have gotten things working setting up an account. >> >>A few things for you to check. >>When you set the wrapper.ntservice.account and wrapper.ntservice.password >>properties, id you uninstall and then reinstall the service. This is >>important or >>the changes will not take effect. (This is probable ok because you said you >>verified the settings in the control panel.) >> >>You say that the service is started, it is not running as the correct user? >>How are you verifying this? If there was a problem with the user then >>the service would not start. Under XP, you can see the user that a >>service is running as by opening the Task Manager and enabling the >>User Name column. Most services run as SERVICE. Most likely the >>user is the one that is specified in your wrapper.ntservice.account >>property. >> >>If both of the above are true, then what exactly are you trying to do? >>Is the network drive mapped to a local drive. Ie R:/ or something or >>are you accessing the network drive directly? //machine/dir >>If it is the later, try the first? Just an idea, not sure it will make a >>difference. >> >>I only have access to 2000 and XP servers. So I am unable to test NT >>directly. Do you have the ability to test on an XP or 2000 server? There >>is nothing I am doing that is widows-version specific, but who knows... >> >>Cheers, >>Leif >> >> >>Suo Anders wrote: >> >> >> >> >> >>>Hi! >>>I have a java app that monitor and reads/deletes files from a directory that is mapped from a UNIX >>>server. I have a user set up with the proper privileges to access the directory. When I run my Java app through the debbugger or as a console app, there is no problem. However, as I install the app as a NT service, it can't access the directory. I use the wrapper.ntservice.account and wrapper.ntservice.password properties of the conf-file to set the user that the service should run as, and looking at the installed service hrough control panel->services, it seems OK. But when I start the service, it still doesn't seem to run as the correct user. >>>I've seen that some other users of the Wrapper have come across problems similar to mine but I haven't found the proper solution! >>>OS is Win NT Server, Wrapper version 3.0.2. >>>Please help! >>> >>>Regards, >>>Anders >>> >>> >>> >>> > > > > >------------------------------------------------------- >Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >The only event dedicated to issues related to Linux enterprise solutions >www.enterpriselinuxforum.com > >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > >------------------------------------------------------- >Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >The only event dedicated to issues related to Linux enterprise solutions >www.enterpriselinuxforum.com > >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |
|
From: Suo A. <And...@sw...> - 2003-05-09 08:36:03
|
Hi Leif,
indeed, both wrapper and java.exe are running as the user I specified in =
conf. I'll try to set even more generous priviliges on the mapped drive =
to see if that has something to do with it.
/Anders
-----Ursprungligt meddelande-----
Fr=E5n: Leif Mortenson [mailto:le...@ta...]
Skickat: den 8 maj 2003 18:11
Till: wra...@li...
=C4mne: Re: SV: [Wrapper-user] Access network directories from NT =
service!
Suo,
If the same settings are working on your Win2k box, that makes me
wonder if it is a problem with NT. I'm not sure if there are any =
differences
in the way NT handles account privileges.
Could you give the program that David posted a try and verify that =
both
the Wrapper and JVM processes are both running as the intended user?
Most likely they are but it would be nice to confirm.
Cheers,
Leif
Suo Anders wrote:
>Hi Leif, thanks for your reply.
>I've reinstalled the service a number of times and it seems to be ok as =
far as the user in "log on as" is the one I set in the conf-file.
>I'd like the posibility to see what user the service runs as but it =
doesn't seem to be possible in NT...
>
>I have tried both ways, G:\ and //server/dir, but it makes no =
difference.=20
>Actually, I have a Win2k machine on which it runs fine! But I can't =
tell for sure what the difference is: the OS or the user privileges! But =
on the WinNT machine, I do have access to the mapped drive as a "windows =
user", I can create and delete files on that drive through Explorer. =
It's just when I run my app as a servive it fails.=20
>BTW, the jre I'm using for the service is 1.3.1_02.
>
>/Anders
>
>
>-----Ursprungligt meddelande-----
>Fr=E5n: Leif Mortenson [mailto:le...@ta...]
>Skickat: den 8 maj 2003 13:41
>Till: wra...@li...
>=C4mne: Re: [Wrapper-user] Access network directories from NT service!
>
>
>Suo,
>Most people have gotten things working setting up an account.
>
>A few things for you to check.
>When you set the wrapper.ntservice.account and =
wrapper.ntservice.password
>properties, id you uninstall and then reinstall the service. This is=20
>important or
>the changes will not take effect. (This is probable ok because you =
said you
>verified the settings in the control panel.)
>
>You say that the service is started, it is not running as the correct =
user?
>How are you verifying this? If there was a problem with the user then
>the service would not start. Under XP, you can see the user that a
>service is running as by opening the Task Manager and enabling the
>User Name column. Most services run as SERVICE. Most likely the
>user is the one that is specified in your wrapper.ntservice.account
>property.
>
>If both of the above are true, then what exactly are you trying to do?
>Is the network drive mapped to a local drive. Ie R:/ or something or
>are you accessing the network drive directly? //machine/dir
>If it is the later, try the first? Just an idea, not sure it will make =
a
>difference.
>
>I only have access to 2000 and XP servers. So I am unable to test NT
>directly. Do you have the ability to test on an XP or 2000 server? =
There
>is nothing I am doing that is widows-version specific, but who knows...
>
>Cheers,
>Leif
>
>
>Suo Anders wrote:
>
> =20
>
>>Hi!=20
>>I have a java app that monitor and reads/deletes files from a =
directory that is mapped from a UNIX=20
>>server. I have a user set up with the proper privileges to access the =
directory. When I run my Java app through the debbugger or as a console =
app, there is no problem. However, as I install the app as a NT service, =
it can't access the directory. I use the wrapper.ntservice.account and =
wrapper.ntservice.password properties of the conf-file to set the user =
that the service should run as, and looking at the installed service =
hrough control panel->services, it seems OK. But when I start the =
service, it still doesn't seem to run as the correct user.=20
>>I've seen that some other users of the Wrapper have come across =
problems similar to mine but I haven't found the proper solution!=20
>>OS is Win NT Server, Wrapper version 3.0.2.
>>Please help!=20
>>
>>Regards,=20
>>Anders=20
>> =20
>>
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|
|
From: Suo A. <And...@sw...> - 2003-05-09 08:19:50
|
Thank you David, very useful application!=20 It actually shows that my service actually runs as the correct user! = So... Maybe this is more of a java problem than a wrapper problem. I = can't understand, though, why I am able to run in console mode but not = as a service??? Regards, Anders -----Ursprungligt meddelande----- Fr=E5n: David Resnick [mailto:dre...@mo...] Skickat: den 8 maj 2003 17:52 Till: wra...@li... =C4mne: RE: [Wrapper-user] Access network directories from NT service! Hi, Try using procexp from = http://www.sysinternals.com/ntw2k/freeware/procexp.shtml to check what = user a service is running as on NT. Regards, David Resnick MobileSpear Inc. -----Original Message----- From: Suo Anders [mailto:And...@sw...]=20 Sent: Thursday, May 08, 2003 16:41 To: wra...@li... Subject: SV: [Wrapper-user] Access network directories from NT service! Hi Leif, thanks for your reply. I've reinstalled the service a number of times and it seems to be ok as = far as the user in "log on as" is the one I set in the conf-file. I'd like the posibility to see what user the service runs as but it = doesn't seem to be possible in NT... I have tried both ways, G:\ and //server/dir, but it makes no = difference.=20 Actually, I have a Win2k machine on which it runs fine! But I can't tell = for sure what the difference is: the OS or the user privileges! But on = the WinNT machine, I do have access to the mapped drive as a "windows = user", I can create and delete files on that drive through Explorer. = It's just when I run my app as a servive it fails.=20 BTW, the jre I'm using for the service is 1.3.1_02. /Anders -----Ursprungligt meddelande----- Fr=E5n: Leif Mortenson [mailto:le...@ta...] Skickat: den 8 maj 2003 13:41 Till: wra...@li... =C4mne: Re: [Wrapper-user] Access network directories from NT service! Suo, Most people have gotten things working setting up an account. A few things for you to check. When you set the wrapper.ntservice.account and = wrapper.ntservice.password properties, id you uninstall and then reinstall the service. This is=20 important or the changes will not take effect. (This is probable ok because you said = you verified the settings in the control panel.) You say that the service is started, it is not running as the correct = user? How are you verifying this? If there was a problem with the user then the service would not start. Under XP, you can see the user that a service is running as by opening the Task Manager and enabling the User Name column. Most services run as SERVICE. Most likely the user is the one that is specified in your wrapper.ntservice.account property. If both of the above are true, then what exactly are you trying to do? Is the network drive mapped to a local drive. Ie R:/ or something or are you accessing the network drive directly? //machine/dir If it is the later, try the first? Just an idea, not sure it will make = a difference. I only have access to 2000 and XP servers. So I am unable to test NT directly. Do you have the ability to test on an XP or 2000 server? = There is nothing I am doing that is widows-version specific, but who knows... Cheers, Leif Suo Anders wrote: >Hi!=20 >I have a java app that monitor and reads/deletes files from a directory = that is mapped from a UNIX=20 >server. I have a user set up with the proper privileges to access the = directory. When I run my Java app through the debbugger or as a console = app, there is no problem. However, as I install the app as a NT service, = it can't access the directory. I use the wrapper.ntservice.account and = wrapper.ntservice.password properties of the conf-file to set the user = that the service should run as, and looking at the installed service = hrough control panel->services, it seems OK. But when I start the = service, it still doesn't seem to run as the correct user.=20 >I've seen that some other users of the Wrapper have come across = problems similar to mine but I haven't found the proper solution!=20 >OS is Win NT Server, Wrapper version 3.0.2. >Please help!=20 > >Regards,=20 >Anders=20 > =20 > ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2003-05-09 08:05:37
|
Hannu,
It looks like you got everything setup correctly. But the first
argument
to the WrapperSimpleApp which specifies your main class is commented
out:
#wrapper.app.parameter.1=com.myApp.Main
Also, I noticed that you are attempting to run as an NT service before.
I would strongly suggest getting things working in console mode before
attempting to install as a service. It is much easier to work out problems
there as the output is visible in the console.
I was able to work out what was happening because the
WrapperSimpleApp kicked out a clear message :-) But the output
you sent me was from the log file, while the debug output was enabled
for the console. Because of the way the output is triggered in the JVM,
this still makes the debug level output from the JVM visible, but no debug
output is visible from the Wrapper. Try setting the
wrapper.logfile.loglevel
to DEBUG and you will see a big difference in the output. If you have any
future problems. That is the debug output that I need to see to be able
to answer most questions.
Let me know if you have any other problems getting set up.
Cheers,
Leif
Hannu Sehm wrote:
>Hi!
>
>My application stops immediately after starting. Could you say what I have
>done wrong? Here is my logfile and wrapper.conf file.
>
<snip>
|
|
From: Hannu S. <ha...@he...> - 2003-05-09 07:39:56
|
Hi!
My application stops immediately after starting. Could you say what I have
done wrong? Here is my logfile and wrapper.conf file.
STATUS | wrapper | 2003/05/09 10:29:35 | --> Wrapper Started as Service
STATUS | wrapper | 2003/05/09 10:29:36 | Launching a JVM...
INFO | jvm 1 | 2003/05/09 10:29:36 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2003/05/09 10:29:36 | java
org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_parameters]
INFO | jvm 1 | 2003/05/09 10:29:36 |
INFO | jvm 1 | 2003/05/09 10:29:36 | Where:
INFO | jvm 1 | 2003/05/09 10:29:36 | app_class: The fully
qualified class name of the application to run.
INFO | jvm 1 | 2003/05/09 10:29:36 | app_parameters: The parameters
that would normally be passed to the
INFO | jvm 1 | 2003/05/09 10:29:36 | application.
INFO | jvm 1 | 2003/05/09 10:29:36 | Wrapper Manager: JVM #1
INFO | jvm 1 | 2003/05/09 10:29:36 | Wrapper Manager: Registering
shutdown hook
INFO | jvm 1 | 2003/05/09 10:29:36 | Wrapper Manager: Using wrapper
INFO | jvm 1 | 2003/05/09 10:29:36 | Calling native initialization
method.
INFO | jvm 1 | 2003/05/09 10:29:36 | Initializing WrapperManager native
library.
INFO | jvm 1 | 2003/05/09 10:29:36 | Java Executable: C:\Program
Files\MyApp\jre\bin\java.exe
INFO | jvm 1 | 2003/05/09 10:29:36 | Java Version : 1.3.1_01 Java
HotSpot(TM) Client VM
INFO | jvm 1 | 2003/05/09 10:29:36 | Java VM Vendor : Sun Microsystems
Inc.
INFO | jvm 1 | 2003/05/09 10:29:36 |
INFO | jvm 1 | 2003/05/09 10:29:36 | Open socket to wrapper...
INFO | jvm 1 | 2003/05/09 10:29:36 | Opened Socket
INFO | jvm 1 | 2003/05/09 10:29:36 | Send a packet 110 :
X9am2PYChtwpA6dP
INFO | jvm 1 | 2003/05/09 10:29:36 |
handleSocket(Socket[addr=localhost/127.0.0.1,port=1777,localport=2242])
INFO | jvm 1 | 2003/05/09 10:29:36 | Received a packet 112 : 1
INFO | jvm 1 | 2003/05/09 10:29:36 | Wrapper Manager: LowLogLevel from
Wrapper is 1
INFO | jvm 1 | 2003/05/09 10:29:36 | Received a packet 113 : 30
INFO | jvm 1 | 2003/05/09 10:29:36 | Wrapper Manager: PingTimeout from
Wrapper is 30000
INFO | jvm 1 | 2003/05/09 10:29:36 | Received a packet 100 : start
INFO | jvm 1 | 2003/05/09 10:29:36 | calling listener.start()
INFO | jvm 1 | 2003/05/09 10:29:36 | returned from listener.start()
INFO | jvm 1 | 2003/05/09 10:29:36 | Send a packet 106 :
INFO | jvm 1 | 2003/05/09 10:29:36 | All non-daemon threads have
stopped. Exiting.
INFO | jvm 1 | 2003/05/09 10:29:37 | Send a packet 101 : 1
INFO | jvm 1 | 2003/05/09 10:29:37 | Thread, Wrapper-Connection,
handling the shutdown process.
INFO | jvm 1 | 2003/05/09 10:29:37 | calling listener.stop()
INFO | jvm 1 | 2003/05/09 10:29:37 | returned from listener.stop()
INFO | jvm 1 | 2003/05/09 10:29:37 | Send a packet 107 : 0
INFO | jvm 1 | 2003/05/09 10:29:37 | Closing socket.
INFO | jvm 1 | 2003/05/09 10:29:38 | Thread, main, waiting for the JVM
to exit.
INFO | jvm 1 | 2003/05/09 10:29:38 | calling System.exit(0)
STATUS | wrapper | 2003/05/09 10:29:38 | <-- Wrapper Stopped
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper.java.command=../../jre/bin/java
# Java Main class
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=wrapper.jar
wrapper.java.classpath.2=../../lib/hsqldb.jar
wrapper.java.classpath.3=../../lib/oro.jar
wrapper.java.classpath.4=../../lib/log4j.jar
wrapper.java.classpath.5=../../lib/myApp.jar
wrapper.java.classpath.6=../../Orion/mail.jar
wrapper.java.classpath.7=../../Orion/activation.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=
# 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=com.myApp.Main
# Port which the native wrapper code will attempt to connect to
wrapper.port=1777
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# 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=DEBUG
# Log file to use for wrapper output logging.
wrapper.logfile=wrapper.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=ERROR
#********************************************************************
# Wrapper NT 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.ntservice.name=myApp_test
# Display name of the service
wrapper.ntservice.displayname=MyApp Test Service
# Description of the service
wrapper.ntservice.description=Test Wrapper Sample Application Description
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
# Priority at which the service is run. NORMAL, LOW, HIGH, or
# REALTIME
wrapper.ntservice.process_priority=NORMAL
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
|
|
From: Leif M. <le...@ta...> - 2003-05-09 04:39:40
|
Anthony, Early versions of the Wrapper did not used to set the current directory. But the problem was that this made it very difficult to use relative paths when working with the Wrapper. Here is the problem: If you first cd into a C:\myapp\bin directory and then run the Wrapper then your current directory will be C:\myapp\bin and a reference to the wrapper configuration file of ..\conf\wrapper.conf will work correctly. But if your current directory is C:\myapp, and you launch the Wrapper using a reference like bin\Myapp.bat then the above reference to the conf file will fail as the ..\conf\wrapper.conf reference would resolve to C:\conf\wrapper.conf, which is not correct. To make things worse, when you install the wrapper as an NT service, the current working directory will be C:\Windows\service32. For this reason, you pretty much had to use absolute paths with earlier versions of the Wrapper. This unfortunately made it more difficult to install software that used the Wrapper as the installer would have to go through and set all of the absolute paths in the application at install time. This is a common problem to all Windows, UNIX and other applications and it would have been Ok, to force users to follow that standard. But I found it annoying and wanted to fix it. The easiest install program in my book is one where you just unzip an archive file unto the directory of your choice and have everything work! Many applications, work this way no problem but you have to run the application from a specific location otherwise the relative paths all fail to resolve. Originally, I wanted to have a configurable working directory in the wrapper.conf file. But there was a chicken and the egg problem. You need to be able to locate the wrapper.conf file before it can be loaded. And to do that, you have to have a fixed starting point. So I decided to just have the Wrapper binary always force its working directory to be the same as its location. One option that I considered was to have the Wrapper behave as it does now with respect to locating the wrapper.conf file, but then once it was loaded change over to using a working directory configured in the conf file. Bu that seemed like it would just get confusing for users without actually giving any new functionality. The problem there is that you can define properties from the command line as well. And paths in those properties would be using a different base location than that used to locate the wrapper.conf file. For example: Wrapper.exe -c ../conf/wrapper.conf wrapper.java.additional.1=-Dconf.file=conf/wrapper.conf In the end I decided that this is one area where it would be best to limit flexibility and just stick to forcing the location of the working directory. For any decision I could have made, there would always be someone who wanted to do something slightly different . But this functionality is the most flexible in my opinion. It will support any application directory structure that a user may want. The scripts that ship with the wrapper assume a directory structure where the Wrapper binary is located in the bin directory, but there is nothing stopping the user from modifying the scripts so that the Wrapper binary can be located elsewhere. You just have to follow the rule that all relative paths are relative to its new location. The UNIX side works slightly differently than the Windows platform in that the current directory is set by the shell scripts rather than the binary so in that way, they are a little more flexible. If you create an environment variable in your wrapper.conf file with the following value, you can then use that throughout the rest of the config file to set all your other paths. set.APP_HOME=../ wrapper.java.classpath.1=%APP_HOME%/lib/wrapper.jar I think this is a lot less cluttered however: wrapper.java.classpath.1=../lib/wrapper.jar Hope this explanation helps. Let me know if you have any suggestions on improving how this works and I'll give them some thought. Cheers, Leif Anthony Frey wrote: > First off, I must say this is one of the nicest Java service wrappers > I have yet to use. It's flexibility and ease-of-use are unmatched! > Kudos and thanks to Leif and the Wrapper team for making it available. > I think I may be missing something with configuration that I'm hoping > someone has some suggestions for. > > My standard practice has always been to write config files for my Java > applications such that paths are relative to the "home" directory of > the application. I also like to put executables (including Wrapper) in > a "bin" directory. I know Wrapper is designed to always use the > executable directory as the working directory and that relative paths > can be used in wrapper.conf which is great because I can count on it. > > My problem is that all of my non-wrapper.conf config files also need > to be "aware" of the location of the executable and specify relative > paths with a '../' prefix. The solution I've come up with is to add a > "app.home" system property that gets used as the base to all relative > paths throughout my application. This is a little cumbersome though > since this needs to be done everywhere throughout the application. Is > it possible to set the Java process's notion of the current working > directory to this "home" directory or am I missing something else > entirely? > > Thanks for the help, > -Tony |
|
From: Ramachandra, A. <Ram...@Sy...> - 2003-05-09 00:22:15
|
Hi Leif
i upgraded to v3.0.2 and did not encounter the problem.I will do some
more tests and then i'll be fine.
-Thanks
-Arun
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]
Sent: Thursday, May 08, 2003 12:17 PM
To: Wrapper User List
Cc: Ramachandra, Arun; Ryan Shaw
Subject: Re: Other Processes affecting Servicewrapper
Arun,
There have been some improvements with timeout handling since 2.0.9.
Let me know the results with 3.0.2. Also, if you still have the problem then
please enable debug output to the logfile and then send me the area of the
log which includes about 50 lines or so before the JVM restarts. If the
log is
not very large then a full run is best. Usually I can nail down the exact
cause from the information in the debug log file.
Cheers,
Leif
Ramachandra, Arun wrote:
> Hi Leif
> I found we are using version 2.9.
> Let me upgrade to the latest and give it a shot.
> I was getting a message like this:
> INFO | wrapper | 2003/05/08 10:15:28 | Wrapper Process has not
> received any CPU time for 36 seconds. Extending timeouts.
> ERROR | wrapper | 2003/05/08 10:15:28 | JVM exited unexpectedly.
> STATUS | wrapper | 2003/05/08 10:15:35 | Launching a JVM...
> -Thanks
> -Arun
>
|
|
From: Palmer, D. <Dav...@ph...> - 2003-05-08 18:55:12
|
This is what we do... we use
getClass().getResourceAsStream("foo.properties");
to load our properties file from the classpath, therefor we don't have to
worry about the actual locations of said files.
Dunno if this would work in your situation, but it works out nicely for us.
I hope this helps
./dave
> -----Original Message-----
> From: Anthony Frey [mailto:ant...@co...]
> Sent: Thursday, May 08, 2003 1:21 PM
> To: wra...@li...
> Subject: [Wrapper-user] Wrapper's current working directory
>
>
>
> First off, I must say this is one of the nicest Java service
> wrappers I have
> yet to use. It's flexibility and ease-of-use are unmatched!
> Kudos and thanks
> to Leif and the Wrapper team for making it available.
>
> I think I may be missing something with configuration that
> I'm hoping someone
> has some suggestions for.
>
> My standard practice has always been to write config files
> for my Java
> applications such that paths are relative to the "home"
> directory of the
> application. I also like to put executables (including
> Wrapper) in a "bin"
> directory. I know Wrapper is designed to always use the
> executable directory
> as the working directory and that relative paths can be used
> in wrapper.conf
> which is great because I can count on it.
>
> My problem is that all of my non-wrapper.conf config files
> also need to be
> "aware" of the location of the executable and specify
> relative paths with a
> '../' prefix. The solution I've come up with is to add a
> "app.home" system
> property that gets used as the base to all relative paths
> throughout my
> application. This is a little cumbersome though since this
> needs to be done
> everywhere throughout the application. Is it possible to set the Java
> process's notion of the current working directory to this
> "home" directory or
> am I missing something else entirely?
>
> Thanks for the help,
> -Tony
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux
> enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
"The sender believes that this E-mail and any attachments were free of any
harmful and malicious code or defects when sent. This message and its
attachments could have been infected during transmission. By reading the
message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action regarding the code
or such defects. The sender is not liable for any loss or damage arising in
any way from this message or its attachments."
|
|
From: Anthony F. <ant...@co...> - 2003-05-08 17:21:58
|
First off, I must say this is one of the nicest Java service wrappers I have yet to use. It's flexibility and ease-of-use are unmatched! Kudos and thanks to Leif and the Wrapper team for making it available. I think I may be missing something with configuration that I'm hoping someone has some suggestions for. My standard practice has always been to write config files for my Java applications such that paths are relative to the "home" directory of the application. I also like to put executables (including Wrapper) in a "bin" directory. I know Wrapper is designed to always use the executable directory as the working directory and that relative paths can be used in wrapper.conf which is great because I can count on it. My problem is that all of my non-wrapper.conf config files also need to be "aware" of the location of the executable and specify relative paths with a '../' prefix. The solution I've come up with is to add a "app.home" system property that gets used as the base to all relative paths throughout my application. This is a little cumbersome though since this needs to be done everywhere throughout the application. Is it possible to set the Java process's notion of the current working directory to this "home" directory or am I missing something else entirely? Thanks for the help, -Tony |
|
From: Ramachandra, A. <Ram...@Sy...> - 2003-05-08 16:28:51
|
Hi Leif
I found we are using version 2.9.
Let me upgrade to the latest and give it a shot.
I was getting a message like this:
INFO | wrapper | 2003/05/08 10:15:28 | Wrapper Process has not received
any CPU time for 36 seconds. Extending timeouts.
ERROR | wrapper | 2003/05/08 10:15:28 | JVM exited unexpectedly.
STATUS | wrapper | 2003/05/08 10:15:35 | Launching a JVM...
-Thanks
-Arun
-----Original Message-----
From: Leif Mortenson [mailto:le...@ta...]
Sent: Thursday, May 08, 2003 12:00 PM
To: Arun Ramachandra
Cc: Ryan Shaw; Wrapper User List
Subject: Re: Other Processes affecting Servicewrapper
Arun,
What version of the Wrapper are you using? Newer versions of the
Wrapper are able to detect that the CPU is at 100%. Rather than timing
out and restarting the JVM, you will get a message like the following:
jvm 1 | JVM Process has not received any CPU time for 11798 seconds.
Extending timeouts.
wrapper | Wrapper Process has not received any CPU time for 11800 seconds.
Extending timeouts.
The case above was when I had suspended my system for a few hours.
The Wrapper was able to recover without any problems. The warning message
is just that, a warning. If another process takes up 100% of the CPU you
may see one or both of the above messages. But hopefully it would be for
a period of time much shorter than the 3 hours above. :-)
Were you seeing timeouts and JVM restarts or had you just noticed the
note in Troubleshooting guide? I'll take a look at that entry and bring it
up
to date.
Cheers,
Leif
Ryan Shaw wrote:
On Thu, 2003-05-08 at 22:34, Arun Ramachandra wrote:
I have seen in the Troubleshooting section of your website the
following line:
"the Wrapper will think that the JVM is hung when it isn't if
another process is taking 100% of the CPU for longer than 30
seconds. This will result in an entry like the following in your
log file, and the JVM being restarted:"
My question is why is my process being penalised if the
other process is taking up 100% of cpu time?
Secondly is there some way to avoid this?
If another process is taking 100% of CPU, then there is no
CPU left for the JVM. The wrapper has no way of knowing that
the reason the JVM has not pinged it is that the JVM is being
starved of processor power. So, it makes the assumption that
the JVM has hung.
The only way to avoid this is to not let other processes
dominate your server for long periods. If you are running
on unix you could use "nice" to achieve this.
|
|
From: Leif M. <le...@ta...> - 2003-05-08 16:16:40
|
Arun, There have been some improvements with timeout handling since 2.0.9. Let me know the results with 3.0.2. Also, if you still have the problem then please enable debug output to the logfile and then send me the area of the log which includes about 50 lines or so before the JVM restarts. If the log is not very large then a full run is best. Usually I can nail down the exact cause from the information in the debug log file. Cheers, Leif Ramachandra, Arun wrote: > Hi Leif > I found we are using version 2.9. > Let me upgrade to the latest and give it a shot. > I was getting a message like this: > INFO | wrapper | 2003/05/08 10:15:28 | Wrapper Process has not > received any CPU time for 36 seconds. Extending timeouts. > ERROR | wrapper | 2003/05/08 10:15:28 | JVM exited unexpectedly. > STATUS | wrapper | 2003/05/08 10:15:35 | Launching a JVM... > -Thanks > -Arun > |
|
From: Leif M. <le...@ta...> - 2003-05-08 16:11:35
|
Suo,
If the same settings are working on your Win2k box, that makes me
wonder if it is a problem with NT. I'm not sure if there are any differences
in the way NT handles account privileges.
Could you give the program that David posted a try and verify that both
the Wrapper and JVM processes are both running as the intended user?
Most likely they are but it would be nice to confirm.
Cheers,
Leif
Suo Anders wrote:
>Hi Leif, thanks for your reply.
>I've reinstalled the service a number of times and it seems to be ok as far as the user in "log on as" is the one I set in the conf-file.
>I'd like the posibility to see what user the service runs as but it doesn't seem to be possible in NT...
>
>I have tried both ways, G:\ and //server/dir, but it makes no difference.
>Actually, I have a Win2k machine on which it runs fine! But I can't tell for sure what the difference is: the OS or the user privileges! But on the WinNT machine, I do have access to the mapped drive as a "windows user", I can create and delete files on that drive through Explorer. It's just when I run my app as a servive it fails.
>BTW, the jre I'm using for the service is 1.3.1_02.
>
>/Anders
>
>
>-----Ursprungligt meddelande-----
>Från: Leif Mortenson [mailto:le...@ta...]
>Skickat: den 8 maj 2003 13:41
>Till: wra...@li...
>Ämne: Re: [Wrapper-user] Access network directories from NT service!
>
>
>Suo,
>Most people have gotten things working setting up an account.
>
>A few things for you to check.
>When you set the wrapper.ntservice.account and wrapper.ntservice.password
>properties, id you uninstall and then reinstall the service. This is
>important or
>the changes will not take effect. (This is probable ok because you said you
>verified the settings in the control panel.)
>
>You say that the service is started, it is not running as the correct user?
>How are you verifying this? If there was a problem with the user then
>the service would not start. Under XP, you can see the user that a
>service is running as by opening the Task Manager and enabling the
>User Name column. Most services run as SERVICE. Most likely the
>user is the one that is specified in your wrapper.ntservice.account
>property.
>
>If both of the above are true, then what exactly are you trying to do?
>Is the network drive mapped to a local drive. Ie R:/ or something or
>are you accessing the network drive directly? //machine/dir
>If it is the later, try the first? Just an idea, not sure it will make a
>difference.
>
>I only have access to 2000 and XP servers. So I am unable to test NT
>directly. Do you have the ability to test on an XP or 2000 server? There
>is nothing I am doing that is widows-version specific, but who knows...
>
>Cheers,
>Leif
>
>
>Suo Anders wrote:
>
>
>
>>Hi!
>>I have a java app that monitor and reads/deletes files from a directory that is mapped from a UNIX
>>server. I have a user set up with the proper privileges to access the directory. When I run my Java app through the debbugger or as a console app, there is no problem. However, as I install the app as a NT service, it can't access the directory. I use the wrapper.ntservice.account and wrapper.ntservice.password properties of the conf-file to set the user that the service should run as, and looking at the installed service hrough control panel->services, it seems OK. But when I start the service, it still doesn't seem to run as the correct user.
>>I've seen that some other users of the Wrapper have come across problems similar to mine but I haven't found the proper solution!
>>OS is Win NT Server, Wrapper version 3.0.2.
>>Please help!
>>
>>Regards,
>>Anders
>>
>>
|
|
From: Leif M. <le...@ta...> - 2003-05-08 15:59:40
|
Arun, What version of the Wrapper are you using? Newer versions of the Wrapper are able to detect that the CPU is at 100%. Rather than timing out and restarting the JVM, you will get a message like the following: jvm 1 | JVM Process has not received any CPU time for 11798 seconds. Extending timeouts. wrapper | Wrapper Process has not received any CPU time for 11800 seconds. Extending timeouts. The case above was when I had suspended my system for a few hours. The Wrapper was able to recover without any problems. The warning message is just that, a warning. If another process takes up 100% of the CPU you may see one or both of the above messages. But hopefully it would be for a period of time much shorter than the 3 hours above. :-) Were you seeing timeouts and JVM restarts or had you just noticed the note in Troubleshooting guide? I'll take a look at that entry and bring it up to date. Cheers, Leif Ryan Shaw wrote: >On Thu, 2003-05-08 at 22:34, Arun Ramachandra wrote: > > > >>I have seen in the Troubleshooting section of your website the >>following line: >> >>"the Wrapper will think that the JVM is hung when it isn't if >>another process is taking 100% of the CPU for longer than 30 >>seconds. This will result in an entry like the following in your >>log file, and the JVM being restarted:" >> >>My question is why is my process being penalised if the >>other process is taking up 100% of cpu time? >>Secondly is there some way to avoid this? >> >> > >If another process is taking 100% of CPU, then there is no >CPU left for the JVM. The wrapper has no way of knowing that >the reason the JVM has not pinged it is that the JVM is being >starved of processor power. So, it makes the assumption that >the JVM has hung. > >The only way to avoid this is to not let other processes >dominate your server for long periods. If you are running >on unix you could use "nice" to achieve this. > > > |
|
From: David R. <dre...@mo...> - 2003-05-08 14:52:03
|
Hi, Try using procexp from = http://www.sysinternals.com/ntw2k/freeware/procexp.shtml to check what = user a service is running as on NT. Regards, David Resnick MobileSpear Inc. -----Original Message----- From: Suo Anders [mailto:And...@sw...]=20 Sent: Thursday, May 08, 2003 16:41 To: wra...@li... Subject: SV: [Wrapper-user] Access network directories from NT service! Hi Leif, thanks for your reply. I've reinstalled the service a number of times and it seems to be ok as = far as the user in "log on as" is the one I set in the conf-file. I'd like the posibility to see what user the service runs as but it = doesn't seem to be possible in NT... I have tried both ways, G:\ and //server/dir, but it makes no = difference.=20 Actually, I have a Win2k machine on which it runs fine! But I can't tell = for sure what the difference is: the OS or the user privileges! But on = the WinNT machine, I do have access to the mapped drive as a "windows = user", I can create and delete files on that drive through Explorer. = It's just when I run my app as a servive it fails.=20 BTW, the jre I'm using for the service is 1.3.1_02. /Anders -----Ursprungligt meddelande----- Fr=E5n: Leif Mortenson [mailto:le...@ta...] Skickat: den 8 maj 2003 13:41 Till: wra...@li... =C4mne: Re: [Wrapper-user] Access network directories from NT service! Suo, Most people have gotten things working setting up an account. A few things for you to check. When you set the wrapper.ntservice.account and = wrapper.ntservice.password properties, id you uninstall and then reinstall the service. This is=20 important or the changes will not take effect. (This is probable ok because you said = you verified the settings in the control panel.) You say that the service is started, it is not running as the correct = user? How are you verifying this? If there was a problem with the user then the service would not start. Under XP, you can see the user that a service is running as by opening the Task Manager and enabling the User Name column. Most services run as SERVICE. Most likely the user is the one that is specified in your wrapper.ntservice.account property. If both of the above are true, then what exactly are you trying to do? Is the network drive mapped to a local drive. Ie R:/ or something or are you accessing the network drive directly? //machine/dir If it is the later, try the first? Just an idea, not sure it will make = a difference. I only have access to 2000 and XP servers. So I am unable to test NT directly. Do you have the ability to test on an XP or 2000 server? = There is nothing I am doing that is widows-version specific, but who knows... Cheers, Leif Suo Anders wrote: >Hi!=20 >I have a java app that monitor and reads/deletes files from a directory = that is mapped from a UNIX=20 >server. I have a user set up with the proper privileges to access the = directory. When I run my Java app through the debbugger or as a console = app, there is no problem. However, as I install the app as a NT service, = it can't access the directory. I use the wrapper.ntservice.account and = wrapper.ntservice.password properties of the conf-file to set the user = that the service should run as, and looking at the installed service = hrough control panel->services, it seems OK. But when I start the = service, it still doesn't seem to run as the correct user.=20 >I've seen that some other users of the Wrapper have come across = problems similar to mine but I haven't found the proper solution!=20 >OS is Win NT Server, Wrapper version 3.0.2. >Please help!=20 > >Regards,=20 >Anders=20 > =20 > ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Suo A. <And...@sw...> - 2003-05-08 14:41:11
|
Hi Leif, thanks for your reply. I've reinstalled the service a number of times and it seems to be ok as = far as the user in "log on as" is the one I set in the conf-file. I'd like the posibility to see what user the service runs as but it = doesn't seem to be possible in NT... I have tried both ways, G:\ and //server/dir, but it makes no = difference.=20 Actually, I have a Win2k machine on which it runs fine! But I can't tell = for sure what the difference is: the OS or the user privileges! But on = the WinNT machine, I do have access to the mapped drive as a "windows = user", I can create and delete files on that drive through Explorer. = It's just when I run my app as a servive it fails.=20 BTW, the jre I'm using for the service is 1.3.1_02. /Anders -----Ursprungligt meddelande----- Fr=E5n: Leif Mortenson [mailto:le...@ta...] Skickat: den 8 maj 2003 13:41 Till: wra...@li... =C4mne: Re: [Wrapper-user] Access network directories from NT service! Suo, Most people have gotten things working setting up an account. A few things for you to check. When you set the wrapper.ntservice.account and = wrapper.ntservice.password properties, id you uninstall and then reinstall the service. This is=20 important or the changes will not take effect. (This is probable ok because you said = you verified the settings in the control panel.) You say that the service is started, it is not running as the correct = user? How are you verifying this? If there was a problem with the user then the service would not start. Under XP, you can see the user that a service is running as by opening the Task Manager and enabling the User Name column. Most services run as SERVICE. Most likely the user is the one that is specified in your wrapper.ntservice.account property. If both of the above are true, then what exactly are you trying to do? Is the network drive mapped to a local drive. Ie R:/ or something or are you accessing the network drive directly? //machine/dir If it is the later, try the first? Just an idea, not sure it will make = a difference. I only have access to 2000 and XP servers. So I am unable to test NT directly. Do you have the ability to test on an XP or 2000 server? = There is nothing I am doing that is widows-version specific, but who knows... Cheers, Leif Suo Anders wrote: >Hi!=20 >I have a java app that monitor and reads/deletes files from a directory = that is mapped from a UNIX=20 >server. I have a user set up with the proper privileges to access the = directory. When I run my Java app through the debbugger or as a console = app, there is no problem. However, as I install the app as a NT service, = it can't access the directory. I use the wrapper.ntservice.account and = wrapper.ntservice.password properties of the conf-file to set the user = that the service should run as, and looking at the installed service = hrough control panel->services, it seems OK. But when I start the = service, it still doesn't seem to run as the correct user.=20 >I've seen that some other users of the Wrapper have come across = problems similar to mine but I haven't found the proper solution!=20 >OS is Win NT Server, Wrapper version 3.0.2. >Please help!=20 > >Regards,=20 >Anders=20 > =20 > ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2003-05-08 11:40:52
|
Suo, Most people have gotten things working setting up an account. A few things for you to check. When you set the wrapper.ntservice.account and wrapper.ntservice.password properties, id you uninstall and then reinstall the service. This is important or the changes will not take effect. (This is probable ok because you said you verified the settings in the control panel.) You say that the service is started, it is not running as the correct user? How are you verifying this? If there was a problem with the user then the service would not start. Under XP, you can see the user that a service is running as by opening the Task Manager and enabling the User Name column. Most services run as SERVICE. Most likely the user is the one that is specified in your wrapper.ntservice.account property. If both of the above are true, then what exactly are you trying to do? Is the network drive mapped to a local drive. Ie R:/ or something or are you accessing the network drive directly? //machine/dir If it is the later, try the first? Just an idea, not sure it will make a difference. I only have access to 2000 and XP servers. So I am unable to test NT directly. Do you have the ability to test on an XP or 2000 server? There is nothing I am doing that is widows-version specific, but who knows... Cheers, Leif Suo Anders wrote: >Hi! >I have a java app that monitor and reads/deletes files from a directory that is mapped from a UNIX >server. I have a user set up with the proper privileges to access the directory. When I run my Java app through the debbugger or as a console app, there is no problem. However, as I install the app as a NT service, it can't access the directory. I use the wrapper.ntservice.account and wrapper.ntservice.password properties of the conf-file to set the user that the service should run as, and looking at the installed service hrough control panel->services, it seems OK. But when I start the service, it still doesn't seem to run as the correct user. >I've seen that some other users of the Wrapper have come across problems similar to mine but I haven't found the proper solution! >OS is Win NT Server, Wrapper version 3.0.2. >Please help! > >Regards, >Anders > > |
|
From: Suo A. <And...@sw...> - 2003-05-07 10:54:59
|
Hi!=20 I have a java app that monitor and reads/deletes files from a directory = that is mapped from a UNIX=20 server. I have a user set up with the proper privileges to access the = directory. When I run my Java app through the debbugger or as a console = app, there is no problem. However, as I install the app as a NT service, = it can't access the directory. I use the wrapper.ntservice.account and = wrapper.ntservice.password properties of the conf-file to set the user = that the service should run as, and looking at the installed service = hrough control panel->services, it seems OK. But when I start the = service, it still doesn't seem to run as the correct user.=20 I've seen that some other users of the Wrapper have come across problems = similar to mine but I haven't found the proper solution!=20 OS is Win NT Server, Wrapper version 3.0.2. Please help!=20 Regards,=20 Anders=20 |
|
From: Richard E. <rem...@ed...> - 2003-05-06 19:25:02
|
On windows I have the wrapper launching a Java process which in turn launches (forks) a child java process. When the user logs out the top level java process remains but the inner child java process dies (and the higher level java process detects this death and then kills itself). How can I launch a child java process so that it will not die when a CTRL_LOGOFF_EVENT is generated by windows? Richard |
|
From: <San...@DM...> - 2003-05-06 17:18:57
|
I have test code below with the default test application and works fine= . Then I think there is something wrong in my code. Now I know that there is possible pinging a service. Thanks a lot. Santiago Mart=EDn Pascual Email: san...@dm.... Tel=E9fono: 91 567 94 00. Fax: 91 567 94 01. DMR Consulting. Paseo de la Castellana, 141 Edificio Cuzco IV, planta 9. 28046 Madrid. Espa=F1a. http://www.spain.dmr.com = = =20 Leif Mortenson = = =20 <le...@ta...> To: wr= app...@li... = =20 Sent by: cc: = = =20 wra...@li... Subject: Re= : [Wrapper-user] Checking if service is alive = =20 ceforge.net = = =20 = = =20 = = =20 06/05/2003 10:42 = = =20 Please respond to = = =20 wrapper-user = = =20 = = =20 = = =20 There is nothing specific to the Wrapper that should be causing any problems with the creation of sockets. Can you answer a few questions?= 1) What platform / version of java are using? 2) What version of the Wrapper? 3) What is the exception you are getting? (full stack trace) Your cod= e does not display the stack trace. I would modify it to look for one or= more specific exception rather than any exception as that code will mask unrelated problems such as NullPointerExceptions etc. If your p_host variable was null for example you would get a message: "not responding"= 4) Is the code below running in a JVM controlled by the Wrapper, or is the remote machine controlled by the JVM? The only socket related difference between running with and without the= Wrapper is the socket that is being allocated to communicate between the JVM and the Wrapper. It is configured using the wrapper.port property in the wrapper.conf file. Cheers, Leif San...@DM... wrote: >I have a service that launch a java app, sometimes this app could cras= h, >then the service goes down. > >I have another java service that check if some services are alive. Thi= s >service runs code below to check services status: > > private boolean ping(String p_host, String p_port) > { > int count =3D 0; > int portInt =3D Integer.parseInt(p_port); > > m_log.log(m_sCabeceraLogs,"Pinging "+ p_port+ " ..."); > > while (count < 10) { > try { > Socket s1 =3D new Socket(p_host, portInt); > s1.close(); > m_log.log(m_sCabeceraLogs,p_port+ " is running= !"); > break; > } catch (Exception e) { > m_log.log(m_sCabeceraLogs,p_port+ " not respon= ding >.. retrying"); > count++; > } > try { > Thread.currentThread().sleep(1000); > } catch (Exception e) {}; > } > > if (count =3D=3D 10) { > return false; > }else > { > return true; > } > } > >This code works fine this other services, but with services that uses >wrapper, sentence "Socket s1 =3D new Socket(p_host, portInt);" throws = a >exception. > >How can I tell wrapper that accepts this calls? > > > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user = |
|
From: Leif M. <le...@ta...> - 2003-05-06 08:42:55
|
There is nothing specific to the Wrapper that should be causing any
problems with the creation of sockets. Can you answer a few questions?
1) What platform / version of java are using?
2) What version of the Wrapper?
3) What is the exception you are getting? (full stack trace) Your code
does not display the stack trace. I would modify it to look for one or more
specific exception rather than any exception as that code will mask
unrelated problems such as NullPointerExceptions etc. If your p_host
variable was null for example you would get a message: "not responding"
4) Is the code below running in a JVM controlled by the Wrapper,
or is the remote machine controlled by the JVM?
The only socket related difference between running with and without the
Wrapper is the socket that is being allocated to communicate between
the JVM and the Wrapper. It is configured using the wrapper.port
property in the wrapper.conf file.
Cheers,
Leif
San...@DM... wrote:
>I have a service that launch a java app, sometimes this app could crash,
>then the service goes down.
>
>I have another java service that check if some services are alive. This
>service runs code below to check services status:
>
> private boolean ping(String p_host, String p_port)
> {
> int count = 0;
> int portInt = Integer.parseInt(p_port);
>
> m_log.log(m_sCabeceraLogs,"Pinging "+ p_port+ " ...");
>
> while (count < 10) {
> try {
> Socket s1 = new Socket(p_host, portInt);
> s1.close();
> m_log.log(m_sCabeceraLogs,p_port+ " is running!");
> break;
> } catch (Exception e) {
> m_log.log(m_sCabeceraLogs,p_port+ " not responding
>.. retrying");
> count++;
> }
> try {
> Thread.currentThread().sleep(1000);
> } catch (Exception e) {};
> }
>
> if (count == 10) {
> return false;
> }else
> {
> return true;
> }
> }
>
>This code works fine this other services, but with services that uses
>wrapper, sentence "Socket s1 = new Socket(p_host, portInt);" throws a
>exception.
>
>How can I tell wrapper that accepts this calls?
>
>
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|
|
From: <San...@DM...> - 2003-05-06 08:03:28
|
I have a service that launch a java app, sometimes this app could crash,
then the service goes down.
I have another java service that check if some services are alive. This
service runs code below to check services status:
private boolean ping(String p_host, String p_port)
{
int count = 0;
int portInt = Integer.parseInt(p_port);
m_log.log(m_sCabeceraLogs,"Pinging "+ p_port+ " ...");
while (count < 10) {
try {
Socket s1 = new Socket(p_host, portInt);
s1.close();
m_log.log(m_sCabeceraLogs,p_port+ " is running!");
break;
} catch (Exception e) {
m_log.log(m_sCabeceraLogs,p_port+ " not responding
.. retrying");
count++;
}
try {
Thread.currentThread().sleep(1000);
} catch (Exception e) {};
}
if (count == 10) {
return false;
}else
{
return true;
}
}
This code works fine this other services, but with services that uses
wrapper, sentence "Socket s1 = new Socket(p_host, portInt);" throws a
exception.
How can I tell wrapper that accepts this calls?
|
|
From: Leif M. <le...@ta...> - 2003-05-01 02:36:44
|
Most likely the problem is that you have not integrated with the Wrapper correctly. That message normally is displayed when the WrapperManager class has not been initialized correctly. Please go back and reread the integration options: http://wrapper.tanukisoftware.org/doc/english/integrate.html Most likely, the first integration method, using the WrapperSimpleApp helper class will work for you: http://wrapper.tanukisoftware.org/doc/english/integrate-simple-win.html As a side note, to enable debug output in the wrapper. you need to set the log level of either the console or log file output http://wrapper.tanukisoftware.org/doc/english/props-logging.html Cheers, Leif naso taso wrote: >Hi all, > >Thanks a lot for releasing this s/w in public. >I'm trying to load a freeware server Multiserver which >is basically a Java ServerSocket that listens to port >9999 for XML docs from a Flash server. > >However, although the TestWrapper example is loading >OK and I can run My app from command line, I'm having >some problems loading the Multiserver. >When I try to start the Multiserver, the wrapper makes >5 retries and then times out with the message "JVM >didn't respond". > >I have been trying to get some debug info but I can't >find out any more information. > >Did any of you guys have the same problem or now a way >to monitor the discussion with the JVM? If I use >-verbose param for the jvm I don't really see anything >useful. > >Thanks in advance for any answers guys!! > > |
|
From: Leif M. <le...@ta...> - 2003-05-01 01:53:29
|
No problem :-) Let me know if you have any other problems. Cheers, Leif Sue Emery wrote: >Appologies, I didn't read far enough down the existing e-mails (or the >documentation). It still doesn't work properly but I've got over the first >hump. Sue > > |
|
From: Sue E. <sue...@ic...> - 2003-04-30 19:09:28
|
Appologies, I didn't read far enough down the existing e-mails (or the documentation). It still doesn't work properly but I've got over the first hump. Sue -----Original Message----- From: Sue Emery [mailto:sue...@ic...] Sent: Wednesday, April 30, 2003 18:36 To: 'wra...@li...' Subject: Java Service Wrapper will not start my program Windows 2000: I have a java program which works fine on its own but won't work properly with the wrapper, either as a console or service. The program has a main method which starts two new daemon threads. One thread runs many timer tasks, the other waits for incoming snmp traps on port 162. The main method then sleeps for a few seconds in an infinite loop. Running as a console, the program starts OK, creates the new threads and then sleeps OK (I've got lots of logging so I know this is happening). The problem is that after some seconds I get the following messages wrapper | Startup failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | JVM was only running for 31 seconds leading to a failed restart count of 1 It then restarts and the whole process is repeated. If I do CNTL+C I get this wrapper | CTRL-C trapped. Shutting down. wrapper | wrapperStopProcess(0) called. wrapper | Sending stop signal to JVM wrapper | Shutdown failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | <-- Wrapper Stopped There is almost nothing else running on my system - task manager shows the system idle process using 95%+ of CPU. It appears that the wrapper is unable to communicate with my JVM even though it has started it successfully. I assume I have done something stupid but can anyone tell me what? Thanks, Sue Emery |
|
From: Sue E. <sue...@ic...> - 2003-04-30 18:33:50
|
Windows 2000: I have a java program which works fine on its own but won't work properly with the wrapper, either as a console or service. The program has a main method which starts two new daemon threads. One thread runs many timer tasks, the other waits for incoming snmp traps on port 162. The main method then sleeps for a few seconds in an infinite loop. Running as a console, the program starts OK, creates the new threads and then sleeps OK (I've got lots of logging so I know this is happening). The problem is that after some seconds I get the following messages wrapper | Startup failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | JVM was only running for 31 seconds leading to a failed restart count of 1 It then restarts and the whole process is repeated. If I do CNTL+C I get this wrapper | CTRL-C trapped. Shutting down. wrapper | wrapperStopProcess(0) called. wrapper | Sending stop signal to JVM wrapper | Shutdown failed: Timed out waiting for signal from JVM. wrapper | Java Virtual Machine did not exit on request, terminated wrapper | <-- Wrapper Stopped There is almost nothing else running on my system - task manager shows the system idle process using 95%+ of CPU. It appears that the wrapper is unable to communicate with my JVM even though it has started it successfully. I assume I have done something stupid but can anyone tell me what? Thanks, Sue Emery |