House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Change JRun's 404 message?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan LeGate
03/17/2010 02:21 PM

Hi, Anyone know how to change ColdFusion 8's (on Windows/IIS) default 404 message that JRun spits out? When someone requests foo.jsp (or ANY other *.jsp) and it doesn't exist, I'd love to change that message - better yet, I'd love to redirect it to a single template that will respond to all server 404's (JRun and IIS). Any help/advice is appreciated. Thanks! Dan

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Justin Scott
03/17/2010 02:41 PM

> When someone requests foo.jsp (or ANY other *.jsp) and it > doesn't exist, I'd love to change that message - better > yet, I'd love to redirect it to a single template that > will respond to all server 404's (JRun and IIS). In your IIS settings, there should be an option for the ISAPI filter or extension mapping called "Verify that file exists."  If you enable that, IIS will verify that the file being called on the URL exists on disk before passing the request to the filter.  If the file doesn't exist, it will use the 404 error rule defined within IIS instead of passing to the filter to process.  You can specify a URL such as /404.cfm and IIS will launch that with the original URL requested on the query string so that it can be processed accordingly.  (This is based on IIS6, not sure if the same applies to 7) I believe there is also a missing template handler setting in the ColdFusion administrator for ColdFusion to handle missing files directly if desired. It's been a long time since I've had a need to use that. -Justin

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/17/2010 02:57 PM

----- Excess quoted text cut - see Original Post for more ----- This will break various things in CF, however - charting, CFIMAGE, RDS, Flash Remoting. > I believe there is also a missing template handler setting in the ColdFusion > administrator for ColdFusion to handle missing files directly if desired. > It's been a long time since I've had a need to use that. There is, but I think it's just for CF files, not JSP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ons

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
denstar
03/17/2010 07:36 PM

If you're using IIS, can't you just let the 404's bubble up from JRun and have IIS handle it? I thought that was possible... :Den -- Man is not the lord of beings. Man is the shepherd of Being. Martin Heidegger ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
UXB Internet
03/17/2010 07:47 PM

>>> In your IIS settings, there should be an option for the ISAPI filter or >>> extension mapping called "Verify that file exists."   >>This will break various things in CF, however - charting, CFIMAGE, >>RDS, Flash Remoting. Will just enabling the Verify that file exists setting in IIS break things or were you just referring to using a 404.cfm file?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
denstar
03/17/2010 08:06 PM

----- Excess quoted text cut - see Original Post for more ----- Verify files exists will break things, the 404.cfm is safe. :den -- The German language speaks Being, while all the others merely speak of Being. Martin Heidegger

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/18/2010 12:34 AM

----- Excess quoted text cut - see Original Post for more ----- Yes, just enabling the "verify that file exists" option will break these things, because IIS will then throw 404s for specific legitimate URL patterns that CF recognizes. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan LeGate
03/18/2010 03:56 PM

Hmm.. it didn't work. I found the jsp mapping, chose Edit and selected "Verify that file exists". Still shows the JRun error.  Restarted the service and even the server to see if that was required to activate it.  Nope - still get standard JRun 404 message. I don't mind if this "breaks" things.  Currently this is a server serving one purpose - to take redirects from other systems while they're "down".  This is temporary, so when done, I will undo the changes and get it back up and running as a (dev) CF server. Should I also remove (or modify??) the executable path of C:\JRun4\lib\wsconfig\jrun_iis6.dll? Any help/advice on getting JRun NOT to respond, and get my custom 404s working (which they do for all other requests) is much appreciated. Thanks! On 3/17/2010 9:33 PM, Dave Watts wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
03/18/2010 08:48 PM

> Any help/advice on getting JRun NOT to respond, and get my custom 404s > working (which they do for all other requests) is much appreciated. Have you looked in the JRun documentation available online? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dan LeGate
03/19/2010 12:01 PM

Got it! Add: <error-page> <exception-type>java.io.FileNotFoundException</exception-type> <location>/404handler.htm</location> </error-page> to: /JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/web.xml and restart services. On 3/18/2010 5:48 PM, Dave Watts wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

July 31, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
         1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31