[
https://jira.jboss.org/browse/JBAS-8268?page=com.atlassian.jira.plugin.sy...
]
Jason Porter commented on JBAS-8268:
------------------------------------
I had another one that I believe fits this issue (while it may not be the exact issue, the
proposed fix should make this work as well):
12:43:04,132 WARN [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] SchemaLocation:
schemaLocation value = 'http://java.sun.com/xml/ns/j2ee web jsptaglibrary_2_0.xsd'
must have even number of URI's. @
vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war/WEB-INF/lib/standard.jar/META-INF/scriptfree.tld[7,19]
12:43:04,133 WARN [org.jboss.util.xml.JBossEntityResolver] Trying to resolve systemId as
a non-file URL:
vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war/WEB-INF/lib/standard.jar/META-INF/web
12:43:04,134 WARN [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] schema_reference.4:
Failed to read schema document 'web', because 1) could not find the document; 2)
the document could not be read; 3) the root element of the document is not
<xsd:schema>. @
vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war/WEB-INF/lib/standard.jar/META-INF/scriptfree.tld[7,19]
12:43:04,137 WARN [org.jboss.util.xml.JBossEntityResolver] Trying to resolve systemId as
a non-file URL:
http://java.sun.com/xml/ns/j2ee
12:43:20,768 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Parse:
name=vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war
state=PreParse mode=Manual requiredState=Parse:
org.jboss.deployers.spi.DeploymentException: Error creating managed object for
vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
[:2.2.0.Alpha8]
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:383)
[:2.2.0.Alpha8]
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343)
[:2.2.0.Alpha8]
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:315)
[:2.2.0.Alpha8]
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:255)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.Alpha8]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.Alpha8]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.Alpha10]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.Alpha10]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.Alpha8]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
[:6.0.0.20101110-CR1]
at
org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:59)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:94)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)
[:0.1.0.Alpha1]
at
org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135)
[:0.1.0.Alpha1]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146)
[:0.1.0.Alpha1]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90)
[:0.1.0.Alpha1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_22]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
[:1.6.0_22]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_22]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[:1.6.0_22]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
[:1.6.0_22]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
[:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_22]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source:
vfs:///Users/jporter/servers/jboss-6.0.0.20101110-CR1/server/default/deploy/tigrisfaces.war/WEB-INF/lib/standard.jar/META-INF/scriptfree.tld@7,19
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224)
[jbossxb.jar:2.0.2.Beta9]
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:178)
[jbossxb.jar:2.0.2.Beta9]
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231)
[jbossxb.jar:2.0.2.Beta9]
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:206)
[jbossxb.jar:2.0.2.Beta9]
at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
[:2.2.0.Alpha8]
at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:64)
[:6.0.0.20101110-CR1]
at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:38)
[:6.0.0.20101110-CR1]
at
org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
[:2.2.0.Alpha8]
at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.handleMultipleFiles(AbstractVFSParsingDeployer.java:446)
[:2.2.0.Alpha8]
at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:319)
[:2.2.0.Alpha8]
at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:376)
[:2.2.0.Alpha8]
... 41 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to parse schema for
nsURI=http://java.sun.com/xml/ns/j2ee, localName=taglib, schemaLocation=web
at
org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:350)
[jbossxb.jar:2.0.2.Beta9]
at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:176)
[jbossxb.jar:2.0.2.Beta9]
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.startElement(SaxJBossXBParser.java:401)
[jbossxb.jar:2.0.2.Beta9]
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source) [xercesImpl.jar:6.0.0.20101110-CR1]
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source) [xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:209)
[jbossxb.jar:2.0.2.Beta9]
... 51 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 31:3 The declaration for
the entity "HTML.Version" must end with '>'.
at
org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
[jbossxb.jar:2.0.2.Beta9]
at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
[xercesImpl.jar:6.0.0.20101110-CR1]
at org.jboss.xb.binding.Util.loadSchema(Util.java:394) [jbossxb.jar:2.0.2.Beta9]
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:178)
[jbossxb.jar:2.0.2.Beta9]
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:149)
[jbossxb.jar:2.0.2.Beta9]
at
org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:342)
[jbossxb.jar:2.0.2.Beta9]
... 66 more
Should we add a relax flag for people using out of order content
inside elements of their XML files
---------------------------------------------------------------------------------------------------
Key: JBAS-8268
URL:
https://jira.jboss.org/browse/JBAS-8268
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Deployers, XML services
Affects Versions: 6.0.0.M4
Reporter: Emmanuel Bernard
Assignee: Alexey Loubyansky
Fix For: 6.0.0.Final
It seems that JBoss AS 6 and JBoss XB are stricter than they used to wrt the order of the
content in elements
https://jira.jboss.org/browse/JBAS-8265?focusedCommentId=12542087#action_...
Would it make sense to have a flag to relax this rule? I am thinking of people with
existing applications trying to deploy into AS 6 from 5 and seeing such errors (ease of
use and less pain in support down the road).
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira