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=""
docbase="D:\fileoutput\images"
debug="99" reloadable="true">
<../Context>

<../Host>

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.
java:140)

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


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940204#3940204

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940204


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to