Did you every find a solution to this problem? I want to do the same thing.
I want to have some static content in a predetermined directory, not a temp directory from an expanded war that could change at any time.
jboss-3.0.4 did not support this level of integration. jboss-3.2.3 does by adding a Context entry to the jbossweb-tomcat41.sar/META-INF/jboss-service.xml descriptor:
<server> <mbean code="org.jboss.web.tomcat.tc4.EmbeddedTomcatService" name="jboss.web:service=WebServer"> ... <attribute name="Config"> <Server> <Service name="JBoss-Tomcat"> <Engine name="MainEngine" defaultHost="localhost"> <Logger className="org.jboss.web.tomcat.Log4jLogger" verbosityLevel="debug" category="org.jboss.web.localhost.Engine"/> ... <Host name="localhost"> ... <!-- Default context parameters --> <DefaultContext cookies="true" crossContext="true" override="true"/> <!-- Add a static context /images using directory /tmp/images --> <Context docBase='C:/tmp/images' path='/images' /> ...
Is there a possibility to do only the context-configuration in the some.war/WEB-INF/web.xml ord some.war/WEB-INF/jboss-web.xml.
So I'd like to have my some.war-directory deployed in the default /deploy directory which includes the WEB-INF subdirectory. But the static HTML-content is outside of the some.war-directory.
I was able to create a static context using 3.2.3 by adding the Context to jboss-service.xml as above.
However, when I tried to do the same thing with 3.2.5 by adding a Context tag in server.xml, it didn't work. Can someone tell me how to do this with the new Tomcat configuration?
did anyone try in jboss-3.2.0? If so, please let me know the procedure. I tried the instructions given in http://www.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories but they did not help me. They have explained only for jboss-3.2.3 onwards but not for jboss-3.2.0.
Immediate reply in this regard would be helpful.