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 Coderanch by vikram nalagampalli, 1 year ago
Document is invalid: no grammar found.
via Oracle Community by 433346, 1 year ago
Document is invalid: no grammar found.
via Google Groups by DigiDarshan, 11 months ago
Document is invalid: no grammar found.
via Coderanch by Jeff Horan, 1 year ago
Document is invalid: no grammar found.
via Atlassian JIRA by Zohar Melamed, 1 year ago
org.xml.sax.SAXParseException: Document is invalid: no grammar found.	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.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)	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.DTDConfiguration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.apache.commons.digester.Digester.parse(Digester.java:1591)	at org.apache.commons.validator.ValidatorResources.(ValidatorResources.java:159)	at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233)	at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164)	at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)	at javax.servlet.GenericServlet.init(GenericServlet.java:258)	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)	at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)	at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)	at javax.servlet.GenericServlet.init(GenericServlet.java:258)	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)	at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)	at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)	at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)	at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)	at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)	at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)	at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)	at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)	at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)	at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)	at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)	at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)	at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)	at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)	at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)	at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)	at java.lang.reflect.Method.invoke(Method.java:386)	at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)	at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)