Hi
I'm using spring 3.1.0.RELEASE, spring webflow 2.3.0.RELEASE and I've the following configuration in my app
Structure in war is the following:Code:<mvc:resources mapping="/resources/**" location="/, classpath:/META-INF/web-resources//> <mvc:default-servlet-handler/>
When I deploy application on local tomcat (mvn tomcat:run), then javascript from jar (e.g. spring/Spring-Dojo.js) is loaded properly. When I deploy it on jboss (5.1.0.GA), then they are not loaded. Other resources (e.g. modernizr-2.0.4.js) are loaded properly in both cases.Code:|-images |-META-INF |-scripts |- modernizr-2.0.4.js |-styles |-WEB-INF |-lib |- spring-js-resources-2.3.0.RELEASE.jar
Any ideas what can be wrong or how I can track the problem ?
Excerpt from logs from tomcat:
09:53:13,160 DEBUG: ( servlet.resource.ResourceHttpRequestHandler) Trying relative path [spring/Spring-Dojo.js] against base location: ServletContext resource [/] (ResourceHttpRequestHandler.java:161)
09:53:13,235 TRACE: ( servlet.resource.ResourceHttpRequestHandler) Relative resource doesn't exist or isn't readable: ServletContext resource [/spring/Spring-Dojo.js] (ResourceHttpRequestHandler.java:171)
09:53:13,241 DEBUG: ( servlet.resource.ResourceHttpRequestHandler) Trying relative path [spring/Spring-Dojo.js] against base location: class path resource [META-INF/web-resources/] ResourceHttpRequestHandler.java:161)
09:53:13,247 DEBUG: ( servlet.resource.ResourceHttpRequestHandler) Found matching resource: class path resource [META-INF/web-resources/spring/Spring-Dojo.js] (ResourceHttpRequestHandler.java:166)
Exceprt from logs from jboss:
2012-01-02 15:27:27,364 DEBUG [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler] (http-10.192.1.100-8080-56) Trying relative path [spring/Spring-Dojo.js] against base location: ServletContext resource [/]
2012-01-02 15:27:27,365 TRACE [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler] (http-10.192.1.100-8080-56) Relative resource doesn't exist or isn't readable: ServletContext resource [/spring/Spring-Dojo.js]
2012-01-02 15:27:27,365 DEBUG [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler] (http-10.192.1.100-8080-56) Trying relative path [spring/Spring-Dojo.js] against base location: class path resource [META-INF/web-resources/]
2012-01-02 15:27:27,365 TRACE [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler] (http-10.192.1.100-8080-56) Relative resource doesn't exist or isn't readable: class path resource [META-INF/web-resources/spring/Spring-Dojo.js]
2012-01-02 15:27:27,365 DEBUG [org.springframework.web.servlet.resource.ResourceH ttpRequestHandler] (http-10.192.1.100-8080-56) No matching resource found - returning 404


Reply With Quote
