Skip to main content
Participant
October 11, 2010
Answered

beginner question: Getting file not found error, when file exists

  • October 11, 2010
  • 1 reply
  • 3974 views

I am running Coldfusion9 developer edition on Ubuntu 10.10 x64.  I have been following the tutorial found here. So far I have been able to do everything with the exception of viewing my pages in the browser.  When I try to view the page it gives me the error posted below.

I have been using cfEclipse to build the pages and I have followed the directions as closely as I can, the only deviation being that I substituted Linux paths for the Windows ones.

Thanks in advance

Error Occurred While Processing Request

File not found: /home/forrest/workspace/Learning/Gallery.cfc

Resources:

Browser  Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10) Gecko
Remote Address  0:0:0:0:0:0:0:1
Referrer 
Date/Time  11-Oct-10 10:44 AM
Stack Trace


coldfusion.runtime.TemplateNotFoundException: File not found: /home/forrest/workspace/Learning/Gallery.cfc
     at coldfusion.filter.PathFilter.invoke(PathFilter.java:90)
     at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
     at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
     at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
     at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:264)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
     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)
This topic has been closed for replies.
Correct answer ilssac

@David Watts thanks for the help I tried changing the port to 8300 this also does not work.  Which makes sens I guess because I have to go to "http://Mypc:8500/etc. in order to get to the CF administrator

Should I Unistall CF and then reinstall and use Apache?  It seems like this would smooth the whole process.

thanks guys


greyoxide wrote:

@David Watts thanks for the help I tried changing the port to 8300 this also does not work.  Which makes sens I guess because I have to go to "http://Mypc:8500/etc. in order to get to the CF administrator

That means that content in the /opt/coldfusion9/wwwroot/ directory will be served up by the url http://Mypc:8500/.

I.E. /opt/coldfusion/wwwroot/myFirstColdFusion.cfm == http://mypc:8500/myFirstColdFusion.cfm

Unless you have done something to the underlining configeration to change this behavior.

1 reply

Community Expert
October 11, 2010

Before you can write your own pages, CF has to be configured and working properly. The linked tutorial doesn't mention how to set up CF, it assumes you have already done this.

When you installed CF, what options did you choose? Are you using Apache, or are you using the built-in JRun web server? Where is your web root directory? Where is your root CF mapping pointing? Can you run the CF Administrator to find out?

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Dave Watts, Eidolon LLC
greyoxideAuthor
Participant
October 11, 2010

@dave Watts thanks for your quick reply.

When I installed Coldfusion I did not have Apache, and I did not use the built in Jrun webserver.  Was this a mistake?  I assumed that the Coldfusion developement environment could serve up pages locally without a third party server.  I'll admit I have very little knowledge here.

the wwwroot directory is at /opt/coldfusion9/

for the CF mapping point I am assuiming you are refering to cfadministrator>server settings>mapping.

these are :/opt/coldfusion9/wwwroot/CFIDE

and /opt/coldfusion9/gateway/cfc

Thanks

Community Expert
October 11, 2010

If you didn't configure CF to use Apache, it's using the built-in JRun web server. By default, that listens on localhost:8300, so you should be able to access the CF Administrator by going to http://localhost:8300/cfide/administrator/.

Your web root should be /opt/coldfusion9/wwwroot. Put your pages there rather than /home/forrest/workspace/Learning/.

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/

http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

GSA Schedule, and provides the highest caliber vendor-authorized

instruction at our training centers, online, or onsite.

Dave Watts, Eidolon LLC