I'm trying to get Tomcat 6 and Railo 3.3 running on my local development box. My experience is with Adobe ColdFusion and figured I would try something new.
I have installed Tomcat in d:\dev\tomcat6\
.
I then downloaded Railo's latest war, renamed it to railoapplication1.war and copied it to d:\dev\tomcat6\webapps\
and let it do it's thing.
Tested it I can get to my Tomcat at http://localhost:8080/
and Railo at http://localhost:8080/railoapplication1
Now from what I understand copying the war file this way is the equivalent of creating a new multi-server instance (Under Adobe ColdFusion). After that's done I would usually link up a website to that said instance with a connector.
This is where I get a little confused. My main goal here would be to have multiple 'instances' accessible through the main tomcat binding
localhost:8080/railoapplication1
localhost:8080/railoapplication2
...
localhost:8080/railoapplicationN
But would like to keep my application files seperate from this without using an Apache frontend.
e.g. I want my application at railoapplication1:8080 to look like this:
application files at d:\dev\www\railoapplication1
using the war deployed under d:\dev\tomcat6\webapps\railoapplication1
I've tried editing Tomcat's servers.xml to no avail.
<Host name="railoapplication1" appBase="webapps\railoapplication1"
unpackWARS="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="d:/dev/www/railoapplication1" />
</Host>
If I do that I can then browse to
http://railoapplication1:8080/index.cfm (a test page)
but it's not getting picked up by Railo at all and I get plain-text instead of seeing my CFML executed
<cfoutput>#now()#</cfoutput>
I must be doing something wrong obviously as it looks like a pretty standard setup.
You are mixing up
appBase
withdocBase
. If you put all the Railo instances ind:\dev\tomcat6\webapps\
, you can configure virtual host in Tomcat as belows: