Skip to main content
jbird5k
Inspiring
June 26, 2012
Answered

calling external files in cf10

  • June 26, 2012
  • 2 replies
  • 1324 views

I just starting using CF 10, and all my external js calls get a 404 error.

This was my latest test: 2 files 1  cfm 1 js in the webroot

    wwwroot

       hello.cfm

       hello.js

hello.cfm contains the following

  

    <script>alert('hello from calling page');</script>

    <script src='hello.js' language='JavaScript'></script>

hello.js contains the following

    alert('hello from external js file');

the inline script fires fine, the external js file returns 404 - not found.

I have run this on 3 separate systems, stand a lone lap top,  Virtual Machine on the net work and my dev machine

used firefox, IE, Operal and Chrome  and the results were Identical.  So What setting am i missing  in the CF admin or is there a new syntax for calling external files in CF 10

Anyone else run into this?

This topic has been closed for replies.
Correct answer jbird5k

Well this is one of those Duh! moments.  Not having used Tomcat before, i did not realize it's Case Sensitive. I got lax because it was running on a windows box Which I have never had to pay strict attention to the case.

Made the necessary adjustments,  every thing is working again.

Thank you to all who provided input it was greatly appreciated.

2 replies

Inspiring
June 27, 2012

JS files are served by the web server, not by the CF server.  What web server are you using?

--

Adam

jbird5k
jbird5kAuthorCorrect answer
Inspiring
July 3, 2012

Well this is one of those Duh! moments.  Not having used Tomcat before, i did not realize it's Case Sensitive. I got lax because it was running on a windows box Which I have never had to pay strict attention to the case.

Made the necessary adjustments,  every thing is working again.

Thank you to all who provided input it was greatly appreciated.

itisdesign
Inspiring
July 4, 2012

jbird5k wrote:

i did the install with the internal server and both 9 and 10 running.   No problems with 9

[...]

Not having used Tomcat before, i did not realize it's Case Sensitive. I got lax because it was running on a windows box Which I have never had to pay strict attention to the case.

Hi jbird5k,

Two CF10 case-sensitivity bugs have been filed w/ Adobe.  Both are marked Open/ToFix.  For more information, here are the links: https://bugbase.adobe.com/index.cfm?event=bug&id=3199281 and https://bugbase.adobe.com/index.cfm?event=bug&id=3199283

#3199281 is the one which covers the issue w/ the built-in server which you experienced.

Thanks,

-Aaron

WolfShade
Legend
June 27, 2012

If both documents are in the root, see if this makes any difference.

<script>alert('hello from calling page');</script>

<script src='/hello.js' type='text/javascript'></script>

^_^

jbird5k
jbird5kAuthor
Inspiring
June 27, 2012

Thanks for the input, bu that did not work either.

I have :

changed the name of the  security_profile_ error file and restarted the service.....No change

uninstalled and reinstalled cf10

enabled the security profile

poured over every option in administrator

i did the install with the internal server and both 9 and 10 running.   No problems with 9

file structure in 10 is identical to 9,   and code analyzer is only returning hits for CFABORT

this is soooooo stupid.

I apologize for the rant,      fustration level is escalating!

thanks again for your input.