2 Replies Latest reply on Jan 6, 2010 2:42 AM by bhanu vakamalla

    Jboss.xml is not identifying its elements. Namespace should be changed?

    bhanu vakamalla Newbie

      Here is sample Jboss.XML

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss PUBLIC
            "-//JBoss//DTD JBOSS 5.0//EN"
            "http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">
         <jboss>

      <secure>false</secure>

      <enterprise-beans>
        <entity>

         <GridBean />

        </entity>
        </enterprise-beans>

       

      </jboss>

       

      Error is:

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element type "secure" must be declared. @ vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/grid.ear/Grid.jar/META-INF/jboss.xml[8,9]
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
      at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
      at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
      at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
      at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)
      ... 35 more
      Caused by: org.xml.sax.SAXException: Element type "secure" must be declared. @ vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/grid.ear/Grid.jar/META-INF/jboss.xml[8,9]
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

      I tried by removing secure tag but its again failing at  <enterprise-beans> and so on...

      Please help me in fixing this issue.