my dog learned polymorphism*
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
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
Author

JBoss-2.4.3_Tomcat-3.2.3 virtual directory

Raghav Mathur
Ranch Hand

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


Raghav.
Jeremy Davis
Greenhorn

Joined: Feb 07, 2003
Posts: 17
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
 
subject: JBoss-2.4.3_Tomcat-3.2.3 virtual directory
 
Similar Threads
where is the 'service=Hypersonic' link
Configuration of Jboss in Eclipse
New Problem: AbstractMethodError w/TransformerFactory
JBOSS DOWNLOADING
Simple Hello example for JBOSS