7 Replies Latest reply on Dec 9, 2008 10:34 AM by Ales Justin

    Wrong exception handling while metadata scaning

    Tomaz Cerar Master

      Hi,

      I have .ear archive where I have war and some jars. Application itself is written in seam.

      When trying to port to jboss 5 from 4.2 I got an ClassNotFoundException while it tries to read metadata of ear.
      I figured out that class that was "missing" was in one jar file that was not listed in application.xml
      The class itself is an MDB and I dont need it to load...
      If I add jar to application.xml as ejb module it works.

      If as 5 is more strict about deployment archive it should at least throw more accurate exception.

      stacktrace:

      19:53:49,306 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      vfszip:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear -> java.lang.ClassNotFoundException: si.banka_koper.jms.MailProcessor from BaseClassLoader@1b939d3{VFSClassLoaderPolicy@1836525{name=vfszip:/C:/development/tools/jboss-5.0.
      0.GA/server/default/deploy/BankaIN.ear domain=ClassLoaderDomain@d53d82{name=seam.jboss.org:loader=BIN parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@128edf2{DefaultDomain}} roots=[MemoryContextHandler@23436655[path= context=vfsmemory://5
      c4o5k4t-t99uwh-fohhejk4-1-fohhext1-23 real=vfsmemory://5c4o5k4t-t99uwh-fohhejk4-1-fohhext1-23], DelegatingHandler@4394287[path=BankaIN.ear/lib/bankain-commons-2.1.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:
      /C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/lib/bankain-commons-2.1.jar], DelegatingHandler@1483639[path=BankaIN.ear/lib/itext.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/devel
      opment/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/lib/itext.jar], DelegatingHandler@4581647[path=BankaIN.ear/lib/jboss-el.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5
      .0.0.GA/server/default/deploy/BankaIN.ear/lib/jboss-el.jar], DelegatingHandler@29886762[path=BankaIN.ear/lib/joda-time.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/
      default/deploy/BankaIN.ear/lib/joda-time.jar], DelegatingHandler@30518135[path=BankaIN.ear/lib/jsf-facelets.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/dep
      loy/BankaIN.ear/lib/jsf-facelets.jar], DelegatingHandler@5256823[path=BankaIN.ear/lib/oscache-2.4.1.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/Bank
      aIN.ear/lib/oscache-2.4.1.jar], DelegatingHandler@2607634[path=BankaIN.ear/lib/richfaces-api.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear
      /lib/richfaces-api.jar], DelegatingHandler@4430647[path=BankaIN.ear/lib/richfaces-impl.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/lib/r
      ichfaces-impl.jar], DelegatingHandler@8604807[path=BankaIN.ear/lib/richfaces-ui.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/lib/richface
      s-ui.jar], DelegatingHandler@1403839[path=BankaIN.ear/lib/ws-bankaServer-stubs-2.1.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/lib/ws-ba
      nkaServer-stubs-2.1.jar], DelegatingHandler@5570831[path=BankaIN.ear context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear], DelegatingHandler@1209978
      4[path=BankaIN.ear/BankaIN.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/BankaIN.jar], DelegatingHandler@21213438[path= context=file:/C:/d
      evelopment/tools/jboss-5.0.0.GA/server/default/deployers/seam.deployer/lib-int/jboss-seam-int-jbossas.jar real=vfszip:/C:/development/tools/jboss-5.0.0.GA/server/default/deployers/seam.deployer/lib-int/jboss-seam-int-jbossas.jar], DelegatingHandler@1
      8418409[path=BankaIN.ear/bankain-data-2.1.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/bankain-data-2.1.jar], DelegatingHandler@18572097[
      path=BankaIN.ear/crm-2.1.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/crm-2.1.jar], DelegatingHandler@17917939[path=BankaIN.ear/jboss-sea
      m.jar context=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/jboss-seam.jar], DelegatingHandler@29336548[path=BankaIN.ear/ws-storitve-2.1.jar context=f
      ile:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/BankaIN.ear/ws-storitve-2.1.jar]] delegates=null exported=[, si.banka_koper.bankain.content, META-INF.maven.org.rich
      faces.ui.treeModel, org.joda.time.tz.data.Pacific, org.richfaces.webapp.taglib, com.lowagie.text.pdf.draw, org.jboss.seam.contexts, si.banka_koper.validators, org.joda.time.tz.data.Europe, META-INF.maven.org.richfaces.ui.componentControl, si.banka_ko
      per.bankain.nalozbeInVarcevanja.skladi, org.joda.time.tz.data.Indian, si.banka_koper.ws.bsdeposit.stub, META-INF.maven.org.richfaces.ui.togglePanel, com.lowagie.text.pdf.events, META-INF.rsc, org.richfaces.renderkit.html.scripts.dnd, org.jboss.seam.a
      nnotations.datamodel, si.banka_koper.ws.bspprom.stub, org.jboss.seam.init, org.jboss.el.parser, org.ajax4jsf.org.w3c.tidy, META-INF.maven.org.richfaces.ui.inputnumber-slider, org.joda.time.tz.data.America.Kentucky, org.ajax4jsf.taglib.html.jsp, si.ba
      nka_koper.bankain.racuniInKartice, crm-jms-2.1.jar.si.banka_koper.jms, com.sun.facelets.util, META-INF.maven.org.richfaces.ui.insert, com.lowagie.text.pdf.codec, com.lowagie.text.pdf, si.banka_koper.jmx, org.ajax4jsf.util.base64, org.richfaces.render
      kit.html.scripts.jquery, org.jboss.seam.core, com.sun.xml.ws.transport.jms.client, META-INF.maven.org.richfaces.ui.tabPanel, com.sun.xml.ws.transport.https.client, META-INF.wsdl, com.parsek.text, org.ajax4jsf, org.jboss.seam.servlet, com.adacta_group
      .schemas.adbis.exceptions, org.jboss.seam.persistence, com.lowagie.text.pdf.internal, org.jboss.seam.security.digest, org.jboss.seam.text, org.richfaces.renderkit.html.images.background, org.joda.time.tz.data.Antarctica, org.jboss.seam.faces, org.aja
      x4jsf.webapp.tidy, si.banka_koper.crm.utils, META-INF.maven.org.richfaces.ui.menu-components, org.richfaces.renderkit.html.scripts.json, org.jboss.seam.jms, si.banka_koper.crm.masovno, si.banka_koper.ws.bank_auth.stub, si.banka_koper.dataprovider, or
      g.richfaces.event.sort, si.banka_koper.bankain.nalogi, org.jboss.seam.async, org.ajax4jsf.resource, si.banka_koper.bankain.racuniInKartice.kartice, com.opensymphony.oscache.hibernate, org.ajax4jsf.request, org.jboss.seam.annotations.security.manageme
      nt, org.jboss.seam.integration.jbossas.jms, org.jboss.seam.bpm, org.jboss.seam.security, si.banka_koper.bankain.racuniInKartice.ceki, org.ajax4jsf.component.html, org.jboss.seam.web, org.ajax4jsf.javascript, si.banka_koper.ws.usermanagement, org.rich
      faces.ui.component, com.sun.facelets.tag.ui, org.jboss.el, org.jboss.seam.security.management.action, org.jboss.seam.databinding, META-INF.skins, META-INF.maven.org.richfaces.ui.hotKey, org.jboss.seam.annotations.security, com.opensymphony.oscache.pl
      ugins.clustersupport, si.banka_koper.activedirectory, org.ajax4jsf.io, META-INF.maven.org.richfaces.ui.virtualEarth, com.lowagie.text.xml.xmp, META-INF.services, META-INF.maven.org.richfaces.ui.toolBar, com.lowagie.text.xml.simpleparser, org.jboss.se
      am.document, org.jboss.seam.mock, si.banka_koper.bankain.nalozbeInVarcevanja.vp, org.joda.time.chrono, org.jboss.seam.mail, com.sun.facelets.tag, si.banka_koper.bankain.sekundarnaNavigacija, org.richfaces.model.impl, com.lowagie.text, org.jboss.seam.
      navigation, si.banka_koper.ws.util, org.jboss.seam.international, org.richfaces.model, si.banka_koper.tools, META-INF.maven.org.richfaces.ui.contextMenu, com.sun.facelets.impl, com.opensymphony.oscache.base.persistence, META-INF.maven.org.richfaces.u
      i.richfaces-ui, si.banka_koper.data, si.banka_koper.crm.servlets, com.sun.facelets.tag.jsf.html, si.banka_koper.ws.skladi.stub, com.opensymphony.oscache.base.events, META-INF.maven.org.richfaces.ui.tree, si.banka_koper.bankain.placilaInPrenosi, META-
      INF.maven.org.richfaces.ui.paint2D, si.banka_koper.chart, org.ajax4jsf.renderkit, META-INF.maven.org.richfaces.ui.panelmenu, org.ajax4jsf.context, com.sun.facelets.tag.jstl.fn, org.jboss.seam.cache, com.parsek.cache, si.banka_koper.bankain.ws, org.jb
      oss.seam.jsf, META-INF.maven.org.richfaces.ui.columns, org.jboss.seam.intercept, org.joda.time.format, org.jboss.seam.annotations.intercept, META-INF.maven.org.richfaces.ui.beanValidator, si.banka_koper.secondaryNavigation, org.alfresco.ws.service.au
      thentication._1, META-INF.maven.org.richfaces.ui.progressBar, org.w3._2001.xmlschema, si.banka_koper.bankain.takojsna_sklenitev.depozit, org.jboss.seam.annotations.async, org.alfresco.ws.headers._1, org.joda.time.base, org.ajax4jsf.resource.image, si
      .banka_koper.sifranti, org.ajax4jsf.taglib.html.facelets, org.richfaces.util, si.banka_koper.crm.data.vloga, META-INF.maven.org.richfaces.ui.inputnumber-spinner, org.richfaces.component.state, si.banka_koper.crm.data, si.banka_koper.identity, si.bank
      a_koper.ws.bskrediti.stub, org.jboss.seam.annotations.web, org.jboss.seam, com.opensymphony.oscache.web.tag, META-INF.maven.org.richfaces.ui.combobox, si.banka_koper.xmlsignature.test, si.banka_koper.test, META-INF.maven.org.richfaces.ui.simpleToggle
      Panel, org.joda.time.tz.data.Africa, si.banka_koper.ws.ppbackend, com.lowagie.tools, org.jboss.seam.annotations.exception, si.banka_koper.ws.bsracun.stub, META-INF.maven.org.richfaces.ui.modal-panel, si.banka_koper.ws.edw.stub, si.banka_koper.bankain
      .jms, org.jboss.seam.util, org.alfresco.ws.model.content._1, META-INF.maven.org.richfaces.framework.richfaces-impl, org.ajax4jsf.util.style, si.banka_koper.bankain.km.data, org.ajax4jsf.cache, META-INF, org.jboss.seam.annotations.security.permission,
       si.banka_koper.bankain, org.richfaces.renderkit.html.js, org.jboss.el.lang, org.richfaces.ui.taglib, org.richfaces.javacc, javax.transaction, org.richfaces.utils, META-INF.maven.org.richfaces.ui.core, com.sun.facelets.el, org.ajax4jsf.util, si.banka
      _koper.bankain.takojsna_sklenitev.kredit, META-INF.maven.org.richfaces.ui.inplaceSelect, org.richfaces.component.state.events, com.sun.facelets.component, org.ajax4jsf.resource.image.animatedgif, META-INF.maven.org.richfaces.ui.separator, org.joda.ti
      me.tz.data.Etc, org.jboss.seam.theme, org.joda.time.tz.data.America.Argentina, org.jboss.seam.security.management, com.opensymphony.oscache.general, org.jboss.seam.el, com.lowagie.text.pdf.hyphenation, org.jboss.seam.exception, si.banka_koper.bankain
      .racuniInKartice.search, org.richfaces.model.filter, com.sun.xml.ws.transport.jms, org.richfaces.component.util, org.richfaces.renderkit.html.gradientimages, org.richfaces.renderkit.html.scripts.scriptaculous, META-INF.maven.org.richfaces.ui.dropdown
      -menu, org.richfaces.renderkit.html.script, si.banka_koper.bankain.data, si.banka_koper.ws.avt, org.richfaces.component.nsutils, org.jboss.seam.security.jaas, org.alfresco.ws.cml._1, org.jboss.seam.annotations.bpm, org.richfaces.model.selection, org.
      jboss.seam.framework, si.banka_koper.bankain.km, org.richfaces.renderkit.images, org.ajax4jsf.exception, META-INF.maven.org.richfaces.ui.spacer, org.joda.time.tz, META-INF.maven.org.richfaces.ui.gmap, org.richfaces.ui.application, com.lowagie.text.fa
      ctories, org.joda.time.tz.data.America.Indiana, org.ajax4jsf.event, org.ajax4jsf.webapp, org.jboss.seam.log, org.jboss.seam.captcha, si.banka_koper.bankain.placilaInPrenosi.prodajne, org.joda.time.tz.data.Asia, si.banka_koper.bankain.takojsna_sklenit
      ev, org.richfaces.model.internal, si.banka_koper.data.vp, si.banka_koper.cms, org.joda.time.tz.data.Atlantic, org.jboss.seam.drools, org.jboss.seam.annotations, org.ajax4jsf.xml.serializer, META-INF.maven.org.richfaces.ui.scrollableDataTable, si.bank
      a_koper.data.skladi, org.jboss.seam.pageflow, si.banka_koper.bankain.narocila, org.richfaces.taglib.html.jsp, si.banka_koper.xmlsignature, META-INF.maven.org.richfaces.ui.suggestionbox, com.sun.facelets.tag.jsf, org.ajax4jsf.renderkit.compiler, si.ba
      nka_koper.bankain.portal, si.banka_koper.ws.zavar.stub, org.joda.time.tz.data.America.North_Dakota, org.ajax4jsf.resource.util, org.jboss.seam.deployment, si.banka_koper.ws.iskom.stub, META-INF.maven.org.richfaces.ui.extendedDataTable, si.banka_koper
      .ws.bsnalog.stub, org.richfaces.ui.renderkit.html, org.richfaces.function, si.banka_koper.bankain.nalozbeInVarcevanja, com.opensymphony.oscache.web.filter, com.opensymphony.oscache.extra, org.ajax4jsf.webapp.taglib, com.lowagie.text.pdf.codec.wmf, co
      m.lowagie.text.pdf.collection, si.banka_koper.tracking, si.banka_koper.ws.aktiva_atm.stub, org.richfaces.taglib, org.ajax4jsf.renderkit.html, META-INF.maven.org.richfaces.ui.datascroller, si.banka_koper.common, org.jboss.seam.integration.jbossas.vdf,
       si.banka_koper.bankain.pooblastila, META-INF.maven.org.richfaces.ui.fileUpload, org.jboss.el.util, org.richfaces.convert.selection, org.richfaces.event, META-INF.maven.org.richfaces.ui.orderingList, org.ajax4jsf.model, si.banka_koper.bankain.krediti
      , si.banka_koper.bankain.zavarovanja, org.richfaces.renderkit.html.templates, org.richfaces.component.xml, org.richfaces.event.extdt, META-INF.maven.org.richfaces.ui.dataFilterSlider, com.opensymphony.oscache.base, si.banka_koper.bankain.pripomocki,
      META-INF.maven.org.richfaces.ui.inplaceInput, si.banka_koper.bankain.nalozbeInVarcevanja.narocilo, org.richfaces.ui.component.html, org.richfaces.model.impl.expressive, org.jboss.seam.transaction, com.adacta_group.schemas.adbis.data, org.richfaces.co
      mponent.html, META-INF.maven.org.richfaces.ui.pickList, com.opensymphony.oscache.web, META-INF.maven.org.richfaces.ui.dataTable, si.banka_koper.bankain.hitraOpravila, META-INF.maven.org.richfaces.framework.richfaces-api, org.joda.time.convert, org.aj
      ax4jsf.javascript.scripts, org.richfaces.json, com.sun.facelets, org.richfaces.ui.model, si.banka_koper.ws.ibi.stub, org.jboss.seam.integration.jbossas.servlet, META-INF.maven.org.richfaces.ui.effect, org.ajax4jsf.ajax, com.sun.facelets.tag.jsf.core,
       si.banka_koper.bankain.secondaryNavigation, org.jboss.seam.webservice, org.joda.time.tz.data, com.lowagie.text.pdf.crypto, si.banka_koper.inet, si.banka_koper.crm, org.ajax4jsf.css, org.ajax4jsf.resource.cached, si.banka_koper.crm.povzetek, META-INF
      .maven.org.richfaces.ui.functions, si.banka_koper.bankain.nalozbeInVarcevanja.pooblastilo, com.opensymphony.oscache.util, META-INF.maven.org.jboss.seam.integration.jboss-seam-int-jbossas, META-INF.maven.org.richfaces.ui.calendar, META-INF.maven.org.r
      ichfaces.ui.listShuttle, org.joda.time.field, org.richfaces.renderkit.html.swf, com.lowagie.text.html, si.banka_koper.ws.scaws.stub, META-INF.maven.org.richfaces.ui.jQuery, org.jboss.seam.integration.jbossas.vfs, si.banka_koper.util, org.richfaces.el
      , org.jboss.seam.ejb, org.joda.time.tz.data.America, org.ajax4jsf.config, META-INF.maven.org.richfaces.ui.panelbar, si.banka_koper.bankain.placilaInPrenosi.poprodajne, org.richfaces.renderkit.html.images, si.banka_koper.bankain.cms, META-INF.maven.or
      g.richfaces.ui.state, org.richfaces.validator, si.banka_koper.sifranti.crm, org.richfaces.skin, org.ajax4jsf.application, org.jboss.seam.annotations.faces, com.lowagie.text.xml, org.richfaces.component.events, org.richfaces.renderkit, si.banka_koper.
      bankain.vloga, org.joda.time, org.joda.time.tz.data.Australia, META-INF.maven.org.richfaces.ui.tooltip, com.lowagie.text.html.simpleparser, org.jboss.seam.security.permission, si.banka_koper.ws.bsservis.stub, org.alfresco.ws.service.repository._1, or
      g.ajax4jsf.webapp.nekko, org.richfaces.renderkit.html.iconimages, org.ajax4jsf.component, com.opensymphony.oscache.base.algorithm, com.opensymphony.oscache.plugins.diskpersistence, org.ajax4jsf.io.parser, si.banka_koper.ws.avt.stub, com.lowagie.text.
      pdf.fonts, si.banka_koper.ws.bsbancnookence.stub, org.richfaces.renderkit.html.scripts, org.richfaces.event.scroll, org.richfaces.renderkit.html.css, org.richfaces.renderkit.html, org.jboss.seam.security.permission.action, si.banka_koper.bankain.nalo
      zbeInVarcevanja.skladi.takojsnja_sklenitev, org.richfaces.iterator, org.richfaces.component, META-INF.maven.org.richfaces.ui.panel, com.parsek.debug, META-INF.maven.org.richfaces.ui.message, org.ajax4jsf.xml.serializer.utils, org.richfaces.convert.ro
      wkey, com.sun.facelets.compiler, com.sun.facelets.tag.jstl.core, si.banka_koper.crm.customTypes, gnu.qif, com.lowagie.text.pdf.interfaces, si.banka_koper.bankain.racuniInKartice.bs, META-INF.maven.org.richfaces.ui.drag-drop, crm-jms-2.1.jar.META-INF,
       org.richfaces.ui.renderkit.html.css, si.banka_koper.ws.gk.stub, org.richfaces] <IMPORT-ALL>NON_EMPTY}}
      
      
      19:53:49,528 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      


        • 1. Re: Wrong exception handling while metadata scaning
          jaikiran pai Master

           

          I figured out that class that was "missing" was in one jar file that was not listed in application.xml
          The class itself is an MDB and I dont need it to load...


          Where is that jar file placed in the EAR? And is the MDB class being referenced from some place? Just trying to figure out why the class was being loaded if its not referenced anywhere.


          • 2. Re: Wrong exception handling while metadata scaning
            Tomaz Cerar Master

            Hi,

            jar file is placed in root folder of ear archive.
            And MDB is not used anywhere. That is why jar was not included in application.xml, but there was a bug in build file that included jar in ear even when it was not needed...

            Class is not referenced anywhere in code(that was my first suspect also) that is also why it is in separate jar that is usually deployed to separate server...


            cheers,
            tomaz

            • 3. Re: Wrong exception handling while metadata scaning
              Ales Justin Master

              This is actually not a but.
              It's a back-compatibility compromise. ;-)

              Old ear's could have classpath form the root, but the spec disagrees.
              So, we still allow it, but should go slowly away.
              Hence your directory is picked up, as being part of possible classpath.

              It's just that javassist takes part in the middle of scan, hence nice classname,
              where it should actually be your-dir.full_classname, so CL is not able to find it.

              Either disable ear-root-as-part-of-classpath in EarStructure
              or check what I do with EarLibExcludeDeployer in metadata-deployers-jboss-beans.xml.

              • 4. Re: Wrong exception handling while metadata scaning
                Tomaz Cerar Master

                Ales hi,

                how do I disable ear-root-as-part-of-classpath? or better where?

                now i have in jboss-app enabled strict module ordering
                <module-order>strict</module-order>
                but this applys to jboss 4.x for correct deployment order of modules nothing more.

                but this is probably not this...

                • 5. Re: Wrong exception handling while metadata scaning
                  Ales Justin Master

                   


                  how do I disable ear-root-as-part-of-classpath? or better where?

                  ear-deployer-jboss-beans.xml

                   <bean name="EARStructureDeployer" class="org.jboss.deployment.EARStructure">
                   <property name="comparatorClassName">org.jboss.system.deployers.LegacyDeploymentContextComparator</property>
                   <property name="includeEarRootInClasspath">false</property>
                   </bean>
                  


                  ;-)

                  • 6. Re: Wrong exception handling while metadata scaning
                    Tomaz Cerar Master

                    Tnx,

                    I was looking at that file but only thing that is in there (as of 5.0.0.GA)
                    is this

                    <bean name="EARStructureDeployer" class="org.jboss.deployment.EARStructure">
                     <property name="comparatorClassName">org.jboss.system.deployers.LegacyDeploymentContextComparator</property>
                     <!-- uncomment to disable xml validation property name="useValidation">false</property -->
                     </bean>


                    tnx for help, but still is there any way that you could throw better error message when this occurs?

                    cheers,
                    tomaz

                    • 7. Re: Wrong exception handling while metadata scaning
                      Ales Justin Master

                       

                      "tomc" wrote:

                      but still is there any way that you could throw better error message when this occurs

                      I doubt it.
                      And it actually is a CNFE, since you have illegal classpath. :-)

                      The problem there is that I have no way of knowing which things to exclude from the root,
                      unless you explicitly define it.

                      Or I could remove javassist help of getting me classname,
                      but that would require me to do some path fiddling to know the name from the ResourceContext.