Solved

CFEclipse Configuration Issue

Posted on 2012-04-12
13
1,375 Views
Last Modified: 2012-04-13
I'm a ColdFusion newbie who's trying to set up CFEclipse and ColdFusion on my machine. I'm going through this tutorial:
http://www.ibm.com/developerworks/opensource/library/os-eclipse-cfeclipse/?ca=dgr-lnxw06CF-Eclipse

and when I get to the step of opening index.cfm in the "Browser View" tab (Figure 11), I get "webpage cannot be found".

I don't think CFEclipse is properly pointing to my local ColdFusion server but I haven't yet been able to find the settings to confirm this.
0
Comment
Question by:opike
  • 5
  • 5
  • 3
13 Comments
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
(I didn't read the whole thing, but bear in mind that article's 5+ years old. So some things may have changed)

Did you verify your CF server installation was working properly before installing eclipse? In other words are you sure it's a CFEclipse problem.   Also what's your version of:

- CF Server (8, 9, 9.0.1, ...)
- Web server (Built in webserver, IIS, apache, ..)
- CFEclipse and Eclipse
       * Check help > about eclipse platform & installation details (CFEclipse)
0
 

Author Comment

by:opike
Comment Utility
Thanks for your response.

CF Server version 9,0,0,251028 64 bit
Apache 2.2
Eclipse Indigo Server Release 2
CFEclipse version 1.4.4
OS: Windows 7 64 bit

I'm able to bring up the CF Server admin interface @
http://localhost/CFIDE/administrator/index.cfm
0
 

Author Comment

by:opike
Comment Utility
I noticed there are some default examples under
C:\Programs\ColdFusion9\gateway

What URL would I use to access these examples through the browser?
0
 

Author Comment

by:opike
Comment Utility
It looks like according to the server mappings:

screehshot
I should be able to use http://localhost/gateway

but that is giving me a 404 "page not found" so there is something with my CF Server and/or Apache configuration that is not right.
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
I'm able to bring up the CF Server admin interface @

Ok, that confirms CF is working.  What's the location of your project directory?  If it's in a non-web accessible directory that could explain the error.

       * Select the project > click properties > (Location)
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 250 total points
Comment Utility
agx is  correct the gateway dir is not browseable as it's outside of the webroot. It's for Event Gateways (an advanced cf feature) the mapping tells cf where to find the files it needs to process arriving events

Remember that CF mappings are -not- the same as a webserver mapping

You should be browsing to a web accessible dir.

ie: localhost/myProject or 127.0.0.1/myProject
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 36

Expert Comment

by:SidFishes
Comment Utility
hah - now that's funny agx - mentioning something you edited out while i was writing and won't make any sense now... :)
0
 
LVL 36

Expert Comment

by:SidFishes
Comment Utility
Also fwiw - I've never been able to get the internal browser to work well using Eclipse 3.5 & cfeclipse. In fact a lot of the browser features don't work properly in my set up. ie: the "open in external browser" buttons don't work either.

I just use external browsers (FF. IE, SaF & CHr)

alt-tab is where it's at
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
mentioning something you edited out while i was writing and won't make any sense now... :)

Nah, everybody will assume you're a genius with psychic powers.  I'm just too slow today. I didn't see opike's screen shot until after I posted .. which made my last response sound like I was daft or couldn't read ;-) I was about to add a correction, then you responded and EE locked me out :) Oh well, time for more coffee ..

ie: the "open in external browser" buttons don't work either.

Yeah, I remember having that problem on one installation. Not sure how I fixed it, maybe adding/removing the CFE nature or updating the browser paths.  Fortunately it works perfectly on my current machine 3.5 / Win7 (TG).
0
 

Author Comment

by:opike
Comment Utility
"What's the location of your project directory?  If it's in a non-web accessible directory that could explain the error."

My project directory is outside of the apache directory structure so I'll try moving it under htdocs/.

I also noticed that CF placed a cfdocs/ directory under htdocs. There's a getting_started folder under cfdocs/ that looks like it contains a sample app but I can figure out where the top level link is.

screenshot
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
It's part of the overall CF documentation. The root is "dochome.htm"

        ie http://localhost/cfdocs/dochome.htm
0
 

Author Comment

by:opike
Comment Utility
From dochome.htm can I get to the files in cfdocs/getting_started?
0
 
LVL 52

Assisted Solution

by:_agx_
_agx_ earned 250 total points
Comment Utility
I don't know.  Truthfully it's been a lot of years since I looked at the cfdoc examples :)  In old versions there used to be working examples you could run directly from the docs by clicking on a link.  But that was some time ago.  I don't know if that's still true for newer versions.  Most pages in the docs just have code samples you can copy and paste into a .cfm file and run. They use the sample databases listed in the cf admin (cfartgallery, cfbookclub, etc...) .
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now