-
1. Re: Serving Static Content in External Directories
peterj Feb 12, 2008 1:51 AM (in response to yj4jboss)Those directions should still work - I even used them on 5.0 beta3. The only change is the location of the server.xml file.
-
2. Re: Serving Static Content in External Directories
yj4jboss Feb 12, 2008 3:14 AM (in response to yj4jboss)I am adding the following line below the Host element.
The server.xml file I am modifying is in the folder jboss-web.deployer.
My config is as follows<Host name="localhost" autoDeploy="false" deployOnStartup="false" deployXML="false" configClass="org.jboss.web.tomcat.security.config.JBossContextConfig" > <Context debug="99" docBase="C:/enforcement/UserFiles" path="/repo" reloadable="true" appBase="/aewa/"/>
This approach does not seem to work :(
Please help
Regards,
Yogesh -
3. Re: Serving Static Content in External Directories
jfclere Feb 12, 2008 3:30 AM (in response to yj4jboss)Could you try something like:
<Context debug="99" appBase="C:/enforcement/UserFiles" path="/repo" docBase="aewa" reloadable="true"/>
Guessing that the application is in C:/enforcement/UserFiles/aewa" -
4. Re: Serving Static Content in External Directories
yj4jboss Feb 12, 2008 3:46 AM (in response to yj4jboss)Does not work :(
-
5. Re: Serving Static Content in External Directories
chris.katsuo Feb 12, 2008 5:30 AM (in response to yj4jboss)Hi,
jfrederic.clere@jboss.com wrote :Guessing that the application is in C:/enforcement/UserFiles/aewa"
but yj4jboss wrote :serve static contents
Are there different settings when it is an application and when it is a files repository ?
Best regards,
Christophe -
6. Re: Serving Static Content in External Directories
jfclere Feb 12, 2008 8:31 AM (in response to yj4jboss)I have put the following in server.xml
<Context displayName="Support Case Sample" path="/test" docBase="/tmp/test" />
and http://localhost:8080/test serves my index.html file without problem[jfclere@jfcpc jboss-4.2.0.GA]$ ls -lt /tmp/test total 4 -rw-rw-r-- 1 jfclere jfclere 10 2008-02-12 14:24 index.html
-
7. Re: Serving Static Content in External Directories
peterj Feb 12, 2008 9:37 AM (in response to yj4jboss)Christophe, yes there is a difference between serving static content (html, css, gif, jpg, and so on) and applications (jsp, servlet). Static content locations can be configured in server.xml, as jfredric.clere pointed out. External application locations can be configured in the server/xxx/conf/jboss-service.xml file (look at the "URIs" attribute in the last MBean in the file).