Solved

remotely debugging servlets

Posted on 2003-12-08
4
220 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
object methods vs static methods 2 100
getting Http 404 error in jsp forms 8 81
constructor overloading 2 86
print map entry 34 72
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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