Trying to change root directory in built-in server
I am running the built-in server in ColdFusion 9 to test a web site I am building. My site is located in a subfolder of the wwwroot folder in the ColdFusion9 directory (C:\ColdFusion9\wwwroot\Everett\*). I am trying to use root-relative links, but I would like them to refer to this directory, not the wwwroot directory. For example, I would like the link "/index.cfm" to open the C:\ColdFusion9\wwwroot\Everett\index.cfm, as opposed to C:\ColdFusion9\wwwroot\index.cfm. It is my understanding that this can be done through virtual mapping.
I have added this code to the jrun-web.xml file in the WEB-INF directory:
<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>C:/ColdFusion9/wwwroot/Everett/</system-path>
</virtual-mapping>
I then moved the CFIDE and cfdocs folders to the Everett subfolder.
Next, I restarted the ColdFusion server.
Now I'm getting the following error message:
404
java.io.FileNotFoundException
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:94)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
When I go to http://localhost:8500/ I can see all the appropriate files and directories, so I can see that the root directory has been changed, I just cannot view any of the documents.
Any thoughts?
Jeremy
