Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Oct 11, 2010 Oct 11, 2010

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)
TOPICS
Getting started
3.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Oct 11, 2010 Oct 11, 2010

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

...
Translate
Community Expert ,
Oct 11, 2010 Oct 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 11, 2010 Oct 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2010 Oct 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 11, 2010 Oct 11, 2010

Dave Watts wrote:

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

Or learn how to configure the built-in web server to use /home/forrest/workspace/Learning/ as the web root.  But Dave's suggestion is probably MUCH easier.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 11, 2010 Oct 11, 2010

@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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 11, 2010 Oct 11, 2010

You don't *HAVE* to uninstall to start using Apache.

But sometimes it is easier for beginning users.

It depends on how familiar you are with web servers, application servers, and how they all tie together.  As well as how willing you are to search the Internet for answers to the above that you do not have.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 11, 2010 Oct 11, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2010 Oct 11, 2010

My mistake, I should have listed port 8500. That's the default port when using the "standalone" installer. Port 8300 is used with the full JRun install, which is what I usually use.

"ilssac" is right - if you follow all the defaults he lists, your scripts should work. If not, check the permissions on the /opt/coldfusion9/wwwroot folder.

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 11, 2010 Oct 11, 2010

Dave Watts wrote:

"ilssac" is right - if you follow all the defaults he lists, your scripts should work. If not, check the permissions on the /opt/coldfusion9/wwwroot folder.

As long as you recongize the typo and use "ColdFusion9' in all the right places, not just "ColdFusion" is I showed in my I.E. example.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 12, 2010 Oct 12, 2010

Finally it works!

As it turns out using the full system directory to establish the URL was wrong, I was using "/opt/coldfusion9/wwwroot/myfolder/"  When I should have used "/myfolder".  I'm guessing this is because wwwroot is the base of the folder tree that the server serves up.  anything below that doesnt exist from the server's perspective.

Thank you very much for the help and patience with my noobiesim.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 12, 2010 Oct 12, 2010
LATEST

That is an important lesson to learn and remember.  What the difference between the FILE path and root and what the WEB path and root are.  How they relate and how they differ.

With CFML code you will often be using one or the other for different purposes and it can be very confusing if one mixes up the two concepts.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources