|
From: Andrew-X G. <and...@db...> - 2010-04-09 11:45:46
|
Well, having set the logging level, I can see my -D argument as part of the command line. However, when I do a System.getProperties().list(System.out), my property doesn't show up there. I wrote a simple test class which instantiates my class ( new myClass() ), and the property showed up just fine. SO, It doesn't seem to be JSW at all but rather the "parent" class loading my object, and how it does this. Unfortunately I can't get at the source code so it's off to help support. I have a vague, half-assed theory about classloading issues at this point. Anyway, thank you guys for taking the time to help me out - Andrew -----Original Message----- From: Andrew-X Griffin <and...@db...> [mailto:Andrew-X Griffin <and...@db...>] Sent: Friday, April 09, 2010 9:27 AM To: wra...@li... Subject: Re: [Wrapper-user] Antw: System.getProperty not working? Thanks gents - We do have some gaps in the number (because we will be using .conf file inclusions quite a bit, and we can't expect the implementors to know which numbers have used) so we have specified the wrapper.ignore_sequence_gaps=TRUE parameter. I will try the log level idea, though, that will be helpful. -----Original Message----- From: le...@ta... [mailto:le...@ta...] Sent: Friday, April 09, 2010 12:01 AM To: wra...@li... Subject: Re: [Wrapper-user] Antw: System.getProperty not working? Andrew, As Hubert said, by default, the wrapper.java.additional.N properties need to be consecutive. However, it is possible to enable gaps with the wrapper.ignore_sequence_gaps property, added in version 3.3.6 http://wrapper.tanukisoftware.org/doc/english/prop-java-additional-n.html http://wrapper.tanukisoftware.org/doc/english/prop-ignore-sequence-gaps.ht ml In either case, you can verify that you have set up the properties correctly by setting the wrapper.java.command.loglevel=INFO property and rerunning your application. This will cause the full Java command line to be included in the wrapper.log file: http://wrapper.tanukisoftware.org/doc/english/prop-java-command-loglevel.h tml If this does not show you the problem, please send me your wrapper.conf file along with the top of your wrapper.log file showing the above command line output. Cheers, Leif On Fri, Apr 9, 2010 at 4:42 AM, Hubert Felber <Hub...@ab...> wrote: > Is the order of parameters correct? Don't leave a gap. > With a process viewer check the command line parameters of the created > java child process. > Hubert > >>>> Andrew-X Griffin 08.04.10 19.48 Uhr >>> > Hi all - > > I'm struggling with something seemingly simple. In my .conf file, I > specify the following VM parameter: > > wrapper.java.additional.30=-Dalert.monitor.client.config=myClient.prop > erti > es > > But the line System.getProperty("alert.monitor.client.config"); always > returns null. > > The parameter number is unique, for what it's worth. I am using the > WrapperSimpleApp implementation, version 3.3.6. > > Any help is greatly appreciated - > > Andrew -------------------------------------------------------------------------- ---- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures. -------------------------------------------------------------------------- ---- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures. |