Skip to main content
Inspiring
January 10, 2009
Answered

Problems Running CF8

  • January 10, 2009
  • 7 replies
  • 967 views
I have installed Eclipse, CFEclipse, and Coldfusion 8. I have correctly edited the URL for the project in Eclipse. I have correctly set up mappings for the folder where the files are located (they are not in wwwroot). The correctness of my settings have been verified by the CFEclipse users group on Google. But they are all stumped as to why, when I have the index.cfm file open in Eclipse for this correctly set-up project, I press F12 and Firefox gives me a 404 error.

One of the users suggested it might have something to do with Windows permissions on my folders. I noticed a few weeks ago that all my folders have the read-only attribute applied to them. I cannot uncheck the box and click apply to remove it. It appears to remove, but when I close the properties for that folder and then reopen them, the read-only checkbox is selected again. I searched the Microsoft website, and found articles telling me to go to Run > Cmd, then use DOS commands to navigate to the folder I need to remove the read-only attribute from. While in that folder, I should type "attrib -r +s". That didn't work. I tried "attrib -r" and "attrib -r -s". No luck.

Is this read-only attribute what is keeping my CF from working properly? It has been applied to the wwwroot folder as well, so if this is my problem, moving my files to wwwroot won't help.

Pulling my hair out and hoping *somebody* has a successful idea!

Thanks,
Gwen H
This topic has been closed for replies.
Correct answer GwenH
Problem solved! All I had to do was move my website file folders into wwwroot, AND set up a mapping for each folder in CF Administrator. Now I am able to browse files. Apparently, CF forces users to put website files in wwwroot. This is very aggravating. It would be so much more convenient to place the files in a subfolder of My Documents, to reduce the number of folders that must be backed up.

Thanks for you help.

Gwen H

7 replies

Inspiring
January 13, 2009
> It would be so much more convenient to place the files in
> a subfolder of My Documents

Hmmm: I have to say I have never tried to set up a CF instance homed in a
dir with a space in the file name...

--
Adam
Inspiring
January 13, 2009
> No, CF does *NOT* force users to put webistes files in wwwroot. We do
> not put files in wwwroot, we don't even use the same drive as wwwroot on
> our system.

Seconded.

The new location of the files was not the solution to this, but the act of
moving the files could have had something to do with it.

Gwenh, I'd say you still have something dodgy with that computer.

How's (CF)Ecplise working for you with the files in the new location, btw?

--
Adam
Inspiring
January 13, 2009
GwenH wrote:
> Apparently, CF forces users to put website files in wwwroot.

No, CF does *NOT* force users to put webistes files in wwwroot. We do
not put files in wwwroot, we don't even use the same drive as wwwroot on
our system.

CF works where ever you have configured your web server website roots.
It is IIS and|or Apache and|or what every web server that defines the
web root and CF then works from there.
GwenHAuthorCorrect answer
Inspiring
January 13, 2009
Problem solved! All I had to do was move my website file folders into wwwroot, AND set up a mapping for each folder in CF Administrator. Now I am able to browse files. Apparently, CF forces users to put website files in wwwroot. This is very aggravating. It would be so much more convenient to place the files in a subfolder of My Documents, to reduce the number of folders that must be backed up.

Thanks for you help.

Gwen H
Inspiring
January 12, 2009
Gwen,

In addition to Adam's comments, can you successfully do the following:
1. Create a basic CFM file and save in your web root folder (create a variable and output it) called coldfusion.cfm, or any name you like
2. Start ColdFusion 8 (if not already started with system startup)
3. Open Firefox (or IE or any browser)
4. Navigate to http://localhost/coldfusion.cfm (depending on how you installed CF8, your URL for localhost might have an added port number: http://localhost:8500/coldfusion.cfm)

When you run through those steps can you see the output from ColdFusion? While this might seem overly basic, to me, the steps are central to moving towards a resolution. Specifically, you want to make absolutely certain that your actual CF server is working.

If it's working in this manner, then the problem would most likely be something with Eclipse or, as Adam mentions, an OS issue and we can go from there and try to help more.

Best,
Craig
January 12, 2009
GwenH,

It sounds like IIS is not properly configured to serve .cfm files. The first thing you should do is verify whether the CF application mappings are indeed listed in your site's configuration. Have you tried browsing a simple .html file from within the same directory of the .cfm files? If that works, I'll bet the problem is the application mapping. Good luck.

Cheers,

Byron
Inspiring
January 10, 2009
> for this correctly set-up project, I press F12 and Firefox gives me a 404 error.

Is the URL that Firefox is trying to browse to a valid one? Whether or not
you have a web server set up to service a request is nothing to do with
Eclipse, all it's doing is launching a browser and say "browse to this"...
it still has to be a valid URL.


> One of the users suggested it might have something to do with Windows
> permissions on my folders. I noticed a few weeks ago that all my folders have
> the read-only attribute applied to them. I cannot uncheck the box and click
> apply to remove it. It appears to remove, but when I close the properties for
> that folder and then reopen them, the read-only checkbox is selected again. I
> searched the Microsoft website, and found articles telling me to go to Run >
> Cmd, then use DOS commands to navigate to the folder I need to remove the
> read-only attribute from. While in that folder, I should type "attrib -r +s".
> That didn't work. I tried "attrib -r" and "attrib -r -s". No luck.

It sounds to me like your PC is f*cked.

I read the previous posts with all your woes with Eclipse and read only
files, but this seems to be a OS / file system thing, nothing to do with
Eclipse.

I've never had any hassles with Eclipse, so had nothing to offer by way of
suggestions, sorry.

Are you an administrator of the PC you're using?

--
Adam