Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JBoss-2.4.3_Tomcat-3.2.3 virtual directory  RSS feed

Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" ?>
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"
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!