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

  1. ,

    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 Oracle Community by 843833, 1 year ago
Content is not allowed in prolog.
via hivmr.com by Unknown author, 1 year ago
via hivmr.com by Unknown author, 1 year ago
via hivmr.com by Unknown author, 2 years ago
via Oracle Community by 855685, 1 year ago
Content is not allowed in prolog. [jrc]
org.xml.sax.SAXParseException: Content is not allowed in prolog.	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(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.XMLScanner.reportFatalError(Unknown Source)	at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.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.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1581)	at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:402)	at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)	at org.apache.naming.NamingContext.lookup(NamingContext.java:793)	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)	at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)	at org.apache.catalina.core.StandardService.start(StandardService.java:448)	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)