• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss-2.4.3_Tomcat-3.2.3 virtual directory

 
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am trying to figure out as to how should i set a virtual directory in my Jboss(JBoss-2.4.3_Tomcat-3.2.3 ) applpication server but in vain.
Can anybody please guide me a bit as to how should i go about setting a virtual directory in Jboss so that i don't need to type the machine name and the port in the url while accessing my application.
Thanks in advance
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raghav,
I don't know if you still need this info or not. But you need to add two files. First a jboss-web.xml file to the WEB-INF directory of your war file. It should look like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jboss-web>
<context-root>/</context-root>
<virtual-host>yourname.yourdomain</virtual-host>
</jboss-web>
Second, add something like the following lines to your server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml file:
<Host name="yourname.yourdomain">
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="yourname" suffix=".log"
pattern="common"
directory="${jboss.server.home.dir}/log"/>
</Host>
 
reply
    Bookmark Topic Watch Topic
  • New Topic