Tuesday, 3 February 2009

.PNG images not displaying in browser not caused by mime issue

« How to stop multiple login attempts against your sql server and other port specific server applications | Main | Found this cool link to some Industry/Cross-Industry Schema Libraries »
Share

The old axiom, "ya learn something new everyday..." hit me outta the blue today.  On a development server we have a folder setup to showcase sample development.  Owner calls me and says none of the .png images are showing up, not on the page to which they are sourced or called directly from within the browser.  I spent about 2 hours trying different MIME type settings (image/png and image/x-png), hacking different settings in the registry and finally folder level settings.  All to no avail.

I ended up calling the domain host and putting in for a fix ticket as I thought perhaps it was a re-install of some component that got messed up with some update or install.  Come to find out the solution lie in a totally unsuspected area.

Since this company is a premier coldfusion application developer, almost all of our servers have coldfusion installed.  This being the main dev server, we have coldfusion along with some other server side services running.  In this instance, the problem lay with an entry in the web.xml.  The following piece of code was the culprit.

    <servlet-mapping id="macromedia_mapping_14">
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.png</url-pattern>
    </servlet-mapping>

If a request for the image or the html page (which contained src links to the png image) was made at this point, IIS would hand off the request to the connector to handle the png's, but the connector would have a list of mappings that it got from ColdFusion's web.xml file, and since web.xml does not contain mappings for .html, the result will be that the connector returns an HTTP 503 status code to the web server for each png src image called and the web server sends that to the client browser.

One can add (or delete) internal mappings to a coldfusion installation by editing the cf_root/wwwroot/WEB-INF/web.xml to create new custom mappings that associate the extensions with the CFMServlet.  In the above code we were telling coldfusion to process all files in the IIS webspace, coldfusion or otherwise, with the extension "png".  This apparently confused IIS since it would load the html page but not load the png images as those were being passed off to the coldfusion connector. 

The final solution was to comment out the web.xml entry as follows:

<!--
    <servlet-mapping id="macromedia_mapping_14">
        <servlet-name>CfmServlet</servlet-name>
        <url-pattern>*.png</url-pattern>
    </servlet-mapping>
-->

Thus, IIS will now handle the processing of the .png images called by src tags within the html page.

 

Technorati Tags:

Posted by cfalchemist at 10:06 PM in Coldfusion Server Administration

 

[Trackback URL for this entry]

Pingback: .PNG images not displaying in browser not caused by mime issue | The Black Ball at Wed, 4 Feb 12:20 AM

.PNG images not displaying in browser not caused by mime issue
me and says none of the .png images are showing up, not on the page to which they are sourced or called directly from within the browser Read the

Comment: tickert at Fri, 29 May 3:09 AM

House of Fusion released a pretty good tool bar http://www.frogmix.com/search/tool+bar recently for IE/FF. It shows popular CF sites, resources, blogs & aggregators as well as podcasts. I've used it and it is the first toolbar that I have let remain visible on my browser for years.

Comment: peatteSleeste at Fri, 3 Jul 10:42 PM

Good day


