Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2985

When I test Tuscany M2, I encounter a "Cannot resolve the name 'xml:lang' to an) 'attribute declaration' component" issue in all the samples.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • Java-SCA-M2
    • None
    • Java SCA Demos
    • None
    • WinXP + Tuscany M2 + JDK1.6, both online and offline.

    Description

      When I test Tuscany M2, I encounter a "Cannot resolve the name 'xml:lang' to an) 'attribute declaration' component" issue in all the samples.

      I googled and found the same issue in Liferay's JIRA. Please refer to http://issues.liferay.com/browse/LEP-1016 . They said if it is offline, the defect will go away. But I cannot go thru by that way.

      Though it is a Xerces issus, is there any workaround for Tuscany?

      [java] Caused by: java.lang.IllegalStateException: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a 'attrib
      ute declaration' component.
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.j
      ava:166)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.createXMLStreamReader(DefaultValidatingXMLInputFacto
      ry.java:232)
      [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:114)
      [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:84)
      [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcessor.read(CompositeDocumentProcessor.java:1)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArt
      ifactProcessorExtensionPoint.java:337)
      [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProcessor.java:111)
      [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:136)
      [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:1)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArt
      ifactProcessorExtensionPoint.java:337)
      [java] at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:485)
      [java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:256)
      [java] ... 8 more
      [java] Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xml:lang' to a 'attribute declaration' component.
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
      [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
      [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:2537)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2528)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1396)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAttributeTraverser.traverseLocal(XSDAttributeTraverser.java:83)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDAbstractTraverser.traverseAttrsAndAttrGrps(XSDAbstractTraverser.java:610)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.processComplexContent(XSDComplexTypeTraverser.java:10
      59)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:
      279)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(XSDComplexTypeTraverser.java:160)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1534)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:369)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseGlobal(XSDElementTraverser.java:214)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1258)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:579)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:552)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:519)
      [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:485)
      [java] at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:210)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:154)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory$2.run(DefaultValidatingXMLInputFactory.java:1)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory.initializeSchemas(DefaultValidatingXMLInputFactory.j
      ava:152)
      [java] ... 19 more

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              julian0zzx Julian Zhu <竹十一>
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: