|
From: tweety123 <the...@ya...> - 2006-08-08 11:53:36
|
I wrote a sample program which uses Java Service Wrapper. But it's not being listed as a Service in the list of Windows' Services. Any ideas why? Thanks. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5704844 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: Andreas W. <And...@ag...> - 2006-08-08 13:57:01
|
Hi tweety123, did you install it as a service?=20 Please refer to = http://wrapper.tanukisoftware.org/doc/english/launch-win.html#service. Please read the very good documentation before posting questions to the = forum that are answered there in detail. -Andreas=20 -----Original Message----- From: wra...@li... = [mailto:wra...@li...] On Behalf Of = tweety123 Sent: Dienstag, 8. August 2006 13:54 To: wra...@li... Subject: [Wrapper-user] Wrapper service is not being listed in the list = of services I wrote a sample program which uses Java Service Wrapper. But it's not = being listed as a Service in the list of Windows' Services. Any ideas = why? Thanks. -- View this message in context: = http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-= services-tf2072176.html#a5704844 Sent from the Java Service Wrapper forum at Nabble.com. -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: tweety123 <the...@ya...> - 2006-08-09 06:56:39
|
Hi,
I run my App in Eclipse IDE. My App is in a package called Test & the dir
structure is like this:
D:\eclipse\workspace\Workspace1\Test\Test
where the first 'Test' is the project name & the second 'Test' is the
package name. Following the instructions in the page ("
http://wrapper.tanukisoftware.org/doc/english/launch-win.html ") 'Launching
your application (Win32)' , I created a 'bin' dir under the 'Test' package
dir. Then I copied the files App.bat, InstallApp-NT.bat, UninstallApp-NT.bat
& wrapper.exe to this 'bin' dir. After that, as said in the page, I replaced
the word 'App' in the names of the batch files to 'JSWrapper' (where
JSWrapper is the name of my class that implements WrapperListener). I also
created a conf dir under 'Test' package dir & put 'wrapper.conf' in it. I
haven't done any changes to this conf file. Also, in the JSWrapper class
(which implements WrapperListener), I've implemented the 'start()', 'stop()'
& 'controlEvent()' classes. Is this all I need to do to use JSWrapper to run
the java program as a service or is there more to it? I ran the JSWrapper
application using eclipse & also ran 'InstallApp-NT.bat'. Am able to see
'Test Wrapper Application' service running, but am unable to start it. Am I
doing things right? Please guide me.
Thanks.
--
View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5720805
Sent from the Java Service Wrapper forum at Nabble.com.
|
|
From: tweety123 <the...@ya...> - 2006-08-09 13:52:42
|
When I run JSWrapper.bat (i.e. App.bat renamed), I get the error : wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | java.lang.NoClassDefFoundError: JSWrapper jvm 1 | Exception in thread "main" wrapper | JVM exited while loading the application. This' my folder structire: Under 'Test' project folder, I have put: 1. the bin folder which contains the batch files 2. conf folder containing wrapper.conf 3. the class, java file which implements WrapperListener class. Is there anything wrong with the directory structure? -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5726193 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: tweety123 <the...@ya...> - 2006-08-10 06:52:30
|
Hi, That problem got solved. Now am able to install the application as a service. But when I try to start the Application i.e. service, I get the error 'Error 1053: The service did not respond to the start or control request in a timely fashion'. Any idea why this' happening? Thanks. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5739230 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: tweety123 <the...@ya...> - 2006-08-10 08:21:26
|
Hi , the error is no more there. I successfully started the App as a service! Thanks to both Leif & Andreas! -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5740286 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: Leif M. <le...@ta...> - 2006-08-10 09:13:47
|
The process with services is: 1) always to get things working when running as a console app first. 2) install as a service and run. If there are any problems look in the wrapper.log file for the cause. If not obvious, set wrapper.debug=true and try again. 3) Most problems are caused by environment differences. The service is run as the SYSTEM user by default. Make sure the PATH and/or JAVA_HOME environment variables are defined correctly if used. Cheers, Leif tweety123 wrote: > Hi, > > That problem got solved. Now am able to install the application as a > service. But when I try to start the Application i.e. service, I get the > error 'Error 1053: The service did not respond to the start or control > request in a timely fashion'. Any idea why this' happening? > > Thanks. > > |
|
From: Leif M. <le...@ta...> - 2006-08-09 02:16:26
|
When you run the install batch file what output are you seeing? If you have the services control panel open before installing the service, you may have to do a refresh (F5) to update the list. Cheers, Leif tweety123 wrote: > I wrote a sample program which uses Java Service Wrapper. But it's not being > listed as a Service in the list of Windows' Services. Any ideas why? > > Thanks. > > |
|
From: tweety123 <the...@ya...> - 2006-08-09 10:10:32
|
Also am unable to confirm that the service running is "my" application & not the test application. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5723000 Sent from the Java Service Wrapper forum at Nabble.com. |
|
From: Leif M. <le...@ta...> - 2006-08-09 23:50:52
|
Andreas showed you this page, which shows how to install a working application as a service: http://wrapper.tanukisoftware.org/doc/english/launch-win.html#service Before you do so however, you need to be getting it working as a standalone console application. See this page: http://wrapper.tanukisoftware.org/doc/english/introduction.html It looks like you are attempting to use the "ADVANCED" integration method 3 to get running. Please don't until you understand Eclipse, Java, and the Wrapper a little bit more. You will only cause yourself headaches. Please start out by using integration method #1 to get up and running. Read over that page thoroughly and then post back if you have any questions. The problem you are running into below is with your classpath. It is not finding your classes. You most likely do not want to be placing your wrapper files in your package however. Cheers, Leif tweety123 wrote: > When I run JSWrapper.bat (i.e. App.bat renamed), I get the error : > > wrapper | --> Wrapper Started as Console > wrapper | Launching a JVM... > jvm 1 | java.lang.NoClassDefFoundError: JSWrapper > jvm 1 | Exception in thread "main" > wrapper | JVM exited while loading the application. > > > This' my folder structire: > Under 'Test' project folder, I have put: > 1. the bin folder which contains the batch files > 2. conf folder containing wrapper.conf > 3. the class, java file which implements WrapperListener class. > > Is there anything wrong with the directory structure? > > |
|
From: tweety123 <the...@ya...> - 2006-08-10 05:27:33
|
Hi Leif, Thanks for your patient & elaborate reply. Yes, I did go through the page pointed out by Andreas. It says "Simply copy the following 3 batch files from the Wrapper distribution into the bin directory of your application." Actually there is no (by default) 'bin' dir in my application & I wasn't sure where to create one. Any idea on where to create 'bin' dir in the application? Yes, am trying to use 'advanced' integration method i.e. method #3. I'll try Integration method #1 first as you suggested. I successfully ran my application as a console application. Then only I proceeded with installing it as a service. Thanks. -- View this message in context: http://www.nabble.com/Wrapper-service-is-not-being-listed-in-the-list-of-services-tf2072176.html#a5738540 Sent from the Java Service Wrapper forum at Nabble.com. |