2 Replies Latest reply on Aug 18, 2008 12:40 AM by arulasha

    DTD Parsing configuration issue

      I got the below exception while trying to start the JBoss AS 5, It seems to be the Parser is validating DTD as like Schema. Not sure where to disable the future ,

      Below is log I have captured from server.

      2008.08.13 09:45:38.149 GMT+00:00 DEBUG [main] [org.jboss.deployers.plugins.deployers.DeployersImpl] Deploying vfsfile:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/httpha-invoker.sar/
      2008.08.13 09:45:38.164 GMT+00:00 DEBUG [main] [org.jboss.system.deployers.SARDeployer] Parsing: jboss-service.xml
      2008.08.13 09:45:38.164 GMT+00:00 DEBUG [main] [org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper] Parsing file: FileHandler@31389272[path=invoker.war/WEB-INF/web.xml context=file:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/httpha-invoker.sar/ real=file:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/httpha-invoker.sar/invoker.war/WEB-INF/web.xml] for type: class org.jboss.metadata.web.spec.WebMetaData
      2008.08.13 09:45:38.164 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@ff366c, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
      2008.08.13 09:45:38.164 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://xml.org/sax/features/namespaces set to: true
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-language set to: false
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://apache.org/xml/features/xinclude/fixup-base-uris set to: false
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://apache.org/xml/features/validation/dynamic set to: true
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://apache.org/xml/features/validation/schema set to: true
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] http://xml.org/sax/features/validation set to: true
      2008.08.13 09:45:38.180 GMT+00:00 DEBUG [main] [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] Created parser: org.apache.xerces.jaxp.SAXParserImpl@ff366c, isNamespaceAware: true, isValidating: true, isXIncludeAware: true
      2008.08.13 09:45:38.274 GMT+00:00 DEBUG [main] [org.jboss.deployment.WebAppParsingDeployer] Error during deploy: vfsfile:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/httpha-invoker.sar/invoker.war/
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/httpha-invoker.sar/invoker.war/

      ...
      ...

      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://java.sun.com/dtd/web-app_2_3.dtd
      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

      ...

      ..
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for nsURI=, baseURI=null, schemaLocation=http://java.sun.com/dtd/web-app_2_3.dtd
      at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:340)

      ..
      ..
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 113:3 The markup in the document preceding the root element must be well-formed.
      at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)

      I am using D:\Tools\Java\jdk1.5.0_06 and also using jaxb jars from sun.

      Please help me to resolving the issue.

        • 1. Re: DTD Parsing configuration issue
          jaikiran

          Did you do any changes after installing a clean JBoss? The deployment of invoker.war seems to be failing, which is strange. Have you deployed your own application in this JBoss? If yes, does removing your application and starting JBoss work?

          also using jaxb jars from sun


          Could you please elaborate? Did you replace any existing jar files?



          • 2. Re: DTD Parsing configuration issue

            Thank you for your reply.

            Yes I modified ports and couple of other minor modifications in to suit our application ( all are configuration changes).

            I have not replaced any jars from JBoss AS5. My application requires JAXB jars since previous Jboss version does not have jars for JAXB.

            I have tried to use JBoss JAXB jars, but got few compilation errors. So I have used SUN JAXB jars in my ear application.

            It seems to me, the web deployer is not configured correctly. so when it try load the wars, it is validating the DTDs , this leads to error.

            Hope this will help.