Hi Bill,

    Need help to 
fix org.jboss.resteasy.spi.NotFoundException for static resources in 
a RestEasy-Spring integrated application.It is throwing warnings as could not 
find resource for files like .css, .js, .html, .png files in log whereas 
I'm not finding any issue in browser with these files.
Please find the exception details and config file below and could you please 
suggest me if any misconfiguration in my config file.







WARN  17 Nov 2013 20:21:37 [http-bio-8080-exec-1] 
[org.jboss.resteasy.springmvc.ResteasyHandlerMapping - error() - Resource Not 
Found: Could not find resource for relative : 
/css/images/ui-bg_flat_0_aaaaaa_40x100.png of full path: 
http://localhost:8080/myapp/css/images/ui-bg_flat_0_aaaaaa_40x100.png] 
org.jboss.resteasy.spi.NotFoundException: Could not find resource for relative 
: /css/images/ui-bg_flat_0_aaaaaa_40x100.png of full path: 
http://localhost:8080/quantum-monitoring/css/images/ui-bg_flat_0_aaaaaa_40x100.png
        at 
org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:360)
        at 
org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:374)
        at 
org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:367)
        at 
org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:251)
        at 
org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:173)
        at 
org.jboss.resteasy.springmvc.ResteasyHandlerMapping.getInvoker(ResteasyHandlerMapping.java:99)
        at 
org.jboss.resteasy.springmvc.ResteasyHandlerMapping.getHandler(ResteasyHandlerMapping.java:76)
        at 
org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1063)
        at 
org.springframework.web.servlet.DispatcherServlet.getHandler(DispatcherServlet.java:1048)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:886)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
        at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at 
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:178)
        at 
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:155)
        at 
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
        at 
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) 
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.DispatchServlet</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>  
  
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class></filter-mapping>
<filter-mapping>    
<filter-name>springSecurityFilterChain</filter-name>    
<url-pattern>/*</url-pattern></filter-mapping>
<context-param>    
 <param-name>contextConfigLocation</param-value>    
 <param-value>/WEB-INF/application-security.xml</param-value></context-param>

Anything wrong with config file?
Thanks in advance.


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to