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 807581, 1 year ago
Content is not allowed in prolog.
via Oracle Community by 855685, 2 years ago
Content is not allowed in prolog. [jrc]
via Google Groups by Ian Godman, 8 months ago
Content is not allowed in prolog.
via knowcoding.com by Unknown author, 2 years ago
via oracle.com by Unknown author, 2 years ago
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.tomcat.util.digester.Digester.parse(Digester.java:1580)	at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)	at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)	at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)	at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)	at org.apache.naming.NamingContext.lookup(NamingContext.java:792)	at org.apache.naming.NamingContext.lookup(NamingContext.java:152)	at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)	at org.apache.catalina.core.StandardService.start(StandardService.java:450)	at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)	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:271)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)