?
Solved

remotely debugging servlets

Posted on 2003-12-08
4
Medium Priority
?
224 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 375 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month12 days, 3 hours left to enroll

752 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