File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss-2.4.3_Tomcat-3.2.3 virtual directory

 
Raghav Mathur
Ranch Hand
Posts: 641
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Jeremy Davis
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • 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>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic