Solved

remotely debugging servlets

Posted on 2003-12-08
4
218 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
Comment Utility
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
Comment Utility
how can i setup this environment locally then..?
thanks
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
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
Comment Utility
>>  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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now