David Kerwick
Jan 28th, 2011, 03:42 AM
Hi,
For some reason when I deploy a war file on weblogic Spring mvc:resources doesn't seem to work. This works fine as a war on Tomcat. To make sure it wasn't me I downloaded the mvc-showcase, did a maven package and deployed on Weblogic (10.3). I get the errors below even though the files are in the war file
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'appServlet' processing GET request for [/mvc-showcase-1.0.0-BUILD-SNAPSHOT/resources/jquery/1.4/jquery.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - Matching patterns for request [/resources/jquery/1.4/jquery.js] are [/resources/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - URI Template variables for request [/resources/jquery/1.4/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - Mapping [/resources/jquery/1.4/jquery.js] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler@206a920] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/mvc-showcase-1.0.0-BUILD-SNAPSHOT/resources/jquery/1.4/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.resource.ResourceH ttpRequestHandler - Trying relative path [jquery/1.4/jquery.js] against base location: ServletContext resource [/resources/]
DEBUG: org.springframework.web.servlet.resource.ResourceH ttpRequestHandler - No matching resource found - returning 404
Any idea what's gone wrong and how best to fix it?
Thanks
David
For some reason when I deploy a war file on weblogic Spring mvc:resources doesn't seem to work. This works fine as a war on Tomcat. To make sure it wasn't me I downloaded the mvc-showcase, did a maven package and deployed on Weblogic (10.3). I get the errors below even though the files are in the war file
DEBUG: org.springframework.web.servlet.DispatcherServlet - DispatcherServlet with name 'appServlet' processing GET request for [/mvc-showcase-1.0.0-BUILD-SNAPSHOT/resources/jquery/1.4/jquery.js]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - Matching patterns for request [/resources/jquery/1.4/jquery.js] are [/resources/**]
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - URI Template variables for request [/resources/jquery/1.4/jquery.js] are {}
DEBUG: org.springframework.web.servlet.handler.SimpleUrlH andlerMapping - Mapping [/resources/jquery/1.4/jquery.js] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler@206a920] and 2 interceptors
DEBUG: org.springframework.web.servlet.DispatcherServlet - Last-Modified value for [/mvc-showcase-1.0.0-BUILD-SNAPSHOT/resources/jquery/1.4/jquery.js] is: -1
DEBUG: org.springframework.web.servlet.resource.ResourceH ttpRequestHandler - Trying relative path [jquery/1.4/jquery.js] against base location: ServletContext resource [/resources/]
DEBUG: org.springframework.web.servlet.resource.ResourceH ttpRequestHandler - No matching resource found - returning 404
Any idea what's gone wrong and how best to fix it?
Thanks
David