Hi,
Need help to fix the exception for not found exception for static resources in a RestEasy-Spring integrated application.

org.jboss.resteasy.spi.NotFoundException: Could not find resource for relative : /js/db-form.js of full path: http://localhost:8080/my-app/js/db-form.js

Throwing warnings in logs for most of static resources like .css, .js, .html and .png..., but there is no issue to load all these files in the application browser. Why the warnings are spitting out. 


Please find my web.xml below

<listener>

        <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>

    </listener>

    <listener>

    <listener-class>org.jboss.resteasy.plugins.spring.SpringContextLoaderListener</listener-class>

  </listener>

    <servlet>

        <servlet-name>db-dispatch</servlet-name>

        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

        <load-on-startup>1</load-on-startup>

    </servlet>


    <servlet-mapping>

        <servlet-name>db-dispatcher</servlet-name>

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

    </servlet-mapping>


    <welcome-file-list>

        <welcome-file>index.html</welcome-file>

    </welcome-file-list>


    <filter>

        <filter-name>springSecurityFilterChain</filter-name>

        <filter-class>

            org.springframework.web.filter.DelegatingFilterProxy</filter-class>

    </filter>

    <filter-mapping>

        <filter-name>springSecurityFilterChain</filter-name>

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

    </filter-mapping>


    <context-param>

        <param-name>contextConfigLocation</param-name>

        <param-value>/WEB-INF/application-security.xml</param-value>

    </context-param>


What is wrong with config file.


Thanks in advance


Get your own FREE website, FREE domain & FREE mobile app with Company email.  
Know More >