This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Getting HTTP:500 error when accessing .jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Getting HTTP:500 error when accessing .jsp page" Watch "Getting HTTP:500 error when accessing .jsp page" New topic
Author

Getting HTTP:500 error when accessing .jsp page

Shimei Sankati
Greenhorn

Joined: Oct 20, 2012
Posts: 3
Hi all,

I run the code on my local machine and it works perfect. I got it deployed and now I am getting HTTP:500 error when try to access search.jsp page. I am totally new to IT, especially to JAVA and JSP. Would you guys please please help me ASAP. Need your guidance. I can paste my JSP page code here if wanted. Other than that I dont know what approach to take. Any help is much much appreciated.

Please help.

Regards.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

500 just means something went wrong. First check the logs to see if you see anything. If that doesn't help, replace your JSP content with "hello." This will tell you if the error is in your JSP (if hello loads) or configuration if you still have a 500 error.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shimei Sankati
Greenhorn

Joined: Oct 20, 2012
Posts: 3
Hi Jeanne,

Thanks for you prompt reply. Really appreciate it.
Yes, I am trying to do the same to check for the log messages. I just added the <init param> debug part to "true" in my web.xml page and trying to deploy the war file again...I will check that in a while and post.
However, I am very sure that the HTTP:500 is because of something wrong in my jsp code because when I deploy the old war file with the OLD search.jsp, it loads just fine.
Therefore, since I am very new to this and I am working on a code already developed by someone else....I am unable to figure out the exact cause for this issue and just to make things worse, I need to get this thing up and running ASAP....
As said the code work perfect when run from my local machine though...

Please advice....

Thanks in advance!!!
Shimei Sankati
Greenhorn

Joined: Oct 20, 2012
Posts: 3
Hi Bear,

Thanks for that information. Did not know that rule about the website. Will certainly keep that in mind.

Hi Jeanne - Would you please help me with steps to check the logs. I mean what do I need to do to get the entire exception message in IE.

Please advice.

Thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30076
    
149

Shimei Sankati wrote:Hi Jeanne - Would you please help me with steps to check the logs. I mean what do I need to do to get the entire exception message in IE.

You don't. The server logs aren't available through the browser. The location of the logs depends on the server you are using (Tomcat, JBoss, etc.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting HTTP:500 error when accessing .jsp page
 
Similar Threads
error: expected';'
JSP and custom Exception class
Redirect internal server error to custom JSP
javax.servlet.ServletException: BeanUtils.populate
http 500 error sometimes