----- Original Message -----
Sent: Thursday, March 28, 2002 5:14
PM
Subject: RE: [JBoss-user] JBOSS and
Virtual Hosts
Sorry, I guess I forgot some stuff. tomcat.xml
is my Tomcat's server.xml
In
jboss.conf :
<MLET CODE = "org.jboss.util.ClassPathExtension"
ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String"
VALUE="/home/jakarta-tomcat/lib/">
<ARG
TYPE="java.lang.String"
VALUE="Tomcat">
</MLET>
I
have my tomcat files in the /home/jakarta-tomcat/lib/ dir.
jboss.jcml
<mbean
code="org.jboss.tomcat.EmbeddedTomcatServiceSX"
name="DefaultDomain:service=EmbeddedTomcat">
<attribute
name="ConfigFile">/home/jboss/conf/vhost1/tomcat.xml</attribute>
</mbean>
This
is the key piece since it tells jboss to use the tomcat.xml for setting the
tomcat startup params.
I
knew it was more difficult than my first post stated, but I forgot what I
did.
-James
I�ve got JBoss 2.4.4. I can�t imagine that the
difference between those two versions is so large. Does the tomcat.xml
come with the jboss-tomcat bundle? Can you give me a short insight as
to what this tomcat.xml is?
Thanks Michael
----- Original Message -----
Sent: Thursday, March 28, 2002 4:27
PM
Subject: RE: [JBoss-user] JBOSS and
Virtual Hosts
JBoss 2.4.3 with Tomcat.
I am also working on do this with
3.0.
-James
Hi James,
Just one question to your setup. Which version
of tomcat and which version of jboss are you using? I�m asking
because I don�t know what "tomcat.xml" you�re referring to. I
don�t seem to have one.
Michael
Here are my config file
snippets:
httpd.conf
<VirtualHost
123.456.789.012:80>
DocumentRoot
/home/www/vhost1
ServerName vhost1
JkMount /*
vhost1
</VirtualHost>
workers.properties should be easy ( point
vhost1 to the ajp13 port )
tomcat.xml in the jboss/conf/vhost1 dir (this
one is also easy, just setup ajp13)
Make sure that jboss starts with embedded
tomcat.
I have this working in a few different
places. However it did take me weeks to figure it
out.
I hope this helps.
-James
Hi All,
As I have not managed to get an answer on this
topic in the forum yet, I shall try it with this list!
Is it possible to have a virtual host set up in an
Apache HTTP Server and have it communicate with
JBOSS/Tomcat(embeded).
i.e. http://test.virtualhost.com/jboss/servlet/HelloEJB
If I run the line using the localhost as follows:
it works fine but as soon as I try it with the virtual host it
just will not work.
I�m using the ajp13 connector, could this be the problem?
Is there anyone in this list who has got it working. I
really need some help because I have tried everything and it really
is frustrating!!
Thanks in advance
Michael
Delamere