Professional Web Applications Themes

Custom 404 on /servlet/ path? - Coldfusion Server Administration

I'm forced by an external trustworthy validation company that tells me we need to stop CF throwing an 404 error page if someone accesses our server with the path /servlet/. Do you know how we are able to customize this error message in a way that the JVM error is not shown? Something like a error.cfm for JVM!? I have no idea how to solve this. 404 java.io.FileNotFoundException at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:94) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:284) at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)...

  1. #1

    Default Custom 404 on /servlet/ path?

    I'm forced by an external trustworthy validation company that tells me we need
    to stop CF throwing an 404 error page if someone accesses our server with the
    path /servlet/. Do you know how we are able to customize this error message in
    a way that the JVM error is not shown? Something like a error.cfm for JVM!? I
    have no idea how to solve this.



    404

    java.io.FileNotFoundException
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:94)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:284)
    at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:543)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:203)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:320)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:428)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)

    Igel Guest

  2. #2

    Default Re: Custom 404 on /servlet/ path?

    Igel wrote: 

    Try removing the mapping for /servlet/* from default-web.xml and
    restarting both CF and your webserver. I have no idea how much of CF
    will break, but the servlet error should be fixed.

    Jochem


    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion
    Jochem Guest

  3. #3

    Default Re: Custom 404 on /servlet/ path?

    That's why I'm asking... what goes broken if something get's broken!???
    Igel Guest

  4. #4

    Default Re: Custom 404 on /servlet/ path?

    On Jul 1, 5:32 pm, "Igel" <com> wrote: 
    <snap>

    What do you want to do instead of throwing 404?
    Yes, you can customise the error handling in CF, see CF docs OnError/
    cferror...
    GArlington Guest

Similar Threads

  1. Custom Tags - Path problem
    By JethroTull in forum Macromedia ColdFusion
    Replies: 1
    Last Post: June 13th, 05:21 PM
  2. Accessing path in a custom designer
    By Dale Preston in forum ASP.NET Building Controls
    Replies: 2
    Last Post: April 13th, 12:38 AM
  3. Bug in Graph Servlet?
    By prayank in forum Coldfusion - Advanced Techniques
    Replies: 2
    Last Post: March 29th, 10:19 AM
  4. Servlet -> PHP
    By Andrew in forum PHP Development
    Replies: 11
    Last Post: May 2nd, 10:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139