1 Reply Latest reply on Sep 20, 2010 2:51 AM by jaikiran pai

    Redeploying war causes Configuration Exception

    Meenakshi Khatri Newbie

      Hello everyone,

       

      We build a war file which we deploy it in the default folder.We dont want to restart jboss to we just over-ride the existing war file.

       

      But whenever we over-ride the war file, we get ClassLoading exceptions. One of the exceptions is given below

       

      BaseClassLoader@1ecc5ef{vfszip:/jboss/server/default/deploy/test.war/} classLoader is not connected to a domain (probably unde
      ployed?) for class org.apache.commons.mail.EmailException
      java.lang.IllegalStateException: BaseClassLoader@1ecc5ef{vfszip:/jboss/server/default/deploy/test.war/} classLoader is not con
      nected to a domain (probably undeployed?) for class org.apache.commons.mail.EmailException
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:793)
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
              at com.idc.publishing.fact_sheet.exception.ExceptionHandler.reportException(ExceptionHandler.java:22)
              at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.reportException(DocxAddedListener.java:83)
              at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.run(DocxAddedListener.java:56)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)

       

      Cannot locate configuration source exception.properties
      org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source exception.properties
          at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:217)
          at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
          at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:142)
          at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:237)
          at com.idc.publishing.fact_sheet.exception.EmailTransporter.<init>(EmailTransporter.java:24)
          at com.idc.publishing.fact_sheet.exception.ExceptionHandler.reportException(ExceptionHandler.java:22)
          at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.reportException(DocxAddedListener.java:83)
          at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.run(DocxAddedListener.java:56)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          at java.lang.Thread.run(Thread.java:619)

       

      After reading some discussions, I came to a point that it looks that jboss has some issues with redeployment of apache related jars and also, with re-loading certain class files.

       

      I am using Jboss 5.1.0-GA.

       

      Can anyone help me to solve this problem / provide me better explanation for this error?

       

      Thanks and Regards,

      Meenakshi

        • 1. Re: Redeploying war causes Configuration Exception
          jaikiran pai Master

          Meenakshi Khatri wrote:

           


           

          Cannot locate configuration source exception.properties
          org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source exception.properties
              at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:217)
              at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
              at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:142)
              at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:237)
              at com.idc.publishing.fact_sheet.exception.EmailTransporter.<init>(EmailTransporter.java:24)
              at com.idc.publishing.fact_sheet.exception.ExceptionHandler.reportException(ExceptionHandler.java:22)
              at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.reportException(DocxAddedListener.java:83)
              at com.idc.publishing.fact_sheet.events.DocxAddedListener$1.run(DocxAddedListener.java:56)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)

           

          Looks like you have a thread running, which tries to read some properties file using an already undeployed classloader. You'll have to go through that com.idc.publishing.* code to see what it is doing and how it's trying to load that properties file.