Copy link to clipboard
Copied
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 RequestFile not found: /home/forrest/workspace/Learning/Gallery.cfc | |||||||||
Resources:
| |||||||||
|
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)
|
1 Correct answer
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.

