0

I installed the new ColdFusion version 2016, and have it and the old ColdFusion 10 version both installed on different ports. However, when I browse the site, both give me the same error:

http://localhost:8550/workingcart/js/fancyBox/jquery.fancybox.css

HTTP Status 404 - /workingcart/js/fancyBox/helpers/jquery.fancybox-thumbs.css

type Status report

message /workingcart/js/fancyBox/helpers/jquery.fancybox-thumbs.css

description The requested resource is not available. Apache Tomcat/8.0.27

even if the file exists on the file system. I checked google, looked at couple of forums, but could not find a way to fix it. Does anyone know how to resolve it?

The site does load, but only, if I supply index.cfm to end of the url. Otherwise, it shows the same error, but it does not load internal files.

Leigh
  • 28,765
  • 10
  • 55
  • 103
  • 1
    ColdFusions' built in server is case sensitive, might that be an issue? – James A Mohler Mar 12 '16 at 05:20
  • 1
    Probably more a question for ServerFault. – Adam Cameron Mar 12 '16 at 09:44
  • The files doesn't simply need to be present in the file system, it has to be a) web browseable on that *URL* (the file path is only tangentially related); b) by the web server that's serving it. So your website for the CF2016 install needs to have a URL /workingcart/js/fancyBox/jquery.fancybox.css in *its* webroot. You don't mention anything about ensuring or checking this, so presume you haven't. What directory is CF2016's wwwroot, and within that, is there a /workingcart/js/fancyBox/jquery.fancybox.css? – Adam Cameron Mar 12 '16 at 09:48
  • my website is in `cfusion/wwwroot/workingcart/js/fancyBox/jquery.fancybox.css` –  Mar 12 '16 at 13:36
  • You are try to access http://localhost:8550/workingcart/js/fancyBox/jquery.fancybox.css and error shows 404 for /workingcart/js/fancyBox/helpers/jquery.fancybox-thumbs.css. Is the first url making a reference to the second link, in any way? – Anit Kumar Mar 12 '16 at 16:44
  • Are you trying to browse a stylesheet? – Dan Bracuk Mar 14 '16 at 04:00
  • 1
    @Dan, can you share a repro code? – Anit Kumar Mar 15 '16 at 08:30
  • if you are on linux / mac. check file owner ship and permissions. also make sure that a tomcat servlet or filter is not hijacking your .css files. (a test would be to just rename you .css file to .cfm to see if you still get the 404. For tomcat the catalina.out log may also give some clues. – M.Scherzer Mar 15 '16 at 11:42

1 Answers1

1

I was having the same problem. Definitely has to do with Case Sensitivity on the path to my CSS and JQuery. Check your path on the tag and tags. It worked for me.

For example:

Old Code: link href="/phonestore/bootstrap/css/bootstrap.css" rel="stylesheet"

New Code: link href="/PhoneStore/bootstrap/css/bootstrap.css" rel="stylesheet"