Announcement Announcement Module
Collapse
No announcement yet.
Strange redirect problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strange redirect problem

    Hi! I'm new using Spring Framework. I have been created and deploy successfully and entire spring-web application in my working core, a Sun One Application Server v 7.0.0.3. All works fine!!

    Although, the company decided to upgrade de app server to the new release, the 8.1, and the problems begin.

    The mappings of the *.htm requests into my *.jsp files seems to work fine, because I can see the page, but I can not access any of my resources, any image or any css stylesheet.

    The trace that httpwatch brings to me when I want to acces an image directely is like that:

    Code:
    GET /satuab/styles/spring-demo.css     HTTP/1.1 302 0
    GET /satuab/styles/spring-demo.css/     HTTP/1.1 302 0
    GET /satuab/styles/spring-demo.css/index.htm     HTTP/1.1 404 937
    1) I want to get the resource
    2) Spring (I think) adds "/" to the URL
    3) The welcome-file is added to the URL

    I don't know exactly if the problem comes from my Application Server or from the Spring app, but a simple web app without Spring works fine and a simple spring-web app (with Spring, of course) doesn't work.

    Any idea of how can I solve this problem?

    Thanks in advance.

  • #2
    302 is explained here. For some reason the css cannot be found and the server falls back to check if it is a directory and next a welcome page.

    I guess it is a server configuration somewhere in SUN.

    Comment


    • #3
      yes, it seems a server configuration, but the fact that in the same instance of the Application Server a non-spring web app works fine and the spring-based web app fails .... seems that maybe the reason comes from Spring too.

      Thanks for all!

      Comment

      Working...
      X