-
1. Re: virtual directories in JBoss - possible?
ntone606 Jun 18, 2003 9:01 AM (in response to ntone606)This doesn't seem possible - it is planned for implementation?
-
2. Re: virtual directories in JBoss - possible?
sanjiv_kumar34 Jul 19, 2003 10:57 PM (in response to ntone606)Hi,
R u able to solve the problem of virtual directory then pls let me know
Rgds
Sanjiv -
3. Re: virtual directories in JBoss - possible?
stefano_fornari Jul 28, 2003 6:18 AM (in response to ntone606)I too would like to have this feature
-
4. Re: virtual directories in JBoss - possible?
ereze Aug 19, 2003 4:57 AM (in response to ntone606)If someone got any idea how to accomplish virtual directory settings, please let me know too... I am searching and searching but still no luck. The only solutions currently available are:
1) use a servlet to serve files
2) use Apache at the front with an alias to the virtual directory.
Why can't JBoss add this functionality too? Anyway i someone does come across an idea do tell.
Thanks in advance,
Erez -
5. Re: virtual directories in JBoss - possible?
stefano_fornari Aug 19, 2003 6:25 AM (in response to ntone606)What I have done is simply creating a virtualdir.war in the deploy directory and put my files in there. Then you can access it with /virtualdir context. It is not really like a virtual directory, but it is very close. Instead of virtualdir you can use whatever path you like and with unix symlink you can do nice things....
Stefano -
6. Re: virtual directories in JBoss - possible?
benw Sep 1, 2003 10:05 PM (in response to ntone606)If you are using the JBoss/Jetty configuration, you can do this by changing the Jetty configuration. See
http://www.coredevelopers.net/technology/jetty/jetty-jboss-faq.jsp#I_want_to_serve_content_from_outside_a
for details.
Ben -
7. Re: virtual directories in JBoss - possible?
dmitry_ame Oct 6, 2003 7:27 PM (in response to ntone606)This is all you have to do:
create following jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<virtual-host>hostname.com</virtual-host>
<context-root>/</context-root>
</jboss-web>
It's essential that context-root is specified if you already have a default context mapped to another web application in current container. -
8. Re: virtual directories in JBoss - possible?
haodan Mar 5, 2004 2:32 AM (in response to ntone606)In jboss 3.2.3 you can have the virtual directory. But I think 3.2.3 have many bugs, so if you want use in 3.x or 4.x, you can just copy the code in 3.2.3 into you 3.x compile and replace the tomcat41-service.jar, then you can set your virtual path.
Code in org.jboss.web.catalina.ConfigHandler.
Good luck -
9. Re: virtual directories in JBoss - possible?
starksm64 Mar 5, 2004 11:40 AM (in response to ntone606)Works fine for me. See the description in the following FAQ entry:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824409#3824409 -
10. Re: virtual directories in JBoss - possible?
haodan Mar 7, 2004 8:01 PM (in response to ntone606)I mean 3.0.x or 4.0.x cannot have the virtual directory.right?