I am running both sites on same IP address but different port .Is there any problem with this?
No, I have been able to reproduce this scenario successfully, namely that I can run an additional web site on port 81 with the same IP address and Tomcat works correctly on both sites.
ramskuwait
When i am running my flash file(.swf) it displaying like "Do you want save this file "wndow dialogbox.
You need to check that the correct MIME type is configured for .swf files on your server. You also need to ensure that the path to your .swf files isn't handled by the Tomcat ISAPI filter.
In other words, if you have placed your .swf files in a folder called /media and /media appears in your uriworkermap.properties file then requests to that resource will be handled by Tomcat and not IIS.
Regards,
Paul Lynch
MCSE
Marked as answer by Leo Tang - MSFT on Jun 09, 2009 01:55 AM
Now i am running my new web site on different IP Address and flash files also running.
But my jsp files are not running in my system and these some jsp files are running on another system.Is there any changes required at IIS?
When i am running jsp files it displays the "HTTP Error 404 - File or directory not found."
message only.How can solve this problem?
IMHO you should try to compile your Java application in a war file and call ISAPI_Rediector to load your application, so that you will be able to call your application with http://site_name/java_app
The erorr you have received only means that there is no executable available to fullfil the request for JSP files. May be you need to add a mapping for .jsp extension in your IIS web site.
The erorr you have received only means that there is no executable available to fullfil the request for JSP files. May be you need to add a mapping for .jsp extension in your IIS web site.
No, that simply will not work. IIS does not handle .jsp files. If you want to host Java applications using IIS you have to use the Tomcat ISAPI connector.
ramskuwait
19 Posts
New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 01, 2009 10:22 AM|LINK
Hi!
I have a problem with my second website on IIS6.0 with Tomcat6.0,which are installed on Windows 2003 Server.first web site running perfectly.
I did everything according to the instructions by tomcat documentation.
My website contains html ,jsp and Swf files only.
When i am running http://localhost/examples/jsp/index.html .it shows the error as "HTTP Error 404 - File or directory not found." But when i am running http://localhost/ it displays the directory structure of a web site.
How to include/run flashfiles(.swf) on IIS6.0?
Thanks
Rams
Paul Lynch
1589 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 01, 2009 10:45 AM|LINK
Hi,
What is the problem here exactly ? Are you unable to get Tomcat working on your second web site or are you having a problem with Flash files ?
IIS 6.0 can serve Flash files by default - it has the necessary MIME type in its metabase.
To get Tomcat working with IIS 6.0 you will need to do something like this :
How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector
Regards,
MCSE
ramskuwait
19 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 01, 2009 11:30 AM|LINK
hi!
i have both problems.I did the same steps from How To Configure IIS 6.0 and Tomcat with the JK 1.2 Connector.but still same problem.
I am running both sites on same IP address but different port .Is there any problem with this?
When i am running my flash file(.swf) it displaying like "Do you want save this file "wndow dialogbox.
Your help is appreciated.
Thanks
Rams
Paul Lynch
1589 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 01, 2009 12:48 PM|LINK
No, I have been able to reproduce this scenario successfully, namely that I can run an additional web site on port 81 with the same IP address and Tomcat works correctly on both sites.
You need to check that the correct MIME type is configured for .swf files on your server. You also need to ensure that the path to your .swf files isn't handled by the Tomcat ISAPI filter.
In other words, if you have placed your .swf files in a folder called /media and /media appears in your uriworkermap.properties file then requests to that resource will be handled by Tomcat and not IIS.
Regards,
MCSE
ramskuwait
19 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 02, 2009 05:35 AM|LINK
Hi! Paul,
Now i am running my new web site on different IP Address and flash files also running.
But my jsp files are not running in my system and these some jsp files are running on another system.Is there any changes required at IIS?
When i am running jsp files it displays the "HTTP Error 404 - File or directory not found." message only.How can solve this problem?
your help appreciated.
Thanks
Rams
Paul Lynch
1589 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 02, 2009 08:17 AM|LINK
Hi,
The link I provided previously should tell you everything you need to know to get Tomcat working correctly with IIS.
Regards,
MCSE
murtaza_t
484 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 02, 2009 07:11 PM|LINK
The erorr you have received only means that there is no executable available to fullfil the request for JSP files. May be you need to add a mapping for .jsp extension in your IIS web site.
Regards,
Murtaza
Web Hosting UK | VPS Hosting
Paul Lynch
1589 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 02, 2009 07:24 PM|LINK
No, that simply will not work. IIS does not handle .jsp files. If you want to host Java applications using IIS you have to use the Tomcat ISAPI connector.
Regards,
MCSE
tomkmvp
7657 Posts
MVP
Moderator
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 03, 2009 02:29 PM|LINK
See also http://blogs.iis.net/tomkmvp/archive/2009/04/27/troubleshooting-a-404.aspx
http://mvp.support.microsoft.com/
ramskuwait
19 Posts
Re: New Web site on IIS6.0 with Tomcat6.0 Problem
Jun 04, 2009 08:28 AM|LINK
Hi!
I got at last isapi_redirector.log file in my Tomcat,which shows some information as
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/examples/servlet/*=ajp13' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/examples/jsp/*=ajp13' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/kmc/*=ajp13w' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/examples/servlet/*=ajp13' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/examples/jsp/*=ajp13' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_uri_worker_map.c (850): Attempting to map context URI '/kmc/*=ajp13w' source 'uriworkermap'
[Thu Jun 04 11:01:09.671 2009] [960:3304] [debug] jk_isapi_plugin.c (2061): [/testyourself.jsp] is not a servlet url.
In my System32/Logfiles/W3SVC772920/ shows information as
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2009-06-04 08:01:04 W3SVC772920 192.100.100.200 GET /testyourself.jsp - 80 - 192.100.100.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+InfoPath.2) 404 3 50
2009-06-04 08:01:09 W3SVC772920 192.100.100.200 GET /testyourself.jsp - 80 - 192.100.100.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+InfoPath.2) 404 3 50
What should be the reason?
Quick response is appreciated.
Thanks
Rams