0 Replies Latest reply on Jan 16, 2004 9:46 AM by wbrown338

    404 errors in public folder of war file.

    wbrown338

      Greetings:

      I am getting tomcat 404 errors for images, css files and js files that reside in the public folder area of my war file. Here is an excerpt from the access log file

      127.0.0.1 - - [15/Jan/2004:13:50:12 -0600] "GET / HTTP/1.1" 500 848
      ... "GET /hera HTTP/1.1" 302 -
      ... "GET /hera/ HTTP/1.1" 302 -
      ... "GET /hera/index.htm HTTP/1.1" 304 -
      ... "GET /hera/home.htm HTTP/1.1" 304 -
      ... "GET /hera/footer.htm HTTP/1.1" 304 -
      ... "GET /hera/indexSubHeader1.jsp HTTP/1.1" 200 575
      ... "GET /hera/header.jsp HTTP/1.1" 200 1442
      ... "GET /hera/welcome.htm HTTP/1.1" 304 -
      ... "GET /hera/scripts/stylesheet.css HTTP/1.1" 404 749
      ... "GET /hera/scripts/clientside.js HTTP/1.1" 404 746
      ... "GET /hera/images/GTA_logo.gif HTTP/1.1" 404 740
      ... "GET /hera/images/logogray.gif HTTP/1.1" 404 740
      ... "GET /hera/indexSubHeader2.jsp HTTP/1.1" 200 394

      I am using frames which explains the 304 redirects but why is stylesheet.css, clientside.js and GTA_logo.gif not being found by the embedded tomcat? When the page loads in the browser, it does not render the images, styles or runs the javascript. My warfile is loaded in the ./server/default/deploy folder of jboss. I am using the latest version posted on sourceforge 3.2.3 with Tomcat 4.1.29 embedded.

      My war file has this structure:
      ./scripts
      ./scripts/stylesheet.cs
      ./scripts/clientside.js
      ./images
      ./images/logoX.gif
      ./images/logoY.gif
      ./META-INF
      ./WEB-INF
      ./WEB-INF/web.xml
      ./WEB-INF/classes/...
      ./WEB-INF/lib/...
      index.htm
      abc.jsp
      abc.htm
      def.jsp
      def.htm
      ...

      Has anyone run into this issue or know how to resolve it? Is this possibly a bug in this build of Jboss? Any help is appreciated.

      Thanks.
      Bill.