DTD Parsing configuration issue
arulasha Aug 14, 2008 1:28 AMI 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.