NO MORE CAREER
POLITICIANS!
Get Out Of Our House: Replacing congress with TRUE citizens!
Contact Doug!
Learn About Doug!
View Doug Boude's online resume
updated 11/18/2009

View Doug Boude's profile on LinkedIn
Link to me!

Follow Doug Boude on Twitter
Follow me!

Be Doug's friend on Facebook
Befriend me!
(I promise not to follow you home)
OO Lexicon
Chat with Doug!
Recent Entries
You may also be interested in...
Web Hosting

best web hosting - top web hosting sites, thetop10bestwebhosting.com

Czech your Page Rank!
Check Page Rank of any web site pages instantly:
This free page rank checking tool is powered by Page Rank Checker service
Surf's Up!
Visit Egosurf.org and massage YOUR web ego!
My Score: 9,001
Doug's Books

Read (and recommend)

  • Men are from Mars, Women are from Venus
  • The Wisdom of Crowds: Why the Many Are Smarter Than the Few and How Collective Wisdom Shapes Business, Economies, Societies and Nations
  • Blink: The Power of Thinking Without Thinking
  • Head First Design Patterns
  • Transact-SQL Programming
  • What's So Amazing About Grace?
  • Just So Stories (Rudyard Kipling collection)

Reading

  • Prayer: Does it Make Any Difference?
  • Data Mining (Practical Machine Learning Tools and Techniques)
<< August, 2006 >>
SMTWTFS
12345
6789101112
13141516171819
20212223242526
2728293031
Search Blog

Recent Comments
Re: Railo 3.1 on Windows Server 2008 and IIS7 - Part 3 of 3 (by Jon at 8/27 2:04 PM)
Re: Hosts File Changes Not Acknowledged on Vista 64 (by Spacy at 8/24 3:46 PM)
Re: THE DAY CFUNITED DIED (by ComboFusion at 8/23 10:50 AM)
Re: My Grandpa (by Tasha at 8/10 4:29 PM)
Re: Just What IS a 'Service Layer', Anyway? (by dougboude at 8/02 10:10 AM)
Re: Just What IS a 'Service Layer', Anyway? (by Isaac at 8/02 2:25 AM)
Re: PayPal IPN Coldfusion CFC (by Soyestudiambre at 7/25 6:12 PM)
Re: PHP vs COLDFUSION (by Tony Garcia at 7/17 11:24 AM)
Re: PHP vs COLDFUSION (by dougboude at 7/14 8:45 AM)
Re: PHP vs COLDFUSION (by Lola LB at 7/14 5:51 AM)
Categories
Archives
Photo Albums
Funnies (5)
Family (3)
RSS

Powered by
BlogCFM v1.11

20 October 2009
Adding a Railo Site in W2k8/IIS7/Tomcat Environment

I took the time to document the steps I went through when adding a new Railo-enabled IIS7 site, so thought I'd share them. This brief tutorial assumes that you have already previously installed Railo in this environment and that the site you are creating has either its own domain or subdomain name. My specific scenario is that I'm using Railo 3.1x on Windows Standard Server 2008 with IIS7 and Tomcat 6. You may have to adjust some of the steps to fit your particular environment.

Adding a New Railo Site

1. Create a new site in IIS

    a.create a folder that will be the root of your new site;

    b. Add the site in IIS and point it to the folder you created above;

add web site in iis7

2. Create a small test.html page and drop it in to your new site's root

3. add the new site name to either your HOSTS file or your DNS (if you manage that yourself)

edit hosts file

4. Open a browser and browse to your test.html file, just to test things up to this point.

testing hello world

5. Add a virtual directory to your site called "jakarta" that points to the folder in which your isapi_redirect-1.2.28.dll (or equivalent) redirector resides. (if you don't know what the redirector is, you may need to visit the prior tutorials on installing Railo the first time.)

add virtual directory iis7

6. Add an ISAPI filter to your site that points to the redirector DLL mentioned in the previous step

add isapi filter iis7

7. Restart the site in IIS

8. Create a small test CFM template in your site's root

9. Add a HOST entry to your Tomcat6/conf/server.xml file

add host entry server xml tomcat

10. Restart Tomcat (you'll now notice that a WEB-INF folder was created in your new site's root! This is a very good sign)

restart Tomcat windows

restart Tomcat

web-inf folder railo added

web-inf folder was added automatically!

11. Browse to your test CFM template. You should be having success at this point!

test cfm template




Posted by dougboude at 12:11 PM | PRINT THIS POST! |Link | 7 comments
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
Thanks for posting this.

The first thing I've come across that I need clarified...when creating the site in IIS, I create mine with host names since my server only has one IP address. Would this effect anything?
Posted by JD on October 20, 2009 at 1:07 PM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
@JD - no sir, the host names doesn't affect anything at all. Since all railo requests have to come IN through IIS, as long as they end up at your site, AND as long as Tomcat knows the name of the site and the actual root folder it uses, you're good to go!
Posted by dougboude on October 20, 2009 at 1:36 PM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
OK...Still some problems for me.

I hadn't done any of the host file changes before this since I was handling it in my DNS settings. So I tried adding my site to the hosts like this:

127.0.0.1 www.mydomain.com

Here's what happens:

When browsing locally from the web server -
http://www.mydomain.com/test.html = works fine.
http://www.mydomain.com/index.cfm = HTTP Error 404.3 - Not Found
http://www.mydomain.com:8081/index.cfm = works like a charm...page processes as expected.

When browsing from an external machine -
http://www.mydomain.com/test.html = works fine.
http://www.mydomain.com/index.cfm = 404 - File or directory not found.
http://www.mydomain.com:8081/index.cfm = times out...no response.

Any ideas?
Posted by JD on October 20, 2009 at 1:45 PM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
Nice screen shots :-). That's from a GearHost (www.gearhost.com) server.
Posted by Ryan Kekos on March 16, 2010 at 12:59 AM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
@Ryan - why, yes it is, Ryan! And since we are on the subject, let me just say that Gearhost has been the most AWESOME hosting company!!! Technical support is suPERB!!!! I highly recommend them.
Posted by dougboude on March 16, 2010 at 9:49 AM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
I have used your handy guide to setup a couple of servers, it has worked on 1 but not on the other, I get a server 500 error when trying to access any cfm page through IIS. RaILO IS WORKING ON PORT 8080 just fine, so it appears to be a problem with the isapi redirector, but I cannot see any difference between the working server and the broken server. Any suggestions ?

Both servers are windows 2008 R2 64bit running the same version of java, railo, isapi_redirector and tomcat.
Posted by snake on May 13, 2010 at 4:24 PM

Re: Adding a Railo Site in W2k8/IIS7/Tomcat Environment
@russ -
I haven't touched this in quite a while, so i'm shooting in the dark, but...

did you make sure and enable the application pool in IIS to be 32 bit? the redirector dll is 32 bit, so i think that has to be set in order for it to work right.

Besides that, the only thing i would recommend is to do what i had to do a few times: start all over with the IIS config part of things. create a new site, virtual jakarta folder, etc.

Let me know what you figure out if it's something different than the TO DO items in the blog post!

Doug :0)
Posted by dougboude on May 13, 2010 at 6:25 PM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Time to take the Turing Test!!!

19 plus 1 equals
Type in the answer to the question you see above:

Your comment:

Sorry, no HTML allowed!