0 Replies Latest reply on Apr 28, 2006 12:51 PM by Anurag Mehrotra

    Serving Static images jBoss 4.0.3

    Anurag Mehrotra Newbie

      Has anyone ever tried serving static content (images etc.) in jBoss ver 4.0.3 sp1?

      I am running a default configuration of jBoss listening on port 8080.

      JDK 1.4.2_09

      I have set up my server.xml under jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar to contain the element under Host as follows:

      <!-- Add Static image Files-->

      <..-Context path="/output" appBase=""
      debug="99" reloadable="true">


      To show the tags on this page, I have had to add .. and - (it was being transalated into XML and was not visible)

      jBoss keeps on returning the following error:

      14:08:25,437 ERROR [StandardContext] Error starting static Resources
      java.lang.IllegalArgumentException: Document base E:\jboss-4.0.3SP1\server\default\.\output does not exist or is not a readable directory
      at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.

      I do not understand why path ?/output? is tied to the directory where jBoss is installed and why it is not being treated as a virtual path as follows: http://localhost:8080/output

      I would appreciate any pointers in getting this to work