Skip to main content
Participant
November 27, 2009
Question

Coldfusion Clustering issue - Images are not loading properly

  • November 27, 2009
  • 1 reply
  • 577 views

Hi,

I am new to coldfusion. I installed CF7 in multiserver configuration. I created two instances on same box and created a cluster. I can browse to the two instances seperately and thru the cluster.

I am having an issue. When I access instances directly the site is working fine, but when I access it thru cluster, the images, javascript are not loading. I am getting error on jjQuery also( jQuery is undefined error).

I might have missed a basic thing in the installation but do not know what.

Could anyone help me to resolve this issue?

Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    November 27, 2009

    Where are your images and javascript files located on the filesystem? Are they located in the webroot of the webserver or are they inside the ColdFusion webroot? Can you explain the layout of the filesystemn of your webserver (Apache? IIS?) and CF server?

    November 29, 2009

    Thanks for your response.

    The installation is a multierver configuration installation. IIS is the web server.

    CFIDE location is:
    C:\Inetpub\CFMX7\CFIDE

    cfusion location
    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion

    Instance 1 file location
    C:\JRun4\servers\AppnInstance1\cfusion.ear\cfusion.war\Application

    Instance 2 file location
    C:\JRun4\servers\AppnInstance2\ePermits1_2.ear\ePermits1_2.war\Application

    Image files and javascript files are under Application folder.
    C:\JRun4\servers\AppnInstance2\ePermits1_2.ear\ePermits1_2.war\Application\Images
    C:\JRun4\servers\AppnInstance2\ePermits1_2.ear\ePermits1_2.war\Application\JS

    Application components are located at c:\AppnComponents

    If I browse each instance with its URL then it is ok, but when I access using cluster then it is not loading images and

    throwing errors on javascript.

    Thanks

    Inspiring
    November 29, 2009

    By default the IIS connector is set up such that only requests for *.cfm and *.cfc are forwarded from IIS to CF. So when you request .js files, they will be handled by IIS and not by CF. So you have two options:

    1. Move all your js, gif, png etc. files from the war file to the IIS webroot.

    2. Add additional mappings to /WEB-INF/web.xml so requests for .js files are forwarded from IIS to CF too.