Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ColdFusion 10 cannot serve JSP files

New Here ,
Jul 15, 2013 Jul 15, 2013

We have recently upgraded our test server from ColdFusion 8 Enterprise server to ColdFusion 10 64-bit Enterprise server, running IIS 7.5 on a Windows 2008 R2 server.  We left the CF 8 install in place while we upgraded to CF 10.  CF 10 installed without any errors and our CF 10 websites are working properly.  It is fully patched to Update 11.  There is one function on one of the websites that was written in JSP and worked fine in CF 8.  Any call to a JSP template in CF 10 renders a 404 error, when the file is clearly available in the file system.

The proper handler mappings and MIME types appear to be in place in IIS.  Attached is a portion of the ISAPI_redirect.log, which includes the debug information. The 404 error appears at the end of the log excerpt.   I've replaced the server name and IP address with SERVER NAME and IP ADDRESS in the log below.

I have not uninstalled CF 8 at this point, but considering it as a last resort to try to install a clean copy of CF 10.

I'm hoping that it is just a permissions issue between Tomcat and IIS.  Please let me know if there is another artifact needed to post.  Any assistance is great appreciated.

Thanks,

Mike

[Wed Jul 10 08:55:12.211 2013] [9748:9356] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/SERVER NAME/hello.jsp' from 24 maps[Wed Jul 10 08:55:12.242 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/flashservices/gateway/*=cfusion' source 'uriworkermap'.

.

.

.

