indu_ss4 0 Newbie Poster

Hi all!
i'm developing a web application in jsf 2.0 with GlassFish server.Database is MySql.Https protocol.
My problem is that when i request for a page in my application sometimes the browser displays the source code of that page and not the html view for the user. It is not displayed all the times. Only sometimes it gets displayed like that.I cant trace the reason for it.
Please anyone help me to find the error and solve the issue.
Thanks in advance.