Solved

remotely debugging servlets

Posted on 2003-12-08
4
221 Views
Last Modified: 2010-04-01
Hi,
Question, created a war file and deployed my app. on application server. Now i noticed that i have a bug. Can i debug the servlet and/or jsp pages locally ? Is this possible ?
Thanks !
Sara
0
Comment
Question by:saramieke
  • 3
4 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 9895680
Only if you run a servlet container locally.

You can't debug locally because by the time your browser gets the data from the server, all the processing has taken place.
0
 

Author Comment

by:saramieke
ID: 9895687
how can i setup this environment locally then..?
thanks
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9895694
Are you getting an exception when it runs or is it just not behaving as you expect?

In the first case, you need to examine the exception that is reported to find out where in your code the exception is occurring.  In the second case, you should output some debug information to a log file and examine that.

To set up a log file for your application, you need to have a <Logger> entry in your web application <Context> in the server configuration file.

How much access do you have to the application server (and which app server is it)?
0
 
LVL 15

Accepted Solution

by:
jimmack earned 125 total points
ID: 9895711
>>  how can i setup this environment locally then..?

sorry, I didn't see this when I did my last post ;-)

You need a servlet container on your local system.  Which application server are you using at the moment?  This *shouldn't* really matter, since different brands of servlet container should still produce the same output from servlets/JSPs, so you could install Tomcat (or something similar) on your PC.  http://jakarta.apache.org/tomcat/index.html

Please post again if you need more info.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
rebasing and merging used in SCM 1 81
error when compiling my project in eclipse luna 30 496
squirrelPlay java challenge 40 159
by zero exception 10 69
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Read our guide on how to survive being on-call.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question