0 Replies Latest reply on May 9, 2012 9:37 AM by burner.boy

    Inconsistent 404s with some resources

    burner.boy

      Hello everyone!

       

      I'm currently using JBoss EAP 5.1.2 and have deployed a few webapps to it. While the app works fine for most days, on occasion the main page will come out blank. Checking with Firebug shows that some resource requests (anything from javascript files to gif images) 404'd. The problem doesn't go away until I restart the JBoss service, in which everything will work again.

       

      I'm not sure how to begin debugging. Taking a look at the server.log and console.log files shows nothing happening differently during this time period.

       

      If you need more information, I'll gladly provide. I don't even really know where to begin looking so I apologize if this post is light on information.

       

       

      EDIT:
      On closer inspection, I found that the files which begin to 404 are all inside subdirectories of the deployed WAR file. I'm not sure what the relevance is.

       

      As the situation goes, it appears to be:

      1) Site is okay.

      2) Something happens.

      4) Files in subdirectories of webapp can no longer be retrieved

       

      The structure of the webapp looks like:
      myWebApp.war

           /images

                pic1.gif

                ...

           /js

                functions.js

                ...

           /META-INF

           /WEB-INF

           index.jsp

           otherpages.jsp

           ...

       

      Any file contained in the js and images directory can't be retrieved anymore if/when this problem occurs. I'm decently sure that the problem also makes files in META-INF and WEB-INF unreachable since none of my servlets got called when I checked my copy of the attempted load. The jsp files work just fine though.

       

      What's more, because the site will not function until JBoss restarts, I'm fairly certain something involved in searching through subdirectories crashed. I have no idea what that could be.

       

      Would it be possible that this could be fixed by extracting the contents of the war file?