[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.cfml=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.cfr=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.cfc=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.cfm=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.sws=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.jsp=cfusion' source 'uriworkermap'[Wed Jul 10 08:55:12.445 2013] [9748:9356] [debug] find_match::jk_uri_worker_map.c (863): Found a wildchar match '/*.jsp=cfusion'[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] HttpFilterProc::jk_isapi_plugin.c (2026): check if [/hello.jsp] points to the web-inf directory[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] HttpFilterProc::jk_isapi_plugin.c (2042): [/hello.jsp] is a servlet url - should redirect to cfusion[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] HttpFilterProc::jk_isapi_plugin.c (2082): fowarding escaped URI [/hello.jsp][Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3090): Reading extension header HTTP_TOMCATWORKER000000006A6B0000: cfusion[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3091): Reading extension header HTTP_TOMCATWORKERIDX000000006A6B0000: 21[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3092): Reading extension header HTTP_TOMCATURI000000006A6B0000: /hello.jsp[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3093): Reading extension header HTTP_TOMCATQUERY000000006A6B0000: (null)[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3199): Applying service extensions[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Connection : keep-alive[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Content-Length : 0[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[Wed Jul 10 08:55:12.461 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Accept-Encoding : gzip, deflate[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Accept-Language : en-US,en;q=0.5[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Cookie : JSESSIONID=EBD1BBAC5B4BB83272C09E4423E7C758.cfusion; CURRENTDESIGN=design%5Fgreen%5F2d[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header Host : SERVER NAME[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3441): Forwarding request header X-Forwarded-For : [Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3476): Service protocol=HTTP/1.1 method=GET host=IP ADDRESS addr=IP ADDRESS name=SERVER NAME port=80 auth= user= uri=/hello.jsp[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] init_ws_service::jk_isapi_plugin.c (3488): Service request headers=9 attributes=0 chunked=no content-length=0 available=0[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] wc_get_worker_for_name::jk_worker.c (116): found a worker cfusion[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] HttpExtensionProc::jk_isapi_plugin.c (2276): got a worker for name cfusion[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] ajp_get_endpoint::jk_ajp_common.c (3253): acquired connection pool slot=0 after 0 retries[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (679): ajp marshaling done[Wed Jul 10 08:55:12.477 2013] [9748:9356] [debug] ajp_service::jk_ajp_common.c (2525): processing cfusion with 2 retries[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): sending to ajp13 pos=4 len=558 max=65536[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0000    12 34 02 2A 02 02 00 08 48 54 54 50 2F 31 2E 31  - .4.*....HTTP/1.1[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0010    00 00 0E 2F 65 73 73 2F 68 65 6C 6C 6F 2E 6A 73  - .../hello.js[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0020    70 00 00 0F 31 34 36 2E 31 33 38 2E 32 34 39 2E  - p...IP ADDRESS.[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0030    32 34 39 00 00 0F 31 34 36 2E 31 33 38 2E 32 34  - IP ADDRESS[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0040    39 2E 32 34 39 00 00 0E 6D 69 73 64 65 76 2E 64  - ..SERVER NAME[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0050    6F 65 2E 67 6F 76 00 00 50 00 00 09 A0 06 00 0A  - ..P.......[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0060    6B 65 65 70 2D 61 6C 69 76 65 00 A0 08 00 01 30  - keep-alive.....0[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0070    00 A0 01 00 3F 74 65 78 74 2F 68 74 6D 6C 2C 61  - ....?text/html,a[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0080    70 70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C  - pplication/xhtml[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0090    2B 78 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E  - +xml,application[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00a0    2F 78 6D 6C 3B 71 3D 30 2E 39 2C 2A 2F 2A 3B 71  - /xml;q=0.9,*/*;q[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00b0    3D 30 2E 38 00 00 0F 41 63 63 65 70 74 2D 45 6E  - =0.8...Accept-En[Wed Jul 10 08:55:12.492 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00c0    63 6F 64 69 6E 67 00 00 0D 67 7A 69 70 2C 20 64  - coding...gzip,.d[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00d0    65 66 6C 61 74 65 00 00 0F 41 63 63 65 70 74 2D  - eflate...Accept-[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00e0    4C 61 6E 67 75 61 67 65 00 00 0E 65 6E 2D 55 53  - Language...en-US[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 00f0    2C 65 6E 3B 71 3D 30 2E 35 00 A0 09 00 56 4A 53  - ,en;q=0.5....VJS[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0100    45 53 53 49 4F 4E 49 44 3D 45 42 44 31 42 42 41  - ESSIONID=EBD1BBA[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0110    43 35 42 34 42 42 38 33 32 37 32 43 30 39 45 34  - C5B4BB83272C09E4[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0120    34 32 33 45 37 43 37 35 38 2E 63 66 75 73 69 6F  - 423E7C758.cfusio[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0130    6E 3B 20 43 55 52 52 45 4E 54 44 45 53 49 47 4E  - n;.CURRENTDESIGN[Wed Jul 10 08:55:12.508 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0140    3D 64 65 73 69 67 6E 25 35 46 67 72 65 65 6E 25  - =design%5Fgreen%[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0150    35 46 32 64 00 A0 0B 00 0E 6D 69 73 64 65 76 2E  - 5F2d.....SERVER NAME.[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0160    64 6F 65 2E 67 6F 76 00 A0 0E 00 41 4D 6F 7A 69  - ....AMozi[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0170    6C 6C 61 2F 35 2E 30 20 28 57 69 6E 64 6F 77 73  - lla/5.0.(Windows[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0180    20 4E 54 20 35 2E 31 3B 20 72 76 3A 32 32 2E 30  - .NT.5.1;.rv:22.0[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0190    29 20 47 65 63 6B 6F 2F 32 30 31 30 30 31 30 31  - ).Gecko/20100101[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01a0    20 46 69 72 65 66 6F 78 2F 32 32 2E 30 00 00 0F  - .Firefox/22.0...[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01b0    58 2D 46 6F 72 77 61 72 64 65 64 2D 46 6F 72 00  - X-Forwarded-For.[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01c0    00 0E 31 34 36 2E 31 33 38 2E 31 35 31 2E 32 39  - ..IP ADDRESS[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01d0    00 03 00 00 00 04 00 00 00 0E 00 11 4D 69 63 72  - ............Micr[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01e0    6F 73 6F 66 74 2D 49 49 53 2F 37 2E 35 00 0F 00  - osoft-IIS/7.5...[Wed Jul 10 08:55:12.523 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 01f0    07 43 47 49 2F 31 2E 31 00 10 00 00 00 0A 00 0F  - .CGI/1.1........[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0200    41 4A 50 5F 52 45 4D 4F 54 45 5F 50 4F 52 54 00  - AJP_REMOTE_PORT.[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0210    00 04 33 30 30 33 00 0A 00 10 4A 4B 5F 4C 42 5F  - ..3003....JK_LB_[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (1234): 0220    41 43 54 49 56 41 54 49 4F 4E 00 FF FF FF 00 00  - ACTIVATION......[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_send_request::jk_ajp_common.c (1712): (cfusion) Statistics about invalid connections: connect check (0), cping (0), send (0)[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_send_request::jk_ajp_common.c (1723): (cfusion) request body to send 0 - request body to resend 0[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1420): received from ajp13 pos=0 len=58 max=65536[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1420): 0000    04 01 94 00 0E 2F 65 73 73 2F 68 65 6C 6C 6F 2E  - ...../hello.[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1420): 0010    6A 73 70 00 00 02 A0 01 00 17 74 65 78 74 2F 68  - jsp.......text/h[Wed Jul 10 08:55:12.539 2013] [9748:9356] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1420): 0020    74 6D 6C 3B 63 68 61 72 73 65 74 3D 75 74 66 2D  - tml;charset=utf-[Wed Jul 10 08:55:12.555 2013] [9748:9356] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1420): 0030    38 00 A0 03 00 03 39 39 34 00 00 00 00 00 00 00  - 8.....994.......[Wed Jul 10 08:55:12.555 2013] [9748:9356] [debug] ajp_unmarshal_response::jk_ajp_common.c (734): status = 404

9.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 15, 2013 Jul 15, 2013

Mike, you say that the server is “fully patched to update 11”. Does that include rebuilding or updating the CF/IIS connector(s)? If you have not, you do need to do that after update 11. See:

http://blogs.coldfusion.com/post.cfm/coldfusion-10-does-the-connector-need-to-be-re-installed-for-update-11

That said, I don’t know that doing that would fix this, but it will fix other issues and many are missing that it’s required.

If doing that does not fix this, I would propose you create a new web site in IIS (even just temporarily for testing purposes). Sometimes in doing that, something that fails will now work. If so, then you may want to consider replacing the old site with the new one. (BTW, if you have configured the CF/IIS connector to be for “all sites”, note that on IIS 7 you must rebuild the connector after adding that new site. That’s not a CF10 requirement. It was true in CF 9, for those on IIS 7.)

If that doesn’t solve it, then there may be something more amiss. That log doesn’t tell us what, I’m afraid.

Let us know how things go.

/charlie


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2013 Jul 15, 2013

Charlie,

Thanks for your quick reply.  Each time that I apply the new update patches, I release the sites through the CF WS config tool and rebuild the connector per the instructions from Adobe.

I set up a test site in IIS, with an index.jsp as the only template.  I am getting a more detailed error message - 404.2, which states that my ISAPI and CGI restriction list are blocking page.  I have the following restriction in place at the server (root) level:

C:\ColdFusion10\config\wsconfig\1\isapi_redirect.dll, set to Allowed.

FWIW, there are three ASP.Net filter DLLs above it, however, we don't use ASP on this server.  OK to remove these?

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 15, 2013 Jul 15, 2013

Well, I don’t know if it’s safe to remove those.

But as for the one that’s there, do make sure it’s EXACTLY the right one: the same pointed to, for instance, for the ISAPI filter “feature”. You could have more than one connector, with a number in the folder name that would be for the different ones, and you may have one set in the ISAPI filter that may be different from that one listed in the “ISAPI and CGI Restrictions” feature at the server level. And do check the ISAPI Filter values at both the site and server level. Let us know what you find.

/charlie


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2013 Jul 15, 2013

Charlie,

Screenshots from my IIS 7.5 server, showing both server level and website level ISAPI and CGI restrictions.  They all seem to point to the correct DLL, even after several re-connections using the WS config tool.  I did delete the extra ASP.net connectors, since I was fairly certain I don't need them.   As an extra step, I did include .jsp into the URLScan.ini file as an accepted file extension, however, it didn't get the JSP file served. 

Mike

server level ISAPI.jpgtest site level ISAPI.jpgdefault website level ISAPI.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 15, 2013 Jul 15, 2013

Ok. Here’s another question: is this test jsp page in the docroot of the site? Or in a subfolder? Not that it should matter, but I’ve seen problems where even CF pages could run in one and not the other, so it could point out a different issue.

Also, did you create a new docroot for the test site? It seems so, from the screenshot. It’s just important to confirm, because in IIS 7, there is a web.config that can be placed by IIS the site docroot, and if both sites shared one docroot, they’d share one web.config, and that could explain even a new site still showing the problem of an old one. Still, I doubt that’s the issue here.

Next, if you’re really stumped, it may be worth reviewing the applicationhost.config (in windows\system32\inetserv\config) to confirm that all its references to “coldfusion” are right and as expected. That may not be trivial for one not familiar with what would look right or wrong, but I leave it as a clue if you’re feeling frisky.

I’ll say, finally, that some problems like this turn out to be due to things one might never expect, or think to discuss in a back and forth on email or the forum like this. Sometimes there’s just no substitute for you having an experienced troubleshooter (like myself) sitting down with you (over the web, looking over your shoulder) to look over things with you. I do this sort of things with folks every day, and solved a problem just like this (not with jsp but with CF pages) just the other day.

If you may be interested in that sort of help, to expedite things, I’ll point out that I keep a list of such consultants in my CF411 site (of tools and resources), specifically at cf411.com/cfconsult.

But if you want to keep trying here, we can. I can’t be sure to always respond right away, but will if I can. And indeed maybe we may trigger a thought from someone else who may be watching, today or later in the week.

/charlie


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2013 Jul 15, 2013

Thanks Charlie for taking a look and for your advice.  I will check out these areas of the server and let you know what I find out.

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 17, 2013 Jul 17, 2013

Charlie,

I uninstalled CF 10, uninstalled CF 8 below it, removed URLScan 3.1 (just to be sure), rebooted, installed CF 10  and IIS 7.5 still would not serve any JSP templates (404 error).  Does it have anything to do with the version of Java?  I am using the default Java 1.7.0_15 that came with CF 10.  The CF 8 production server that is working correctly to serve the one JSP template is running Java 1.6.0_24.  Is it worth going back to Java 6 to test this theory?

On a related note, how difficult is it to reverse engineer JSP to CF?  That would solve this problem entirely! 

Thanks again,

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 18, 2013 Jul 18, 2013

I feel that I am close to an answer, but need the community's input.  I added the following entry to the \cf_root\cfusion\wwwroot\WEB-INF\web.xml

<servlet-mapping id="coldfusion_mapping_16">

        <servlet-name>CfmServlet</servlet-name>

        <url-pattern>*.jsp</url-pattern>

</servlet-mapping>

My .jsp file will finally display in the browser, but the servlet-name is incorrect, since it's for CFM files.  I tried using JspServlet in the name and the page would just spin and never connect.

Is there a different servlet name call for JSP in CF 10?  If so, where would it be located and what is the new name?

Thanks to all,

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 22, 2013 Jul 22, 2013

I have installed the full Java 7 JDK 64-bit version on our server, pointed the jvm.config to the new location and the JSP pages still will not display properly.

I have tried the following entries in the <cf-home>\cfusion\wwwroot\WEB-INF\web.xml that have not worked correctly:

<servlet-mapping>

        <servlet-name>jspServlet</servlet-name>

        <url-pattern>*.jsp</url-pattern>

</servlet-mapping>

<servlet-mapping id="coldfusion_mapping_16">

        <servlet-name>jspServlet</servlet-name>

        <url-pattern>*.jsp</url-pattern>

</servlet-mapping>

<servlet-mapping>

        <servlet-name>jsp</servlet-name>

        <url-pattern>*.jsp</url-pattern>

</servlet-mapping>

What else can I try or where could I look to find the list of servlets available? 

Mike

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 23, 2013 Jul 23, 2013

I had struggled with this for months and I believe you are running into the same problem; it has been a known issue since Coldfusion 10 was released. My default document was an index.jsp page that simply forwarded to a CFM page.


3042725
- JSP files will not be served if they are present in the webroot of web server. They need to be placed in webroot of ColdFusion server.

You can see it documented on the following link:

http://helpx.adobe.com/coldfusion/release-note/coldfusion-10-release-notes.html

There is no need to mess with the web.xml file, you simply need to copy just your jsp file into the webroot of where you installed Coldfusion 10, in my installation I had to copy it into C:\Coldfusion10\cfusion\wwwroot

Give it a try.

Note: I still cannot get it to process the jsp as the default document, I have to specify it in the URL. I'm still working on trying to get the default document to find the jsp file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 23, 2013 Jul 23, 2013

Hi,

IIS can never directly support the use of JSP because it requires an add-on to run Java code in a JVM to Load, Instantiate, and Reflect on the JSP page. The same can be said for every other non-Java web server because they have to do the exact same thing as IIS (so it is a matter of bundling and not capability). Meanwhile, Java-based web servers can obviously directly support JSP, but they are usually VERY slow in raw speed in comparison to native code web servers like IIS or Apache for everything. In fact, you can say the exact same thing about ASPX pages - IIS can never directly support the use of ASPX pages because it requires an add-on to run .Net code in a CLR to Load, Instantiate, and Reflect on the ASPX page.

Tomcat works with web servers like Apache and IIS:

  • Tomcat includes a web server written in Java.
  • Since it is writtin in Java, Tomcat obviously can "natively" run a JSP or Servlet, which is basically another Java class to Load, Instantiate, and Reflect as far as Tomcat (i.e. Java) is concerned.
  • All web servers that are NOT written in Java (like Apache and IIS) obviously cannot run JSP without first loading Java code in a JVM to Load, Instantiate, and Reflect on the JSP page, and this is exactly the functionality their respective add-ons/connectors give to these web servers.

Hope it helps

Thanks

VJ

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 19, 2018 Mar 19, 2018

Vishu, this is not a request to have IIS run JSPs. It's a request to have CF's IIS web connector properly pass a request to run such a JSP (as found in an IIS root folder) to CF to be executed, just like it would with a CFM file.

As you may know, CF 10 and above run on Tomcat, and Tomcat certainly can run JSPs.

And while some have pointed to a workaround to put the JSP in the cfusion/wwwroot (or a subfolder of that) and still be accessible. I'll go further and point out that that works not only if one asks for the file via the CF built-in web server (technically the Tomcat web server) but ALSO via IIS (or should via Apache), because CF has long had a hidden "feature" where if you ask for a file or folder via an external web server that is not found in its root, CF looks for it in the cfusion/wwwroot.

Still, such a solution won't work for those who really just want to have and run JSPs alongside CFMs in folders defined as being (or being under) the root of a site in IIS or Apache. That's the part that seems not to be working for folks.


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 16, 2024 Apr 16, 2024

Moving code to cfusion/wwwroot environment solved 404 Not Found issue for my .jsp files.  Saved me a lot of headache knowing this Coldfuision "feature".  Thanks, Charlie!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2024 Apr 16, 2024
LATEST

Glad to have helped, Jamie. 


/Charlie (troubleshooter, carehart. org)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 30, 2015 Mar 30, 2015

Avatar, I had the same issue and your solution, copying to wwwroot of the ColdFusion instance works. Weird, but I can understant that TomCat is different than JRun. Thanks for posting this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources