java - how can i access css and images in spring mvc -


i'm trying access css in jsp while using spring mvc. couldn't. tried adding solutions posted on other forums couldn't work.

here web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5"> <display-name>project1</display-name> <servlet> <servlet-name>spring</servlet-name> <servlet-class>         org.springframework.web.servlet.dispatcherservlet     </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>  <filter> <filter-name>myfilter</filter-name> <filter-class>filter.myfilter</filter-class> </filter>   <filter-mapping> <filter-name>myfilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>  </web-app> 

spring-servlet.xml

   <beans xmlns="http://www.springframework.org/schema/beans"    xmlns:context="http://www.springframework.org/schema/context"    xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"    xmlns:tx="http://www.springframework.org/schema/tx"    xsi:schemalocation="    http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd    http://www.springframework.org/schema/context     http://www.springframework.org/schema/context/spring-context-3.0.xsd   http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">   <context:component-scan     base-package="model,controller,dto,service" />  <tx:annotation-driven transaction-manager="hibernatetransactionmanager" />  <bean     class="org.springframework.web.servlet.view.internalresourceviewresolver"     id="jspviewresolver">     <property name="viewclass"         value="org.springframework.web.servlet.view.jstlview"></property>     <property name="prefix" value="/web-inf/jsp/"></property>     <property name="suffix" value=".jsp"></property> </bean>  <bean class="org.springframework.jdbc.datasource.drivermanagerdatasource"     id="datasource">     <property name="driverclassname" value="com.mysql.jdbc.driver"></property>     <property name="url" value="jdbc:mysql://localhost:3306/test"></property>     <property name="username" value="root"></property>     <property name="password" value="tpg@1234"></property> </bean>  <bean     class="org.springframework.orm.hibernate3.annotation.annotationsessionfactorybean"     id="sessionfactory">     <property name="datasource" ref="datasource"></property>     <property name="annotatedclasses">         <list>             <value>model.user</value>                <value>model.role</value>             <value>model.category</value>             <value>model.item</value>             <value>model.billable</value>         </list>     </property>      <property name="hibernateproperties">         <props>             <prop key="hibernate.dialect">org.hibernate.dialect.mysql5dialect</prop>             <prop key="hibernate.show_sql">true</prop>             <prop key="hibernate.hbm2ddl.auto">update</prop>         </props>                 </property> </bean>  <bean class="org.springframework.orm.hibernate3.hibernatetransactionmanager"     id="hibernatetransactionmanager">     <property name="sessionfactory" ref="sessionfactory"></property> </bean>  <bean id="multipartresolver" class="org.springframework.web.multipart.commons.commonsmultipartresolver">     <property name="maxuploadsize" value="1000000"></property> </bean>  </beans> 

i have created css folder inside webcontent folder , kept css file there.

my jsp:

<%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@page session="false"%>   <!doctype html> <html> <head> <link type="text/css" href="resources/css/bootstrap.min.css" rel="stylesheet"/> <script src="resources/js/bootstrap.min.js" ></script> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">  <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />  <title>insert title here</title> <style>   </style> </head>  <body>    <div class="wrap">      <div class="avatar">      </div>     <form action="record/authenticate" method="post">     <input type="text" id="uname" name="uname" placeholder="username" required>     <div class="bar">         <i></i>     </div>     <input type="password" id="pass" name="pass" placeholder="password" required>     <br>     <input type = "submit" value = "submit">     </form> </div>  <script src="js/index.js"></script>  </body> </html> 

edited

as per suggested answers edited spring-servlet.xml. i'm getting error org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception in line containing

my edited spring-servlet.xml

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemalocation="     http://www.springframework.org/schema/beans      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd     http://www.springframework.org/schema/mvc     http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd     http://www.springframework.org/schema/context      http://www.springframework.org/schema/context/spring-context-3.0.xsd     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">  <mvc:default-servlet-handler/>  <context:component-scan     base-package="model,controller,dto,service" />  <tx:annotation-driven transaction-manager="hibernatetransactionmanager" />  <bean     class="org.springframework.web.servlet.view.internalresourceviewresolver"     id="jspviewresolver">     <property name="viewclass"         value="org.springframework.web.servlet.view.jstlview"></property>     <property name="prefix" value="/web-inf/jsp/"></property>     <property name="suffix" value=".jsp"></property> </bean>  <bean class="org.springframework.jdbc.datasource.drivermanagerdatasource"     id="datasource">     <property name="driverclassname" value="com.mysql.jdbc.driver"></property>     <property name="url" value="jdbc:mysql://localhost:3306/test"></property>     <property name="username" value="root"></property>     <property name="password" value="tpg@1234"></property> </bean>  <bean     class="org.springframework.orm.hibernate3.annotation.annotationsessionfactorybean"     id="sessionfactory">     <property name="datasource" ref="datasource"></property>     <property name="annotatedclasses">         <list>             <value>model.user</value>                <value>model.role</value>             <value>model.category</value>             <value>model.item</value>             <value>model.billable</value>         </list>     </property>      <property name="hibernateproperties">         <props>             <prop key="hibernate.dialect">org.hibernate.dialect.mysql5dialect</prop>             <prop key="hibernate.show_sql">true</prop>             <prop key="hibernate.hbm2ddl.auto">update</prop>         </props>                 </property> </bean>  <bean class="org.springframework.orm.hibernate3.hibernatetransactionmanager"     id="hibernatetransactionmanager">     <property name="sessionfactory" ref="sessionfactory"></property> </bean>  <bean id="multipartresolver" class="org.springframework.web.multipart.commons.commonsmultipartresolver">     <property name="maxuploadsize" value="1000000"></property> </bean>  </beans> 

