Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Frameworks
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Other Application Frameworks
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
Ankita Jha
Ranch Hand
Posts: 55
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hello ranches,
While working with Spring and
jdbc
,getting the attached error,
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet application threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause org.springframework.beans.factory.BeanDefinitionStoreException: Line 14 in XML document from ServletContext resource [/WEB-INF/application-service.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null". org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:229) org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173) org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148) org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:126) org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89) org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269) org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134) org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.catalina.startup.Catalina.start(Catalina.java:536) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs. -------------------------------------------------------------------------------- Apache Tomcat/5.5.12
kindly give in your suggestions.
Vikas Kapoor
Ranch Hand
Posts: 1374
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello Ankita,
It seems there is some problem with
application-service.xml
. You haven't mapped your bean properly. I would interested to see that file.
Ankita Jha
Ranch Hand
Posts: 55
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thnks vishal,but my issues was solved...
problem was with some jar files....
thanks anyways....
Vikas Kapoor
Ranch Hand
Posts: 1374
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Nice to hear Ankita!
Hold that thought. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Spring Tiles Integration
Encountering server internal error while running the local application in the tomcat server.
Document root element "beans", must match DOCTYPE root "null" in eclipse
Can not deploy an app to weblogic
BeanDefinitionStoreException when running Spring web app
More...