java - Error Parsing XML while running Tomcat Server 9. Project Spring 3.2 along with hibernate ORM -


console log : while running server. have tried deleting .m2 folder jars not corrupted still same error. because i'm running spring 3.2 tomcat 9.0 , java 8?

i'm using mysql database , no table created.

aug 14, 2017 10:19:15 pm org.springframework.web.context.contextloader initwebapplicationcontext info: root webapplicationcontext: initialization started aug 14, 2017 10:19:15 pm org.springframework.web.context.support.xmlwebapplicationcontext preparerefresh info: refreshing root webapplicationcontext: startup date [mon aug 14 22:19:15 ist 2017]; root of context hierarchy aug 14, 2017 10:19:16 pm org.springframework.beans.factory.xml.xmlbeandefinitionreader loadbeandefinitions info: loading xml bean definitions servletcontext resource [/web-inf/applicationcontext.xml] aug 14, 2017 10:19:16 pm org.springframework.web.context.contextloader initwebapplicationcontext severe: context initialization failed org.springframework.beans.factory.beandefinitionstoreexception: ioexception parsing xml document servletcontext resource [/web-inf/applicationcontext.xml]; nested exception java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml]     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:343)     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:303)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:180)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:216)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:187)     @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:125)     @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:94)     @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:129)     @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:540)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:454)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:403)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4735)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5197)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:262)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:793)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.startup.catalina.start(catalina.java:656)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:355)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:495) caused by: java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml]     @ org.springframework.web.context.support.servletcontextresource.getinputstream(servletcontextresource.java:141)     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:329)     ... 42 more  aug 14, 2017 10:19:16 pm org.apache.catalina.core.standardcontext listenerstart severe: exception sending context initialized event listener instance of class [org.springframework.web.context.contextloaderlistener] org.springframework.beans.factory.beandefinitionstoreexception: ioexception parsing xml document servletcontext resource [/web-inf/applicationcontext.xml]; nested exception java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml]     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:343)     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:303)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:180)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:216)     @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:187)     @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:125)     @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:94)     @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:129)     @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:540)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:454)     @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:403)     @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306)     @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106)     @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4735)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5197)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:262)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:793)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.startup.catalina.start(catalina.java:656)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:355)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:495) caused by: java.io.filenotfoundexception: not open servletcontext resource [/web-inf/applicationcontext.xml]     @ org.springframework.web.context.support.servletcontextresource.getinputstream(servletcontextresource.java:141)     @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:329)     ... 42 more  aug 14, 2017 10:19:16 pm org.apache.catalina.core.standardcontext startinternal severe: 1 or more listeners failed start. full details found in appropriate container log file aug 14, 2017 10:19:16 pm org.apache.catalina.core.standardcontext startinternal severe: context [/fitness] startup failed due previous errors aug 14, 2017 10:19:16 pm org.apache.catalina.core.applicationcontext log info: closing spring root webapplicationcontext aug 14, 2017 10:19:16 pm org.springframework.web.context.support.xmlwebapplicationcontext doclose info: closing root webapplicationcontext: startup date [mon aug 14 22:19:15 ist 2017]; root of context hierarchy aug 14, 2017 10:19:16 pm org.springframework.web.context.support.xmlwebapplicationcontext doclose warning: exception thrown applicationlistener handling contextclosedevent java.lang.illegalstateexception: applicationeventmulticaster not initialized - call 'refresh' before multicasting events via context: root webapplicationcontext: startup date [mon aug 14 22:19:15 ist 2017]; root of context hierarchy     @ org.springframework.context.support.abstractapplicationcontext.getapplicationeventmulticaster(abstractapplicationcontext.java:346)     @ org.springframework.context.support.abstractapplicationcontext.publishevent(abstractapplicationcontext.java:333)     @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:880)     @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:841)     @ org.springframework.web.context.contextloader.closewebapplicationcontext(contextloader.java:579)     @ org.springframework.web.context.contextloaderlistener.contextdestroyed(contextloaderlistener.java:115)     @ org.apache.catalina.core.standardcontext.listenerstop(standardcontext.java:4782)     @ org.apache.catalina.core.standardcontext.stopinternal(standardcontext.java:5419)     @ org.apache.catalina.util.lifecyclebase.stop(lifecyclebase.java:257)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:187)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:262)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:793)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.startup.catalina.start(catalina.java:656)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:355)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:495)  aug 14, 2017 10:19:16 pm org.springframework.web.context.support.xmlwebapplicationcontext doclose warning: exception thrown lifecycleprocessor on context close java.lang.illegalstateexception: lifecycleprocessor not initialized - call 'refresh' before invoking lifecycle methods via context: root webapplicationcontext: startup date [mon aug 14 22:19:15 ist 2017]; root of context hierarchy     @ org.springframework.context.support.abstractapplicationcontext.getlifecycleprocessor(abstractapplicationcontext.java:359)     @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:888)     @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:841)     @ org.springframework.web.context.contextloader.closewebapplicationcontext(contextloader.java:579)     @ org.springframework.web.context.contextloaderlistener.contextdestroyed(contextloaderlistener.java:115)     @ org.apache.catalina.core.standardcontext.listenerstop(standardcontext.java:4782)     @ org.apache.catalina.core.standardcontext.stopinternal(standardcontext.java:5419)     @ org.apache.catalina.util.lifecyclebase.stop(lifecyclebase.java:257)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:187)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:262)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:793)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.startup.catalina.start(catalina.java:656)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:355)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:495)  aug 14, 2017 10:19:16 pm org.apache.catalina.core.standardcontext listenerstop severe: exception sending context destroyed event listener instance of class [org.springframework.web.context.contextloaderlistener] java.lang.illegalstateexception: beanfactory not initialized or closed - call 'refresh' before accessing beans via applicationcontext     @ org.springframework.context.support.abstractrefreshableapplicationcontext.getbeanfactory(abstractrefreshableapplicationcontext.java:170)     @ org.springframework.context.support.abstractapplicationcontext.destroybeans(abstractapplicationcontext.java:921)     @ org.springframework.context.support.abstractapplicationcontext.doclose(abstractapplicationcontext.java:895)     @ org.springframework.context.support.abstractapplicationcontext.close(abstractapplicationcontext.java:841)     @ org.springframework.web.context.contextloader.closewebapplicationcontext(contextloader.java:579)     @ org.springframework.web.context.contextloaderlistener.contextdestroyed(contextloaderlistener.java:115)     @ org.apache.catalina.core.standardcontext.listenerstop(standardcontext.java:4782)     @ org.apache.catalina.core.standardcontext.stopinternal(standardcontext.java:5419)     @ org.apache.catalina.util.lifecyclebase.stop(lifecyclebase.java:257)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:187)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:872)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1439)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1429)     @ java.util.concurrent.futuretask.run(unknown source)     @ org.apache.tomcat.util.threads.inlineexecutorservice.execute(inlineexecutorservice.java:75)     @ java.util.concurrent.abstractexecutorservice.submit(unknown source)     @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:953)     @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:262)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:422)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:793)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:183)     @ org.apache.catalina.startup.catalina.start(catalina.java:656)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:355)     @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:495)  aug 14, 2017 10:19:16 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-nio-8080"] aug 14, 2017 10:19:16 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["ajp-nio-8009"] aug 14, 2017 10:19:16 pm org.apache.catalina.startup.catalina start info: server startup in 6514 ms 

