macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: problem changing default webroot of built in server

Subject: Re: problem changing default webroot of built in server
From: GArlington
Date: Wed, 15 Aug 2007 02:07:22 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion
On 15 Aug, 01:12, "chedderslam123" <[email protected]>
wrote:
> I installed CF 8 yesterday, and am running into a problem changing the 
> webroot.
>  As per the instructions 
> athttp://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=web....
> html#102393, I have modified the lines in jrun-web.xml as follows:
>
>  Old entry:
>
>    <virtual-mapping>
>      <resource-path>/WEB-INF</resource-path>
>      <system-path>C:/ColdFusion8/wwwroot/WEB-INF</system-path>
>    </virtual-mapping>
>
>  New entry:
>
>    <virtual-mapping>
>      <resource-path>/*</resource-path>
>      <system-path>C:/ColdFusion8/spayflorida</system-path>
>    </virtual-mapping>
>
>  When I browse tohttp://localhost:8500/, I get "index of" and a listing of the
> files in the new folder.  If I click on index.cfm, I get the following error:
>                       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:284)
>         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)
>
>  The only work around is to shuffle the web files back and forth as I work on
> different sites which is quite a 
> pain.http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=web....
> html#102393

You have to leave the old
>  Old entry:
>
>    <virtual-mapping>
>      <resource-path>/WEB-INF</resource-path>
>      <system-path>C:/ColdFusion8/wwwroot/WEB-INF</system-path>
>    </virtual-mapping>
>
and ADD
>  New entry:
>
>    <virtual-mapping>
>      <resource-path>/*</resource-path>
>      <system-path>C:/ColdFusion8/spayflorida</system-path>
>    </virtual-mapping>
BTW: this path can be anywhere, not just under c:/CF install
directory, I found (c:)/www/siteName better option


<Prev in Thread] Current Thread [Next in Thread>