Positive Christianity Versus Judeo-Christianity
.
by Charles Coughlin
.
For much of our lives, White Christians in America have not been taught REAL Christianity. Instead, television and the mass media have gradually influenced and twisted the teachings of organized churches in America. If we could travel back in time, and tell a preacher in the 1950s what would be taught as Christianity in the year 2001, he would be completely shocked and disgusted. Basically, most ministers and priests want to "fit in" with society. Most do not want to endlessly fight ALL the corrupting influence of the mass media for fear of becoming "controversial" figures. Most preachers want to collect donations every Sunday, have nice peaceful sermons once a week, and carry on their work with minimal fuss.... so they defend a few principles of Christianity while the TV corrupts everything else. These preachers should be teaching "Positive Christianity", which is based on the Bible and eternal truth, not giving in to Judeo-Christianity, which reflects what liberal, amoral Jews want us to believe.
.
Unfortunately, most Americans have been brainwashed into accepting "Judeo-Christianity", which tells White people that is "bad" to want to live in clean, safe, White neighborhoods free of the troubles that the average Blacks would bring, that it is "bad" to want your daughters to marry White men, that it is "bad" to hope that your son does not turn into a homosexual, and that it is "bad" to own a gun to defend yourself and your family from criminals. Judeo-Christianity has been created by liberal Jews, and it could easily be called "Negative Christianity". Judeo-Christianity tells White people that everything, that they know in their hearts is good, is "bad" if it conflicts with what the Jews want us to believe.
.
In truth, the beliefs of liberalism are overwhelmingly anti-Christian, whereas the beliefs of pro-White Americans are much closer to real Christianity than anything else out there. This can be easily proven by taking very clearly worded passages directly out of the Bible from quotations directly from God, Himself, and Jesus Christ.
.
Who are the Chosen Ones?
.
First of all, the Jews are no longer the "Chosen Ones" and the reason that they were "chosen" can be found in the Bible and will be a surprise to most Americans. Judeo-Christianity teaches us that the Jews have some special relationship with God even though they murdered His prophets and killed the Son of God, Jesus Christ. We are just supposed to forget about the fact that almost all Jews consistently turned away from the teachings of God and ignored or even murdered His messengers.
.
In John 8:44, Jesus tells the Jews "Ye are of your father the devil, and the lusts of your father ye will do. He was a murderer from the beginning, and abode not in the truth, because there is no truth in him. When he speaketh a lie, he speaketh of his own nature: for he is a liar, and the father of lies." In Revelations 2:9, an angel of God tells St. John "I know the slander of those who say they are Jews, and are not, but are the synagogue of Satan."
.
In Mark 2:17, in response to criticism from the Jewish elders, who complained that Jesus was spending time with lowly sinners, Jesus replied "They that are healthy have no need of a physician, but they that are sick: I came not to call the righteous, but sinners to repentance." Why did God first focus on the Jews of all the races on the planet? Surely, God knew that the Jews would kill many of His prophets, and there was no doubt that the Jews would kill His Son. Was God trying to give us a warning about the true nature of the Jews to protect us so that we would keep them out of Christian lands or keep them from taking over our mass media and government?
.
An even more clear explanation that wipes away the notion of Jews still being the "chosen people" appears in the Parable of the Vineyard. In Luke 20:9 through 20:17, Jesus explains in unmistakable clarity, the notion of who is chosen and who isn't:
.
"Then began He to speak to the people this parable; A landlord planted a vineyard, and let it out to tenants, and went into a far country for a long time. And at the season he sent a servant to the tenants, that they should give him of the fruit of the vineyard: but the tenants beat him, and sent <him> away empty. And again he sent another servant: and they beat him also, and entreated <him> shamefully, and sent <him> away empty. And again he sent a third: and they wounded him also, and cast <him> out. Then said the lord of the vineyard, What shall I do? I will send my beloved son: it may be they will reverence <him> when they see him. But when the tenants saw him, they reasoned among themselves, saying, This is the heir: come, let us kill him, that the inheritance may be ours. So they cast him out of the vineyard, and killed <him>. What therefore shall the lord of the vineyard do unto them? He shall come and destroy these tenants, and shall give the vineyard to others."=20
.
Basically, the Parable of the Vineyard explains that the Jews were evil from the start. That God gave them a chance, and they murdered the people sent to them, namely the prophets and the Son of God, and that a new chosen people will be found because the first people were undeserving. The White Race accepted Christianity and clearly White people are the new chosen people, who have accepted God's Word, and who deserve to be "Chosen Ones".
.
What is God's Position on Diversity and Interracial Breeding?
.
The liberal Jewish media endlessly tells us that "diversity is= good" regardless of the crime statistics, the genetic effects of= Whites breeding with inferior races, or how many times a better qualified= White is denied promotions and jobs so that a less qualified minority is= pushed ahead of him. Once again, what the Jewish media tells us is wrong= and in conflict with what God has told us. Specifically, God clearly tells= us in Leviticus 18, that "intermingling of seed" is forbidden.= The Bible refers to different races as different seeds. For example, the= Jews are called "the seed of Abraham" and the Blacks are called= "the seed of Ham". God clearly prohibits "intermingling of= seed", which means any interracial breeding.
.
Multi-racial societies have existed throughout world history. Ancient= Babylon was a "diverse" society that existed long ago, and which= God strongly disliked. The term "Babylon" is used throughout the= Bible to refer to corrupt, multi-racial societies. Ancient Rome was often= called a "Babylon". In Revelations, there is a prediction of a= future powerful nation, that sounds very much like modern America. A battle= of good versus evil takes place in this future Babylon. In Revelations 18,= an angel of God tells St. John: "Fallen, fallen is Babylon the Great,= the whore, who made all nations drink of her impure passion." The word= "nation" was often used in the Bible in place of= "race". The "impure passion" is interracial breeding.= Liberal Jews tell us that interracial breeding is good. God tells us that= it is bad.


In truth, the beliefs of liberalism are overwhelmingly anti-Christian, whereas the beliefs of pro-White Americans are much closer to real Christianity than anything else out there. This can be easily proven by taking very clearly worded passages directly out of the Bible from quotations directly from God, Himself, and Jesus Christ.

The question is, who is causing all the trouble? Why is our economy collapsing? Why are we fighting so many wars? Who are the REAL terrorists? Who's behind the abortion slaughter? Who's behind the nationalizing of American business? Who owns the federal reserve Bank (it is a privet bank)? Why do we pay interest on our own money?

Click here for more details

Your comment:

(not displayed)
 
 
 

Live Comment Preview:

 
Our Sponsors:

 

« February »
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
       
       

BlogBurst.com
My site was nominated for Best Blog of All Time!
My site was nominated for Best Blogging Host!
My site was nominated for Best Political Blog!