1 Reply Latest reply on May 7, 2009 4:46 AM by Nick Mpallas

    FileNotFoundExccption error During the ra.xml reading

    Nick Mpallas Newbie

      Hi all,
      i am using JBoss Embedded for unit testing purposes along with testNG.I have setup a maven project where it holds the bootstrap/ configuration of the embedded along with
      some wrapper classes to the Bootstrap class of the embedded jboss.I create such a project since most of the projects are maven based so i declare a dependency to the mvn project holding configuration of the embedded and the wrapper packages so i can use them as a black box so that no programmer must always setup a bootstrap directory in each project.No even if the project is correctly inserted in the classpath of the project that wants to use it when in a testNG test i simply try to start the embedded i get the following error:

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfsjar:file:/home/nmpallas/.m2/repository/mint/tests/mtests/2.1.0-SNAPSHOT/mtests-2.1.0-SNAPSHOT.jar!/deploy/deploy/jboss-local-jdbc.
      rar/META-INF/ra.xml
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:186)
       at org.jboss.deployers.vfs.spi.deployer.ObjectModelFactoryDeployer.parse(ObjectModelFactoryDeployer.java:120)
       ... 82 more
      Caused by: java.io.FileNotFoundException: JarEntryHandler@5190593[path=deploy context=jar:file:/home/nmpallas/.m2/repository/mint/tests/mtests/2.1.0-SNAPSHOT/mtests-2.1.0-SNAPSHOT.jar!/ real=jar:jar:file:/ho
      me/nmpallas/.m2/repository/mint/tests/mtests/2.1.0-SNAPSHOT/mtests-2.1.0-SNAPSHOT.jar!/!/deploy/] has no child: deploy
       at org.jboss.virtual.plugins.context.jar.JarEntryHandler.createChildHandler(JarEntryHandler.java:197)
       at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:291)
       at org.jboss.virtual.plugins.context.jar.AbstractJarHandler.findChild(AbstractJarHandler.java:340)
       at org.jboss.virtual.plugins.context.AbstractVFSContext.findChild(AbstractVFSContext.java:118)
       at org.jboss.virtual.VFS.findChild(VFS.java:205)
       at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.resolveCachedVirtualFile(VirtualFileURLConnection.java:90)
       at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getVirtualFile(VirtualFileURLConnection.java:105)
       at org.jboss.virtual.plugins.vfs.VirtualFileURLConnection.getInputStream(VirtualFileURLConnection.java:117)
       at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
       at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
       ... 84 more
      

      This is propably related to :
      https://jira.jboss.org/jira/browse/JBAS-4322
      My question is if there have been any other member with the specific problem and how it may be solved.From the jira issue is obvious that an exploded deployment is the answer..?is it???

      thanks in advance
      shadukan