|
From: Christian M. <chr...@ta...> - 2012-04-12 08:42:27
|
Hello Trever, thank you for your mail. The reason, your JVM stops after 30 seconds is basically because of a small misconfiguration. Please get rid of the following line in your conf file: wrapper.java.additional.2= -jar "./CenturaDataCollectionProgram.jar" Actually, with this line you kind of intercept the logic of how the JVM will interpret the command line.... Hope this helps you out. Best Regards, Christian On Thu, Apr 12, 2012 at 4:27 AM, Hickey, Trever (INTERN) < Tre...@si...> wrote: > Hi, > > This is my first time trying to post here, so here it goes. > > I am trying to turn my Java Application into a Windows service using > Simple Server App class. > > I am using > > Java Service Wrapper Community Edition 32-bit 3.5.14 > Copyright (C) 1999-2011 Tanuki Software, Ltd. All Rights Reserved. > *http://wrapper.tanukisoftware.com*<http://wrapper.tanukisoftware.com> > > on Windows XP SP 3. > > I have also included my log file and conf file. > > The errors I think it most likely relates to are > ERROR | wrapper | 2012/04/11 11:37:40 | Startup failed: Timed out > waiting for a signal from the JVM. > ADVICE | wrapper | 2012/04/11 11:37:40 | > ADVICE | wrapper | 2012/04/11 11:37:40 | > ------------------------------------------------------------------------ > ADVICE | wrapper | 2012/04/11 11:37:40 | Advice: > ADVICE | wrapper | 2012/04/11 11:37:40 | The Wrapper consists of a native > component as well as a set of classes > ADVICE | wrapper | 2012/04/11 11:37:40 | which run within the JVM that it > launches. The Java component of the > ADVICE | wrapper | 2012/04/11 11:37:40 | Wrapper must be initialized > promptly after the JVM is launched or the > ADVICE | wrapper | 2012/04/11 11:37:40 | Wrapper will timeout, as just > happened. Most likely the main class > ADVICE | wrapper | 2012/04/11 11:37:40 | specified in the Wrapper > configuration file is not correctly initializing > ADVICE | wrapper | 2012/04/11 11:37:40 | the Wrapper classes: > ADVICE | wrapper | 2012/04/11 11:37:40 | > org.tanukisoftware.wrapper.test.WrapperSimpleApp > ADVICE | wrapper | 2012/04/11 11:37:40 | While it is possible to do so > manually, the Wrapper ships with helper > ADVICE | wrapper | 2012/04/11 11:37:40 | classes to make this > initialization processes automatic. > ADVICE | wrapper | 2012/04/11 11:37:40 | Please review the integration > section of the Wrapper's documentation > ADVICE | wrapper | 2012/04/11 11:37:40 | for the various methods which > can be employed to launch an application > ADVICE | wrapper | 2012/04/11 11:37:40 | within the Wrapper: > ADVICE | wrapper | 2012/04/11 11:37:40 | * > http://wrapper.tanukisoftware.com/doc/english/integrate.html*<http://wrapper.tanukisoftware.com/doc/english/integrate.html> > ADVICE | wrapper | 2012/04/11 11:37:40 | > ------------------------------------------------------------------------ > ADVICE | wrapper | 2012/04/11 11:37:40 | > > So far it looks like my application starts correctly, but terminates after > about 30 seconds when it then opens a new JVM and repeats for 4 more times. > > I believe this might be one of two issues. One my application stays > constantly within my main method and doesn't exit out. I think there are a > couple of parameters that can be set to handle this, but I haven't had much > luck. > > Second idea is my application is very I/O heavy. My program is constantly > collecting data from a tool [using a special communication protocol] and > writing it to a log file. Could the JVM be timing out because of the heavy > I/O and if so, is their a way around this so my program can still be a > Windows Service? > > If anyone has any advice for handling this type of error I would > appreciate it. > > Thank you, > > Trever > > > This communication and any files or attachments transmitted with it may > contain information that is copyrighted or confidential and exempt from > disclosure under applicable law. It is intended solely for the use of the > individual or the entity to which it is addressed. > If you are not the intended recipient, you are hereby notified that any > use, dissemination, or copying of this communication is strictly > prohibited. > If you have received this communication in error, please notify us at once > so that we may take the appropriate action and avoid troubling you further. > Thank you for your cooperation. Please contact your local IT staff or > email in...@si... <in...@si...?subject=Disclaimer> if you > need assistance. > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |