User: jules_gosnell Date: 02/02/01 16:56:26 Modified: jetty/src/main/org/jboss/jetty JettyService.java Log: fix my devel target add calls to super() in JettyService() so that we [de]register() properly with MainDeployer. Revision Changes Path 1.40 +9 -5 contrib/jetty/src/main/org/jboss/jetty/JettyService.java Index: JettyService.java =================================================================== RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JettyService.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- JettyService.java 2002/02/01 00:32:24 1.39 +++ JettyService.java 2002/02/02 00:56:26 1.40 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: JettyService.java,v 1.39 2002/02/01 00:32:24 jules_gosnell Exp $ +// $Id: JettyService.java,v 1.40 2002/02/02 00:56:26 jules_gosnell Exp $ //------------------------------------------------------------------------------ @@ -33,7 +33,7 @@ * A service to launch jetty from JMX. * * @author <a href="mailto:[EMAIL PROTECTED]">Julian Gosnell</a> - * @version $Revision: 1.39 $ + * @version $Revision: 1.40 $ */ // NOTES @@ -56,6 +56,7 @@ public JettyService() { + super(); // moved this from initialise-time to construct-time to ensure // that logging models are connected before configure-time (via // MLET file) which is done before initialise-time. @@ -209,18 +210,19 @@ public void startService() - throws Exception { + super.startService(); + if (!isInitialised()) { - try {ensureService();} catch (Exception e) {e.printStackTrace();} + try {ensureService();} catch (Exception e) {e.printStackTrace();} // TODO } else _log.warn("Jetty has already been initialised"); if (!isStarted()) { - _jetty.start(); + try{_jetty.start();} catch (Exception e){e.printStackTrace();} // TODO _started=true; } else @@ -230,6 +232,8 @@ public void stopService() { + super.stopService(); + if (!isStopped()) { try
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development