|
From: Richard E. <rem...@ou...> - 2003-03-06 17:43:44
|
Greetings, I might have missed it in the documentation having just learned of Java Service Wrapper earlier today, but - how can I use the wrapper technology to install a Java application so that it will restart when a machine reboots. In particular for the OSs linux and solaris how can this be done (since I believe that one can set a Windows service to start on system boot). Also, I assume one can use Java Service Wrapper to install and manage more than one application at a time on the same machine. Thanks. Richard |
|
From: Richard E. <rem...@ou...> - 2003-03-06 17:54:26
|
Is there an examples directory containing configured files for such applications like apache tomcat and jboss?? Thanks Richard |
|
From: Richard E. <rem...@ou...> - 2003-03-06 18:13:37
|
Hey, why don't you finish reading all the stuff on the web site before you post to this mailing group. In fact, tomcat and jboss specifically are examples in the integration methods section. Richard Richard Emberson wrote: > Is there an examples directory containing configured files for such > applications like > apache tomcat and jboss?? > > Thanks > > Richard > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Richard E. <rem...@ou...> - 2003-03-06 23:38:32
|
I was trying to see if I could get a little test program of mine to be restarted if it called System.exit(0) and I noted that one had to have the property: wrapper.disable_shutdown_hook=TRUE Ok, but this did not work (and the testwrapper when System.exit(0) is called also simply stops ... no restart). So I looked through the code and noticed that the property the WrapperManager.java is trying to read is: wrapper.disable_shutdownm_hook not wrapper.disable_shutdown_hook Is there a reason for this??? Did it ever work??? Thanks. Richard |
|
From: Leif M. <le...@ta...> - 2003-03-07 02:15:44
|
Richard,
Thanks for finding and tracking this down. I am not sure how this
got broken. It was working
correctly in the last release. Looking at CVS, it was Ok before the
package move and broken
after. Most likely it was a result of accidentally hitting a key while
looking at the code....
I tested the majority of this feature by running with Java 1.2 which
always has the shutdown
hook disabled, but did not test the actual property... Sorry about that.
The fix has been checked into CVS, so you can either check out the
code from CVS or
make the change in your copy of the code and rebuild the jar. The fix
will be in the 3.0.1
release.
Cheers,
Leif
Richard Emberson wrote:
>I was trying to see if I could get a little test program of mine to be restarted
>if it called System.exit(0)
>and I noted that one had to have the property:
>
>wrapper.disable_shutdown_hook=TRUE
>
>Ok, but this did not work (and the testwrapper when System.exit(0) is called
>also simply stops ...
>no restart). So I looked through the code and noticed that the property the
>WrapperManager.java
>is trying to read is:
>
>wrapper.disable_shutdownm_hook
>
>not
>
>wrapper.disable_shutdown_hook
>
>Is there a reason for this???
>
>Did it ever work???
>
>Thanks.
>
>Richard
>
>
|
|
From: Leif M. <le...@ta...> - 2003-03-07 01:57:32
|
Richard Emberson wrote: >Hey, why don't you finish reading all the stuff on the web site before you >post to this >mailing group. In fact, tomcat and jboss specifically are examples in the >integration >methods section. > No fair chewing yourself out for not reading the documentation. That's supposed to be my job. :-) Cheers, Leif |
|
From: Richard E. <rem...@ou...> - 2003-03-28 19:39:35
|
I've got a couple of applications I wrap each with its own Java Service Wrapper. One such application is JBoss and another is a large java application we have written. In each case when the wrapper is requested to stop the application (on both windows and linux) I get the following error message in the wrapper log: ERROR | wrapper | 2003/03/27 16:11:55 | JVM exited unexpectedly while stopping the application. STATUS | wrapper | 2003/03/26 08:52:12 | <-- Wrapper Stopped Any thoughts? Also, on linux the JBoss successful shutdown message "Shutdown complete" ends up in JBoss' apache log4j log but on windows the JBoss shutdown message ends up in the wrapper log. Again, any thoughts? Richard |
|
From: Richard E. <rem...@ou...> - 2003-04-12 21:46:47
|
On windows I get the following message in the wrapper log after I request the wrapper as a windows service to be stopped. ERROR | wrapper | <date> | JVM exited unexpectedly while stopping the application. The call I make to stop the wrapper as a service is (for example): net stop "My Service Name" The problem is that my Java program has a Shutdown hook and it is NOT being called. How do I stop the wrapper service so that Shutdown hooks execute? Thanks. Richard |
|
From: Leif M. <le...@ta...> - 2003-04-13 03:58:11
|
Richard,
Sorry. It looks like I somehow missed your post on 3/29.
Richard Emberson wrote:
>On windows I get the following message in the wrapper log after I request the
>wrapper as a windows service to be stopped.
>
>ERROR | wrapper | <date> | JVM exited unexpectedly while stopping the
>application.
>
>The call I make to stop the wrapper as a service is (for example):
>
>net stop "My Service Name"
>
From what you posted, I can't give you an exact cause. Could you please
enable debug logging to the file and then post the resulting log file of
a single
run on your application. That should give me the clues that I need to
give you
an answer.
>The problem is that my Java program has a Shutdown hook and it is NOT being
>called.
>How do I stop the wrapper service so that Shutdown hooks execute?
>
That would be strange. I assume you are using at least Java 1.3,
otherwise you
would ot be able to register your shutdown hook in the first place. The
above
debug log output may give me further clues.
In your other mail, you also mentioned a "Shutdown complete" message
sometimes showing up in your wrapper.log and sometimes in the log4j
log file. Is that a message from your application? I'll take a look a look
at the log when you send it and see if I have any ideas here as well.
Cheers,
Leif
|
|
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 |