help!!!! need to know how to configure coldfusion 9 DE to a different webroot

132 views
Skip to first unread message

tpet...@gmail.com

unread,
Oct 9, 2010, 6:32:31 PM10/9/10
to ColdFusion on Wheels
hello all,

does anyone here know what the procedure is to get ColdFusion 9
developer edition to point to a different directory other than the
default? my cfwheels file are located in z:\cfwheels

i tried adding the following to the C:\ColdFusion9\wwwroot\WEB-INF
\jrun-web.xml

<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>Z:/cfwheels</system-path>
</virtual-mapping>

according to Adobe and what i've found on the web http://blog.xoundboy.com/?p=4
however this doesn't work. I get the following 404 error:

404
/
java.io.FileNotFoundException: /
at jrun.servlet.file.FileServlet.service(FileServlet.java:356)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
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)

i event tried adding a trailing forward slash:

<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>Z:/cfwheels/</system-path>
</virtual-mapping>

but that didn't work either :(
what am i doing wrong? i need to get this working so i can continue
testing wheels on cf9.

Yannick

unread,
Oct 9, 2010, 6:57:50 PM10/9/10
to cfwh...@googlegroups.com
Are you using the built-in webserver?  If so have you tried to run the Web Server Configuration tool http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf363a5d-7ffc.html


--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.




--
Yannick Morin
Co-founder of bizonbytes.com

tpet...@gmail.com

unread,
Oct 9, 2010, 7:20:29 PM10/9/10
to ColdFusion on Wheels
sadly that's only for connecting to an external server :(

On Oct 9, 6:57 pm, Yannick <bizonby...@gmail.com> wrote:
> Are you using the built-in webserver?  If so have you tried to run the Web
> Server Configuration toolhttp://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea778594611...
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.com>
> > .

Yannick

unread,
Oct 9, 2010, 7:43:10 PM10/9/10
to cfwh...@googlegroups.com
do you get 404 when you access the Coldfusion Administrator?

--
You received this message because you are subscribed to the Google Groups "ColdFusion on Wheels" group.
To post to this group, send email to cfwh...@googlegroups.com.
To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

Mike Henke

unread,
Oct 9, 2010, 8:29:46 PM10/9/10
to ColdFusion on Wheels
how about jrun administrator.

http://www.henke.ws/post.cfm/multiple-coldfusion-version-and-engines-on-adobe-coldfusion-with-jrun

On Oct 9, 7:43 pm, Yannick <bizonby...@gmail.com> wrote:
> do you get 404 when you access the Coldfusion Administrator?
>
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscribe@googlegroups.c om>
> > .

tpet...@gmail.com

unread,
Oct 9, 2010, 11:02:19 PM10/9/10
to ColdFusion on Wheels
yes. i get a 404 when accessing the administrator. i don't under stand
what i'm going wrong. here is the jrun-web.xml file. can anyone spot
anything wrong?

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jrun-web-app PUBLIC "-//Adobe, Inc.//DTD jrun-web 1.0//EN"
"http://www.adobe.com/dtd/jrun-web.dtd">

<!-- ============================================================= -->
<!-- This XML file contains web application elements that are -->
<!-- specific to the JRun Application Server -->
<!-- ============================================================= -->


<jrun-web-app>

<!-- This setting is used in JRun SP to get CF to work correctly.
-->
<!-- Without this line, CF on JRun SP1 doesn't work -->
<!-- If the server doesn't have the SP installed, JRun just
ignores -->
<!-- this line -->
<enable-jrun-web-services>false</enable-jrun-web-services>


<!-- =========================================================== -->
<!-- Virtual path mappings allow a resource path to be mapped -->
<!-- to a different physical location (i.e. not necessarily -->
<!-- within the web application root). A resource-path can -->
<!-- end with a wild card '*' indicating that all resources -->
<!-- paths that start with the given path will be resolved using -->
<!-- the system path. -->
<!-- =========================================================== -->

<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>Z:/cfwheels/</system-path>
</virtual-mapping>

<virtual-mapping>
<resource-path>/WEB-INF</resource-path>
<system-path>C:/ColdFusion9/wwwroot/WEB-INF</system-path>
</virtual-mapping>

<!-- session persistence needs to be disabled due to our classloader
setup -->
<session-config>
<persistence-config>
<active>false</active>
</persistence-config>
</session-config>

</jrun-web-app>

what i ended up doing was just copying z:\cfwheels to the default
wwwroot directory so i could at least test. it isn't ideal since i now
have to copy files back and forth between the two directories. i'd
would like to get this setup so that it would complete the ultimate
wheels testing environment ;)


On Oct 9, 8:29 pm, Mike Henke <henkem...@gmail.com> wrote:
> how about jrun administrator.
>
> http://www.henke.ws/post.cfm/multiple-coldfusion-version-and-engines-...
> > > cfwheels+u...@googlegroups.com<cfwheels%2Bunsubscr...@googlegroups.c om>

wfisk

unread,
Oct 10, 2010, 3:16:36 AM10/10/10
to ColdFusion on Wheels
what about just specifying one project:

<virtual-mapping>
<resource-path>/myproject</resource-path>
<system-path>Z:/cfwheels/myproject</system-path>
</virtual-mapping>

Yannick

unread,
Oct 10, 2010, 7:36:12 AM10/10/10
to cfwh...@googlegroups.com
Have you Copy the /CFIDE directory to the new web root?

To unsubscribe from this group, send email to cfwheels+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/cfwheels?hl=en.

tpet...@gmail.com

unread,
Oct 10, 2010, 10:56:31 AM10/10/10
to ColdFusion on Wheels
yep, tried copying the cfide directory to the root. even tried doing
the virtual-mapping :(

i appreciate everyone's suggestions. right now i'm just going to
shelve this since copy the directory to the wwwroot allowed me to run
the test.

On Oct 10, 7:36 am, Yannick <bizonby...@gmail.com> wrote:
> Have you Copy the /CFIDE directory to the new web root?
>
> > > > > cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.com>
> > <cfwheels%2Bunsubscr...@googlegroups.c om>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/cfwheels?hl=en.
>
> > > > --
> > > > Yannick Morin
> > > > Co-founder of bizonbytes.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ColdFusion on Wheels" group.
> > To post to this group, send email to cfwh...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > cfwheels+u...@googlegroups.com<cfwheels%2Bunsu...@googlegroups.com>

denstar

unread,
Oct 10, 2010, 1:27:43 PM10/10/10
to cfwh...@googlegroups.com
On Sat, Oct 9, 2010 at 9:02 PM, tpetruzzi typed:
...
> </jrun-web-app>

I don't do JRun anymore... how do you feel about Jetty, Tomcat, Resin,
GlassFish or JBoss?

> what i ended up doing was just copying z:\cfwheels to the default
> wwwroot directory so i could at least test. it isn't ideal since i now
> have to copy files back and forth between the two directories. i'd
> would like to get this setup so that it would complete the ultimate
> wheels testing environment ;)

ACF (and OpenBD) are harder to test with than Railo, because of the
way they handle "top level" mappings.

I think the best bet is to use a mapping for wheels, by cfincluding it
from a dir that is in the ACF root.

Attempting to do this is why I talked about including wheels from a
"public" directory a while ago. =)

Long story short, as far as I can tell, using a mapping doesn't fly
with the current code base, due to how cfinclude works.

Might be something worth addressing at some point. It would allow us
to ditch the if("Railo")... code chunks.

:Den

--
Rejoicing in our joy, not suffering over our suffering, makes someone a friend.
Friedrich Nietzsche

Reply all
Reply to author
Forward
0 new messages