web.xml :

<web-app xmlns="http://java.sun.com/xml/ns/javaee"          xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"          xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"          version="3.0" metadata-complete="true">   <context-param>     <param-name>contextconfiguration</param-name>     <param-value>classpath:/jpacontext.xml</param-value>   </context-param>    <listener>     <listener-class>org.springframework.web.context.contextloaderlistener</listener-class>   </listener>  <!-- front controller of spring web application, responsible handling application requests -->     <servlet>         <servlet-name>fittrackerservlet</servlet-name>         <servlet-class>org.springframework.web.servlet.dispatcherservlet</servlet-class>         <init-param>             <param-name>contextconfiglocation</param-name>             <param-value>/web-inf/config/servlet-config.xml</param-value>         </init-param>     </servlet> 

below servlet mapping...

jpacontext.xml

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:tx="http://www.springframework.org/schema/tx"     xmlns:context="http://www.springframework.org/schema/context"     xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd         http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd         http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd">      <context:annotation-config />      <bean class="org.springframework.orm.jpa.support.persistenceannotationbeanpostprocessor" />      <bean id="entitymanagerfactory" class="org.springframework.orm.jpa.localcontainerentitymanagerfactorybean">          <property name="persistenceunitname" value="punit"/>         <property name="datasource" ref="datasource"/>         <property name="jpavendoradapter">             <bean class="org.springframework.orm.jpa.vendor.hibernatejpavendoradapter">                 <property name="showsql" value="true" />             </bean>         </property>         <property name="jpapropertymap">             <map>                 <entry key="hibernate.dialect" value="org.hibernate.dialect.mysql5innodbdialect"/>                 <entry key="hibernate.hbm2ddl.auto" value="create" />                 <entry key="hibernate.format_sql" value="true"/>             </map>         </property>     </bean>      <bean id="transactionmanager" class="org.springframework.orm.jpa.jpatransactionmanager">         <property name="entitymanagerfactory" ref="entitymanagerfactory"/>     </bean>      <tx:annotation-driven transaction-manager="transactionmanager"/>      <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource">         <property name="driverclassname" value="com.mysql.jdbc.driver" />         <property name="url" value="jdbc:mysql://localhost:3306/fitnesstracker?autoreconnect=true" />         <property name="username" value="root" />         <property name="password" value="" />     </bean> </beans> 

­

change

  <context-param>     <param-name>contextconfiguration</param-name>     <param-value>classpath:/jpacontext.xml</param-value>   </context-param> 

with:

  <context-param>     <param-name>contextconfiglocation</param-name>     <param-value>classpath:/jpacontext.xml</param-value>   </context-param> 

because need definition of root spring container shared servlets , filters, spring search contextconfiglocation context-param.

see contextloader documentation:

processes "contextconfiglocation" context-param , passes value context instance, parsing potentially multiple file paths can separated number of commas , spaces, e.g. "web-inf/applicationcontext1.xml, web-inf/applicationcontext2.xml". ant-style path patterns supported well, e.g. "web-inf/context.xml,web-inf/spring.xml" or "web-inf/**/*context.xml". if not explicitly specified, context implementation supposed use default location (with xmlwebapplicationcontext: "/web-inf/applicationcontext.xml").

check if jpacontext.xml correct location in classpath.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -