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...
Florida web site design



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
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 | 3 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

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!!!

12 plus 4 equals
Type in the answer to the question you see above:

Your comment:

Sorry, no HTML allowed!