javascript - Error in Admin Panel: Failed to load resource: the server responded with a status of 404 (Not Found) -


i creating simple admin panel spring mvc 4.1.6.release.

i have problem - failed load resource: server responded status of 404 (not found). not understand. wrong ?

picture index.jsp

i have following files. structure file web :

  • assets

    -- bower_components

    -- css

    -- js

    -- image

  • web-inf

    -- applicationcontext.xml

    -- dispatcher_servlet.xml

    -- index.jsp

index.jsp

<head>     <title>registration page</title> <link href="assets/css/style.css" rel="stylesheet"> <script src="assets/bower_components/angularjs/angular.js" type="application/javascript"></script> <script src="assets/bower_components/jquery/jquery.js" type="application/javascript"></script> <script src="assets/bower_components/bootstrap/dist/js/bootstrap.js" type="application/javascript"></script> <script src="assets/bower_components/bootstrap/dist/js/bootstrap.min.js" type="application/javascript"></script> <link href="assets/bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet"/> <link href="assets/bower_components/bootstrap/dist/css/bootstrap-theme.css" rel="stylesheet"/> <link href="assets/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> <link href="assets/bower_components/bootstrap/dist/css/bootstrap-theme.min.css" rel="stylesheet"/> <script src="assets/bower_components/bootbox/boot.js" type="application/javascript"></script> <script src="assets/bower_components/bootbox/bootbox.js" type="application/javascript"></script> <script src="assets/bower_components/bootbox/bootbox.min.js" type="application/javascript"></script> </head> 

dispatcher-servlet.xml

<beans xmlns="http://www.springframework.org/schema/beans"        xmlns:mvc="http://www.springframework.org/schema/mvc"        xmlns:context="http://www.springframework.org/schema/context"        xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"        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.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">      <context:component-scan base-package="com"/>     <mvc:resources location="/assets/" mapping="/assets/**"/>     <mvc:default-servlet-handler/>     <mvc:annotation-driven/>     <bean id="jspviewresolver"           class="org.springframework.web.servlet.view.internalresourceviewresolver">         <property name="viewclass"                   value="org.springframework.web.servlet.view.jstlview"/>         <property name="prefix" value="/"/>         <property name="suffix" value=".jsp"/>     </bean>      <bean id="mysessionfactory"           class="org.springframework.orm.hibernate3.localsessionfactorybean">         <property name="configlocation" value="classpath*:hibernate.cfg.xml"/>     </bean>  </beans> 

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"          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>springexamples</display-name>     <servlet>         <servlet-name>dispatcher</servlet-name>         <servlet-class>             org.springframework.web.servlet.dispatcherservlet         </servlet-class>         <load-on-startup>1</load-on-startup>     </servlet>     <servlet-mapping>         <servlet-name>dispatcher</servlet-name>         <url-pattern>/</url-pattern>     </servlet-mapping>     <welcome-file-list>         <welcome-file>index.jsp</welcome-file>     </welcome-file-list> </web-app> 

hibenate.cfg.xml

<?xml version='1.0' encoding='utf-8'?> <!doctype hibernate-configuration public     "-//hibernate/hibernate configuration dtd//en"     "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> <hibernate-configuration>   <session-factory>     <property name="hbm2ddl.auto">update</property>     <property name="hibernate.dialect">       org.hibernate.dialect.postgresqldialect     </property>     <property name="connection.url">       jdbc:postgresql://127.0.0.1:5432/employee     </property>     <property name="connection.driver_class">       org.postgresql.driver     </property>     <property name="connection.username">       postgres     </property>     <property name="connection.password">       1001     </property>     <mapping class="com.model.employee"/>   </session-factory> </hibernate-configuration> 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -