|
From: Hickey, T. (INTERN) <Tre...@si...> - 2012-04-20 15:42:58
|
I also read somewhere on the Java Service Wrapper website that their is not support for runnable JARs. http://wrapper.tanukisoftware.com/doc/english/faq.html#2 My Runnable JAR includes about 7 other JAR files its dependent on. Will I have to include a reference to everyone of them? Sincerely, Trever Hickey ________________________________ From: Christian Mueller [mailto:chr...@ta...] Sent: Thursday, April 19, 2012 8:50 PM To: wra...@li... Subject: Re: [Wrapper-user] FW: Advice on configuring the Java Service Wrapper for I/O heavy application Hello Trever, A java.lang.ClassNotFoundException means that the JVM didn't find the wrapper.jar file on the class path. could you please verify that the jar file is added correctly to the class path? >From your first mail, I can see that you have the following setting: wrapper.java.classpath.2=../lib/wrapper.jar Furthermore, you need to add your jar file also to the classpath: wrapper.java.classpath.3=./CenturaDataCollectionProgram.jar Lastly, the name of your main class is commented out: #wrapper.app.parameter.1=CenturaDataCollectionProgram.Program If that's the correct name of your main class, please remove the comments. Hope this information helps you out. Cheers, Christian On Fri, Apr 20, 2012 at 1:45 AM, Hickey, Trever (INTERN) <Tre...@si...<mailto:Tre...@si...>> wrote: Hello again, I tried your solution about removing the line, and instead I got this error, STATUS | wrapper | 2012/04/19 09:41:19 | Launching a JVM... INFO | jvm 5 | 2012/04/19 09:41:19 | java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/test/WrapperSimpleApp INFO | jvm 5 | 2012/04/19 09:41:19 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.test.WrapperSimpleApp INFO | jvm 5 | 2012/04/19 09:41:19 | at java.net.URLClassLoader$1.run(Unknown Source) INFO | jvm 5 | 2012/04/19 09:41:19 | at java.security.AccessController.doPrivileged(Native Method) INFO | jvm 5 | 2012/04/19 09:41:19 | at java.net.URLClassLoader.findClass(Unknown Source) INFO | jvm 5 | 2012/04/19 09:41:19 | at java.lang.ClassLoader.loadClass(Unknown Source) INFO | jvm 5 | 2012/04/19 09:41:19 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) INFO | jvm 5 | 2012/04/19 09:41:19 | at java.lang.ClassLoader.loadClass(Unknown Source) INFO | jvm 5 | 2012/04/19 09:41:19 | Could not find the main class: org.tanukisoftware.wrapper.test.WrapperSimpleApp. Program will exit. ERROR | wrapper | 2012/04/19 09:41:19 | JVM exited while loading the application. FATAL | wrapper | 2012/04/19 09:41:19 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. FATAL | wrapper | 2012/04/19 09:41:19 | There may be a configuration problem: please check the logs. STATUS | wrapper | 2012/04/19 09:41:19 | <-- Wrapper Stopped Now it seems like the program is not recognizing my program at all. My program is stored in an executable JAR file, so wouldn't I need this line wrapper.java.additional.2= -jar "./CenturaDataCollectionProgram.jar" to execute my program? Sincerely, Trever Hickey ________________________________ From: Christian Mueller [mailto:chr...@ta...<mailto:chr...@ta...>] Sent: Thursday, April 12, 2012 1:42 AM To: wra...@li...<mailto:wra...@li...> Subject: Re: [Wrapper-user] FW: Advice on configuring the Java Service Wrapper for I/O heavy application 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...<mailto: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 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 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...<mailto: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...<mailto:Wra...@li...> https://lists.sourceforge.net/lists/listinfo/wrapper-user 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...<mailto:in...@si...>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...<mailto:Wra...@li...> https://lists.sourceforge.net/lists/listinfo/wrapper-user 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... if you need assistance. |