Try to change the root directory in built-in Server

I run the server integrated into ColdFusion 9 to test a web site that I am building. My site is located in a subfolder of the folder wwwroot directory ColdFusion9 (C:\ColdFusion9\wwwroot\Everett\*). I try to use links relative to the root, but I would like that they 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 is possible through the virtual mapping.

I added this code in the jrun - Web.xml file in the WEB - INF directory:

<>virtual-mapping

> resource path < / * < / resource-path >

< path system - > C:/ColdFusion9/wwwroot/Everett / < / path system >

< / virtual mapping >

Then I moved folders CFIDE and cfdocs in the Everett subfolder.

Then I restarted the ColdFusion server.

Now I get 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)

to jrunx.scheduler.ThreadPool$ DownstreamMetrics.invokeRunnable (ThreadPool.java:320)

to jrunx.scheduler.ThreadPool$ ThreadThrottle.invokeRunnable (ThreadPool.java:428)

to 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 of the appropriate files and directories, so I can see that the root directory has been changed, I'm simply not view any document.

Any thoughts?

Jeremy

HA! I don't know why it works now, but it does. Alexander, I tried your method and it did not work, but then I moved the directory WEB - INF back to wwwroot and he's fine now. For those keeping score at home, here's what I've done with:

 

    /*

    C:/Web_Sites/Everett2

 


 

    /WEB-INF

    C:/ColdFusion9/wwwroot/WEB-INF

 


 

    /CFIDE

    C:/Web_Sites/Everett2/CFIDE

 

As I said, I don't know why it didn't work the first couple attempts, but it works now and I guess that's all that matters. Thanks for all your help!

JAW

Tags: ColdFusion

Similar Questions

Maybe you are looking for