Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

500 error ?

 
Ahmad Kamal Ramli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
some of my JSP can work well but certain file when i run will show 500 error -> internal server error.
Have a solution.?
 
Vikram Das
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ahmad,
Response code 500 : Internal server error indicates that there was an error on the server side. In case of JSPs, this might indicate that there was an error in compling the JSP (that is compling the resultant servlet of this JSP). This would in all probability mean that your JSP was not correctly formed, this in turn could occur due to various reasons : JSP tags not used properly or any other standard java compilation errors. Most servers would indicate the line where the error occured along with the description of the error. Does this answer your question?
Vikram.
Originally posted by Ahmad Kamal Ramli:
some of my JSP can work well but certain file when i run will show 500 error -> internal server error.
Have a solution.?

 
Jason Kilgrow
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. And what if the jsp (servlet) has been running and you haven't made any changes and you still get a 500?
==================================
Originally posted by Vikram Das:
Hi Ahmad,
Response code 500 : Internal server error indicates that there was an error on the server side. In case of JSPs, this might indicate that there was an error in compling the JSP (that is compling the resultant servlet of this JSP). This would in all probability mean that your JSP was not correctly formed, this in turn could occur due to various reasons : JSP tags not used properly or any other standard java compilation errors. Most servers would indicate the line where the error occured along with the description of the error. Does this answer your question?
Vikram.

 
Ahmad Kamal Ramli
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually i know Java starting from jdk 1.1.2 but right now i'm moving to JSP. i already installed Tomcat in windows98 and it work ok ..till 500 error occur. can you give a method how to solve this..
regards
 
Vikram Das
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Jason,
500 error basically means The server encountered an unexpected condition which prevented it from fulfilling the request. This might occur due to any reason tt the server is not able to fulfill the request. JSP not compiling is one such situation. This can be one possible reasons for our man's probs ...
Originally posted by Jason Kilgrow:
Ok. And what if the jsp (servlet) has been running and you haven't made any changes and you still get a 500?
==================================

 
Vikram Das
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ahmad,
As I told you before this might be due to a glitch in your JSP code ... some kindof a compilation prob ... so, therez no method to solve this prob other than looking at the error msg tt the server gives you & changing the appropriate line in the JSP ... think of it like this ... itz exactly like the compilation errors that you would have got during your jdk1.2.2 coding time ... "variable not declared", "unterminated statement" etc ... all you can do 4 this is make the code right ... if u r not able to get hold of the prob send the JSP across to me & I can hv a look at it ...
Regards,
Vikram.
Originally posted by Ahmad Kamal Ramli:
actually i know Java starting from jdk 1.1.2 but right now i'm moving to JSP. i already installed Tomcat in windows98 and it work ok ..till 500 error occur. can you give a method how to solve this..
regards

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic