User: jules_gosnell Date: 01/12/03 17:14:11 Modified: jetty/src/main/org/jboss/jetty JBossWebApplicationContext.java Jetty.java Log: this should fix ENC setup for good. Revision Changes Path 1.7 +20 -1 contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java Index: JBossWebApplicationContext.java =================================================================== RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JBossWebApplicationContext.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- JBossWebApplicationContext.java 2001/12/03 04:15:51 1.6 +++ JBossWebApplicationContext.java 2001/12/04 01:14:11 1.7 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: JBossWebApplicationContext.java,v 1.6 2001/12/03 04:15:51 starksm Exp $ +// $Id: JBossWebApplicationContext.java,v 1.7 2001/12/04 01:14:11 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... @@ -243,5 +243,24 @@ String path=getClass().getClassLoader().getResource(resource).toString(); // lose initial "jar:file:" and final "!/..." return path.substring("jar:file:".length(),path.length()-(resource.length()+2)); + } + + protected void + setUpENC() + { + _log.info("CLASSLOADER: "+Thread.currentThread().getContextClassLoader()); + + try + { + _log.info("setting up ENC..."); + _descriptorParser.parseWebAppDescriptors(_webApp.getClassLoader(), + _webApp.getWebApp(), + _webApp.getJbossWeb()); + _log.info("setting up ENC succeeded"); + } + catch (Exception e) + { + _log.error("ERROR: setting up ENC failed"); + } } } 1.27 +2 -4 contrib/jetty/src/main/org/jboss/jetty/Jetty.java Index: Jetty.java =================================================================== RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/Jetty.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- Jetty.java 2001/12/03 00:28:45 1.26 +++ Jetty.java 2001/12/04 01:14:11 1.27 @@ -5,7 +5,7 @@ * See terms of license at gnu.org. */ -// $Id: Jetty.java,v 1.26 2001/12/03 00:28:45 jules_gosnell Exp $ +// $Id: Jetty.java,v 1.27 2001/12/04 01:14:11 jules_gosnell Exp $ // A Jetty HttpServer with the interface expected by JBoss' // J2EEDeployer... @@ -31,7 +31,7 @@ * * @author <a href="mailto:[EMAIL PROTECTED]">Julian Gosnell</a> * @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>. - * @version $Revision: 1.26 $ + * @version $Revision: 1.27 $ * * <p><b>Revisions:</b> * @@ -223,8 +223,6 @@ } // finally start the app - _log.info("setting up ENC"); - descriptorParser.parseWebAppDescriptors(wa.getClassLoader(), wa.getWebApp(), wa.getJbossWeb()); app.start(); // keep track of deployed contexts for undeployment
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development