Solved

remotely debugging servlets

Posted on 2003-12-08
4
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Export JSON response data to Excel in IE9 3 96
Lamba in java 8 9 259
throw exception 21 76
how to debug htl and js pages 8 76
The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
By reading this blog, MSPs will gain insight into how to improve communications with their clients as well as establish a more profitable business.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 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