Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Source code displayed in browser

 
Balaji Munuswamy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing strange problem in my application. When user login to the application some time browser directly displays the source code. This problem is not consistence.

If the user refreshes the page, he/she will get the proper screen.

Does any one experience such problem before? If so, what is the cause this problem?

Thank you,
Balaji
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji,

You might want to give us some more details:

What container are you using?
Is it a standalone or does it have a webserver in front of it?
If the latter, what connector are you using to join the two?
Are you hitting the JSPs directly or through a controller?
Are you creating servlet entries for the JSPs?
 
Balaji Munuswamy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What container are you using?
It is using Apache as web server and Weblogic 8.1 for application server
Hi,


Is it a standalone or does it have a webserver in front of it?
it is using webserver in front

If the latter, what connector are you using to join the two?
Apache Http server is added as plug-in for weblogic

Are you hitting the JSPs directly or through a controller?
The request is submitted to servelt and the Response is forwarded to JPS using Request Dispatcher.

Are you creating servlet entries for the JSPs?
No. Response is forwarded to JPS using Request Dispatcher.

I think, I answered you question, Please let me know what could cause such problem.

Thank you,
Balaji
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not very familiar with Weblogic and whether or not it works as a standalone webserver.

With Tomcat/Apache or with Tomcat/IIS, the first test I do in a case like this is hit Tomcat directly. If I can't reproduce the problem with Tomcat as a standalone, then I consider it a safe assumption that the problem is in the connector configuration.

I wonder if this thread would do better in the Weblogic forum??
This type of issue is usually the result of a configuration issue; not a programming one.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed. Moved to the Weblogic forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic