org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via xerces-j-users by Mark R Maxey, 1 year ago
src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.
via xerces-j-users by Ramirez, Paul M (388J), 1 year ago
src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.
via xerces-j-users by Mark R Maxey, 1 year ago
src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.
via xerces-j-users by Ramirez, Paul M (388J), 1 year ago
src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.
via ibm.com by Unknown author, 1 year ago
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
via Coderanch by Frederik Ericsson, 11 months ago
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'foo:last' to a(n) 'element declaration' component.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(UnknownSource)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(UnknownSource)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(UnknownSource)
at gov.nasa.pds.tools.label.XMLTest.main(XMLTest.java:22)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 5 days ago
2 times, 3 weeks ago
50 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.