Re: [railo] railo 4 tomcat 7 and IIS 7

761 views
Skip to first unread message

Igal Sapir

unread,
Dec 13, 2012, 4:03:51 AM12/13/12
to Railo List

Try the BonCode connector instead of isapi_redirect.  Its much easier to install/use.

--
typos, misspels, and other weird words brought to you courtesy of my mobile device.

On Dec 13, 2012 12:59 AM, "Akos" <akos.f...@yahoo.com> wrote:
hi folks, I'm a brand new candidate for railo and wondering if anyone could help me out.  I'm running windows server 2008 R2, IIS 7 and must admin I'm new to that too.
I have downloaded and installed Railo 4.0.2 successfully and getting the server admin coming up great at http://localhost:8888/railo-context/admin/server.cfm
I'm stuck at configuring IIS and my sites to serve .cfm pages.
I have followed a number of tutorials but keep getting stuck.
It looks that the this newest version of railo is already configuring stuff automatically.
All my sites are showing the default pages in there so that side is done.
I have downloaded the connector .dll from apache tomcat site and put it into a newly created folder c:\inetpub\scripts and I also added it to the ISAPI filter and not sure if I really needed that with this version.
Also noticed that now there a wwwroot folder inside c:\inetpub.
Any help with a simple step by step guide would be much appreciated.
Thanks in advance.
AKos

Jordan Michaels

unread,
Dec 13, 2012, 6:15:28 AM12/13/12
to ra...@googlegroups.com
Hi Akos,

> I'm stuck at configuring IIS and my sites to serve .cfm pages.

Did CFM files not work for you after your initial install? Once you run the installer it should also install the IIS connector automatically. You shouldn't need to install it on your own.

The ISAPI connector has been replaced by the BonCode Connector (http://tomcatiis.riaforge.com/ in most recent installer builds, so you shouldn't need to mess with ISAPI, DLL's, or adding a "jakarta" directory any longer.

If you're having a problem with the default install not working with IIS, let us know, we'll try to help.

Kind regards,
Jordan Michaels

Akos

unread,
Dec 13, 2012, 5:33:35 PM12/13/12
to ra...@googlegroups.com
thank you Igal and Jordan, I've installed the BonCode Connector successfully and still unable run .cfm pages.
I'm getting:
HTTP Error 404.3 - Not found
The page you are requesting cannot be served because of the extension configuration.
If a page is a script, add a handler. If the file should be downloaded add a MIME map.
Something stupid I probably haven't done yet, any suggestions please?
AKos


Michael van Leest

unread,
Dec 13, 2012, 5:36:52 PM12/13/12
to ra...@googlegroups.com
Maybe a stupid question, but did you completely remove the ISAPI filter?

2012/12/13 Akos <akos.f...@yahoo.com>



--
Michael van Leest

Akos

unread,
Dec 14, 2012, 2:43:47 AM12/14/12
to ra...@googlegroups.com
I haven't touched anything in there after reading the posts above that the BoneCode Connector will take care of everything.
Should I be looking for something listed under ISAPI filters?
Many Thanks

Bilal

unread,
Dec 14, 2012, 2:12:09 PM12/14/12
to ra...@googlegroups.com
The BonCode connector setup does not remove other connectors.
It ensures that all the pre-requisites are met and .net libraries are in place to run the connection via BonCode.

If you have ISAPI installed, you will need to remove it manually by reverting the steps. In general , you should avoid conflict in extension handling, e.g. multiple handlers for .cfm/.cfc files.

Hope this helps,
B.
Message has been deleted

Akos

unread,
Dec 15, 2012, 9:58:50 AM12/15/12
to ra...@googlegroups.com

So railo is running at http://localhost:8888 and I've created a folder in c:\inetpub\wwwroot\mysite.com with an index.cfm file and a test dump in it.  If I browse to it via the localhost url like http://localhost:8888/mysite.com it serves the .cfm page correctly and my dump is showing OK.
My site's physical path in IIS were originally positing to c:\inetpub\vhost\mysite.com which I changed to point to the new c:\inetpub\wwwroot\mysite.com

When trying to browse to it via http://www.mysite.com I'm still getting:

HTTP Error 404.3 - Not found
The page you are requesting cannot be served because of the extension configuration.
If a page is a script, add a handler. If the file should be downloaded add a MIME map.
I feel it's to do with ports or bindings or something like that.
Any suggestions please?

Bilal

unread,
Dec 15, 2012, 3:25:35 PM12/15/12
to ra...@googlegroups.com
Akos,
there seem to be quite a few differences between the standard install (using the railo 4 installer) and your site.
In standard install you would not be able to place a document into c:\inetpub\wwwroot\mysite.com, that, then is picked up by tomcat (port 8888)
Also your IIS messages are indicative of substantial changes to handler mappings and site configurations.

In short I am assuming that you have quite a few differences. Given time, they can all be worked out, but it would be more efficient in the end if you considered a re-install, especially if this is a dev machine.
In that spirit I would suggest the following plan:

a) backup your code files (avoid any web.config files)
b) Run uninstall of railo / tomcat
c) Run uninstall of any .net framework(s) after 2.0 (note the ones)
d) Run uninstall of IIS
e) Remove any remnant IIS directories

Then use this order to run installations:
a) Run install of IIS
b) If you need any .net framework for anything else (except Railo) re-install it now. Install in order of version, e.g. 3.5 followed by 4 etc. If you don't need it do not do anything for this step.
b) Download Railo 4 Windows installer and Run install of Railo 4
c) Add your code back, e.g. mysite.com and deploy your code files

Best,
B.

Akos

unread,
Dec 16, 2012, 5:05:38 AM12/16/12
to ra...@googlegroups.com

Bilal, many thanks for your help.  So when adding a new site in IIS where should the physical path be pointing to so both IIS and railo/tomcat can 'see' them?
AKos

Bilal

unread,
Dec 16, 2012, 9:32:10 PM12/16/12
to ra...@googlegroups.com
With Railo4 you should not need to worry about this specifically unless you want to configure things differently.
You can simply drop code into the IIS site physical path.
Tomcat should pick up on this. It will create a context and process your code. 
This happens because of the mod_cfml project inclusion in Railo installers (creds to Jordan on this).

Akos

unread,
Dec 17, 2012, 9:13:57 AM12/17/12
to ra...@googlegroups.com
Awesome, I got it all working and thanks very much for all your help.  I needed a clean install of the server/iis/railo.  I must have messed it up somehow.
I'm a happy chappy..
Thanks again

Reply all
Reply to author
Forward
0 new messages