View Full Version : Resin with IIS7 (Server 2008)

02-16-2010, 10:55 AM
Hi all,

I've followed the instructions here: http://wiki.caucho.com/IIS#Using_Resin_with_IIS_7_on_Windows_Vista

and have been able to get Resin and IIS working together, I can see that Resin is functioning ok from the cauchostatus page and my webapp functions.

However we've found that static content isn't being served.

Here's some details of the configuration:

The default website in IIS is pointing at D:\resin-3.1.9\webapps on port 80
isapi_srun.dll and resin.ini are located in c:\inetpub\scripts
Created an application called 'scripts' under the default website pointing to the above location
Added isapi_srun.dll in ISAPI and CGI restrictions
Added script mapping in Handler Mappings to isapi_srun.dll

If i navigate to http://localhost/appname static content (css, image files, etc) are not loaded but if i navigate to http://localhost:8080/appname all content is loaded.

If anyone can provide any assistance that would be greatly appreciated. I've just performed the same configuration on Windows Server 2003 with IIS6 and all working perfectly. So i'm sure i've probably misconfigured something in the new version of IIS.

Many thanks,

02-17-2010, 05:38 PM

I've filed a bug : http://bugs.caucho.com/view.php?id=3889 affecting resin 3.1.9 and IIS 7 with static content.

You can try Resin 4.0.3, it should work fine with apps deployed from webapps directory. It will, however, have an issue with apps deployed using <web-app> tag from resin.xml as described in the bug report: http://bugs.caucho.com/view.php?id=3890


07-22-2010, 10:54 AM

I am having the same problem here.

Windows Server 2008 64bit (with .NET 3.5.1 installed)
IIS 7 (using isapi_srun.dll from the win64 directory)
resin 4.0.8
Java 1.6.0_21 64bit

- Serving a jsp works fine directly from resin as well as over IIS
- Serving static content does not work over IIS
- /caucho-status displays a blank page when resin is running
- /caucho-status displays "Server is currently unavailable..." when resin is down

I installed the ISAPI-Filter and the Mapping manually, since the setup program gave me the following error:

Adding IIS Resin ISAPI Filter to `E:\wcmInternet\scripts'..
Stopping Service `W3SVC' ...
Service `W3SVC' stopped...
Unable to install Resin ISAPI Filter due to exception `System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
at System.DirectoryServices.DirectoryEntry.Bind(Boole an throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_IsCont ainer()
at System.DirectoryServices.DirectoryEntries.ChildEnu merator..ctor(DirectoryEntry container)
at System.DirectoryServices.DirectoryEntries.GetEnume rator()
at Caucho.IIS.SetupIIS(String resinHome, String iisScripts)'
Starting IIS...
IIS Started
Installation failed.

Any help appreciated,

08-20-2010, 04:47 PM

We are phasing out isapi_srun.dll in 4.0 in favour of Resin.IIS.Handler.dll.

Please refer to http://caucho.com/resin-4.0/admin/starting-resin-iis-7.xtp

for installation docs.