-
1. Re: Serving static pages with JBoss3.0.4/Catalina4.0.6
wiberto Mar 30, 2004 5:23 PM (in response to skidvd)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.
Thanks,
Jose -
2. Re: Serving static pages with JBoss3.0.4/Catalina4.0.6
starksm64 Mar 31, 2004 8:54 PM (in response to skidvd)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' /> ...
-
3. Re: Serving static pages with JBoss3.0.4/Catalina4.0.6
alex75 Jul 19, 2004 12:15 PM (in response to skidvd)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.
Thanks, Alex. -
4. Re: Serving static pages with JBoss3.0.4/Catalina4.0.6
mbh Jul 20, 2004 1:01 AM (in response to skidvd)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?
Thanks. -
5. Re: Serving static pages with JBoss3.0.4/Catalina4.0.6
jeyalakshminethaji Jan 13, 2005 6:05 AM (in response to skidvd)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.
Thanks