File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes JBoss-2.4.3_Tomcat-3.2.3 virtual directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss-2.4.3_Tomcat-3.2.3 virtual directory" Watch "JBoss-2.4.3_Tomcat-3.2.3 virtual directory" New topic

JBoss-2.4.3_Tomcat-3.2.3 virtual directory

Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
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

Jeremy Davis

Joined: Feb 07, 2003
Posts: 17
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"
I agree. Here's the link:
subject: JBoss-2.4.3_Tomcat-3.2.3 virtual directory
jQuery in Action, 3rd edition