stacktrace

org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: line 18 in xml document servletcontext resource [/web-inf/spring-servlet.xml] invalid; nested exception org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:396) @   org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:124) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:93) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:465) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:395) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:443) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:459) @  org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:340) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:307) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:127) @ javax.servlet.genericservlet.init(genericservlet.java:158) @ org.apache.catalina.core.standardwrapper.initservlet(standardwrapper.java:1284) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1197) @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1087) @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:5210) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5493) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(futuretask.java:262) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) caused by: org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.apache.xerces.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ org.apache.xerces.util.errorhandlerwrapper.error(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.reportschemaerror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.handlestartelement(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.emptyelement(unknown source) @ org.apache.xerces.impl.xmlnsdocumentscannerimpl.scanstartelement(unknown source) @  org.apache.xerces.impl.xmldocumentfragmentscannerimpl$fragmentcontentdispatcher.dispatch(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:75) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:388) ... 28 more  nov 11, 2014 3:39:07 pm org.apache.catalina.core.standardcontext loadonstartup severe: servlet /project1 threw load() exception org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex-type.2.4.c:  matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.apache.xerces.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ org.apache.xerces.util.errorhandlerwrapper.error(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.reportschemaerror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.handlestartelement(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.emptyelement(unknown source) @ org.apache.xerces.impl.xmlnsdocumentscannerimpl.scanstartelement(unknown source) @     org.apache.xerces.impl.xmldocumentfragmentscannerimpl$fragmentcontentdispatcher.dispatch(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:75) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:388) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:124) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:93) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:465) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:395) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:443) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:459) @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:340) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:307) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:127) @ javax.servlet.genericservlet.init(genericservlet.java:158) @ org.apache.catalina.core.standardwrapper.initservlet(standardwrapper.java:1284) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1197) @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1087) @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:5210) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5493) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(futuretask.java:262) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745)  nov 11, 2014 3:39:07 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-bio-8080"] nov 11, 2014 3:39:07 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["ajp-bio-8009"] nov 11, 2014 3:39:07 pm org.apache.catalina.startup.catalina start info: server startup in 4696 ms nov 11, 2014 3:39:09 pm org.apache.catalina.core.applicationcontext log info: initializing spring frameworkservlet 'spring' nov 11, 2014 3:39:09 pm org.apache.catalina.core.applicationcontext log severe: standardwrapper.throwable org.springframework.beans.factory.xml.xmlbeandefinitionstoreexception: line 18 in xml document  servletcontext resource [/web-inf/spring-servlet.xml] invalid; nested exception org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex-type.2.4.c: matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:396) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:124) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:93) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:465) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:395) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:443) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:459) @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:340) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:307) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:127) @ javax.servlet.genericservlet.init(genericservlet.java:158) @ org.apache.catalina.core.standardwrapper.initservlet(standardwrapper.java:1284) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1197) @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:864) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:134) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1040) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:607) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:314) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:745) caused by: org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex- type.2.4.c: matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.apache.xerces.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ org.apache.xerces.util.errorhandlerwrapper.error(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.reportschemaerror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.handlestartelement(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.emptyelement(unknown source) @ org.apache.xerces.impl.xmlnsdocumentscannerimpl.scanstartelement(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl$fragmentcontentdispatcher.dispatch(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:75) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:388) ... 34 more  nov 11, 2014 3:39:09 pm org.apache.catalina.core.standardwrappervalve invoke severe: allocate exception servlet spring org.xml.sax.saxparseexception; linenumber: 18; columnnumber: 32; cvc-complex-type.2.4.c:   matching wildcard strict, no declaration can found element 'mvc:default-servlet-handler'. @ org.apache.xerces.util.errorhandlerwrapper.createsaxparseexception(unknown source) @ org.apache.xerces.util.errorhandlerwrapper.error(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xmlerrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator$xsierrorreporter.reporterror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.reportschemaerror(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.handlestartelement(unknown source) @ org.apache.xerces.impl.xs.xmlschemavalidator.emptyelement(unknown source) @ org.apache.xerces.impl.xmlnsdocumentscannerimpl.scanstartelement(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl$fragmentcontentdispatcher.dispatch(unknown source) @ org.apache.xerces.impl.xmldocumentfragmentscannerimpl.scandocument(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xml11configuration.parse(unknown source) @ org.apache.xerces.parsers.xmlparser.parse(unknown source) @ org.apache.xerces.parsers.domparser.parse(unknown source) @ org.apache.xerces.jaxp.documentbuilderimpl.parse(unknown source) @ org.springframework.beans.factory.xml.defaultdocumentloader.loaddocument(defaultdocumentloader.java:75) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:388) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:143) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:178) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:149) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:124) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:93) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:465) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:395) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:443) @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:459) @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:340) @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:307) @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:127) @ javax.servlet.genericservlet.init(genericservlet.java:158) @ org.apache.catalina.core.standardwrapper.initservlet(standardwrapper.java:1284) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1197) @ org.apache.catalina.core.standardwrapper.allocate(standardwrapper.java:864) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:134) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:501) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1040) @      org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:607) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:314) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:745) 

your dispatcherservlet (web.xml) mapped root url:

<url-pattern>/</url-pattern> 

that means, requests resources delegated servlet. can either:

a: define different servlet mapping:

<url-pattern>/app/*</url-pattern> - listens urls starting "/app" (i.e.: /app/jspfile1.jsp) <url-pattern>*.jsp</url-pattern> - listens jsp files 

b: use default servlet handler fallback:

add "spring-servlet.xml":

<mvc:default-servlet-handler/> 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -