Skip to content

Instantly share code, notes, and snippets.

@awead
Created November 5, 2013 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awead/7324228 to your computer and use it in GitHub Desktop.
Save awead/7324228 to your computer and use it in GitHub Desktop.
cs-xacml-schema-policy-1.0.xsd
[fctest@dev-vm1 ~]$ fedora-rebuild.sh
Fedora Rebuild Utility
..........................
WARNING: Live rebuilds are not currently supported.
Make sure your server is stopped before continuing.
Server directory is /usr/local/fedora/server
---------------------------------------------------------------------
ERROR 14:00:01.480 (Server) Module (org.fcrepo.server.validation.DOValidatorModule) failed to initialize
org.fcrepo.server.errors.ModuleInitializationException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:129) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.Server.init(Server.java:655) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.RebuildServer.getRebuildInstance(RebuildServer.java:165) [fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.Rebuild.getServer(Rebuild.java:214) [fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.Rebuild.getRebuilder(Rebuild.java:276) [fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:464) [fcrepo-server-3.7.1.jar:na]
Caused by: org.fcrepo.server.errors.GeneralException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:154) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:123) ~[fcrepo-server-3.7.1.jar:na]
... 5 common frames omitted
Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file:/usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd', 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>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source) ~[na:1.7.0_45]
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source) ~[na:1.7.0_45]
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:149) ~[fcrepo-server-3.7.1.jar:na]
... 6 common frames omitted
Error: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
org.fcrepo.server.errors.ModuleInitializationException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:129)
at org.fcrepo.server.Server.init(Server.java:655)
at org.fcrepo.server.utilities.rebuild.RebuildServer.getRebuildInstance(RebuildServer.java:165)
at org.fcrepo.server.utilities.rebuild.Rebuild.getServer(Rebuild.java:214)
at org.fcrepo.server.utilities.rebuild.Rebuild.getRebuilder(Rebuild.java:276)
at org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:464)
Caused by: org.fcrepo.server.errors.GeneralException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:154)
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:123)
... 5 more
Caused by: org.xml.sax.SAXParseException; schema_reference.4: Failed to read schema document 'file:/usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd', 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>.
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.XMLErrorReporter.reportError(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.getSchemaDocument(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:149)
... 6 more
ERROR 14:00:01.989 (Server) Module (org.fcrepo.server.validation.DOValidatorModule) failed to initialize
org.fcrepo.server.errors.ModuleInitializationException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:129) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.Server.init(Server.java:655) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.RebuildServer.getRebuildInstance(RebuildServer.java:165) [fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.Rebuild.getServer(Rebuild.java:214) [fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:477) [fcrepo-server-3.7.1.jar:na]
Caused by: org.fcrepo.server.errors.GeneralException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:154) ~[fcrepo-server-3.7.1.jar:na]
at org.fcrepo.server.validation.DOValidatorModule.postInitModule(DOValidatorModule.java:123) ~[fcrepo-server-3.7.1.jar:na]
... 4 common frames omitted
Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'file:/usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd', 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>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source) ~[xercesImpl-2.9.1.jar:na]
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source) ~[na:1.7.0_45]
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source) ~[na:1.7.0_45]
at org.fcrepo.server.validation.DOValidatorImpl.<init>(DOValidatorImpl.java:149) ~[fcrepo-server-3.7.1.jar:na]
... 5 common frames omitted
Server shutdown error: org.fcrepo.server.errors.ModuleInitializationException: Cannot read or create schema at /usr/local/fedora/server/xsd/cs-xacml-schema-policy-1.0.xsd
@atz
Copy link

atz commented Oct 7, 2014

I am currently finding that in fedora.fcfg cs-xacml-schema-policy-1.0.xsd should be cs-xacml-schema-policy-01.xsd, although I don't get this particular error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment