User: starksm 
  Date: 01/05/23 11:12:46

  Modified:    src/main/org/jboss/deployment J2eeDeployer.java
  Log:
  Print all of the exception stack traces caught during application startup
  
  Revision  Changes    Path
  1.29      +7 -5      jboss/src/main/org/jboss/deployment/J2eeDeployer.java
  
  Index: J2eeDeployer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/J2eeDeployer.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- J2eeDeployer.java 2001/05/23 08:27:11     1.28
  +++ J2eeDeployer.java 2001/05/23 18:12:46     1.29
  @@ -71,7 +71,7 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Schulze</a>
   *   @author Toby Allsopp ([EMAIL PROTECTED])
   *   @author [EMAIL PROTECTED]
  -*   @version $Revision: 1.28 $
  +*   @version $Revision: 1.29 $
   */
   public class J2eeDeployer 
   extends ServiceMBeanSupport
  @@ -537,9 +537,10 @@
                  Thread.currentThread().setContextClassLoader(appCl);
              }
          }
  -       catch (MBeanException _mbe) {
  +       catch (MBeanException e) {
              log.error("Starting "+moduleName+" failed!");
  -           throw new J2eeDeploymentException("Error while starting "+moduleName+": 
" + _mbe.getTargetException().getMessage(), _mbe.getTargetException());
  +           e.getTargetException().printStackTrace();
  +           throw new J2eeDeploymentException("Error while starting "+moduleName+": 
" + e.getTargetException().getMessage(), e.getTargetException());
          }
          catch (RuntimeErrorException e) {
              log.error("Starting "+moduleName+" failed!");
  @@ -551,9 +552,10 @@
              e.getTargetException().printStackTrace();
              throw new J2eeDeploymentException("Error while starting "+moduleName+": 
" + e.getTargetException().getMessage(), e.getTargetException());
          }
  -       catch (JMException _jme) {
  +       catch (JMException e) {
              log.error("Starting failed!");
  -           throw new J2eeDeploymentException("Fatal error while interacting with 
deployer MBeans... " + _jme.getMessage());
  +           e.printStackTrace();
  +           throw new J2eeDeploymentException("Fatal error while interacting with 
deployer MBeans... " + e.getMessage());
          }
          finally {
              Thread.currentThread().setContextClassLoader(oldCl);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to