0 Replies Latest reply on Feb 21, 2013 12:16 AM by vismay2011

    Received event DTD, instead of START_ELEMENT or END_ELEMENT.

    vismay2011

      Hi,

      I am migrating an application running on Jboss 4.23.000  to Jboss 7.

       

      I have some kick-start services mentioned  in log-services.xml  along with LogService like shown below ..

       

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

      <!DOCTYPE server>

      <server>

        <mbean code="org.mts.network.service.LogService"

               name="jboss:service=LogService">

       

          <attribute name="JndiName">LogService</attribute>

          <depends>jboss:service=QuartzService</depends>

          <depends>jboss:service=DerbyService</depends>

        </mbean>

       

        <mbean code="org.mts.network.service.DatabaseMonitor"

               name="jboss:service=DatabaseMonitor">

          <attribute name="JndiName">DatabaseMonitor</attribute>

          <depends>jboss:service=LogService</depends>

        </mbean>

      </server>

       

       

      If I copy this file to   Jboss7's    deployments folder along with my war file...I do get the following errors

       

      com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT.

      at [row,col {unknown-source}]: [2,16]

      at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:606)

      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:479)

      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:464)

      at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1143)

      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:67)

      at org.jboss.as.service.ServiceDeploymentParsingProcessor.deploy(ServiceDeploymentParsingProcessor.java:88)

      ... 6 more

       

      What is going wrong here? am I working with wrong XML parsers ? or this feature is not supported in Jboss 7?

      please give me some hints if you can..

       

      -thanks

      Vism