Solved

Trace through a web application

Posted on 2004-10-21
222 Views
Last Modified: 2010-04-01
Hello ...
 I am a Bioinformatist new to Java Technologies but fair knowledge in other lang.
(Perl,C and CGI scripting)

Our lab is using an application that is deployed on a J2EE app server(TomCat) and primarily uses JSP and servlets with a db that is Oracle ...


In order to understand the application I wish to "trace" through the applictaion.I have the source for the application.But I am not sure if
I can trace through a web based application as I do for a non -web based application.

Thanks for your time.
0
Question by:micro_learner
    5 Comments
     
    LVL 35

    Assisted Solution

    by:TimYates
    If you run it in an IDE like JBuilder, then yes you can step through it in exactly the same way...

    You *can* put debug (System.out.println) lines in too, and see what comes out of catclina.out (in the logs dir of tomcat)

    Is there a framework in use?  (Struts, Tapestry, etc)?

    If so, there will be XML config files inside WEB-INF of the web application which should show you how a URL maps to a piece of code...

    Tim
    0
     
    LVL 35

    Expert Comment

    by:TimYates
    There is Eclipse as well (www.eclipse.org) which is another IDE (but free), and that allows you to trace through JSPs as well (I believe) though I have never tried it...

    Tim
    0
     

    Author Comment

    by:micro_learner
    Thanks for the reply ..I have Netbeans installed ...can I do with this.

    Also Here they use "Castor" to retreve ..

    Also could you direct me to a quick tutorial ...or something similar so that I can get the rudiments needed quickly
    0
     
    LVL 35

    Expert Comment

    by:TimYates
    Yeah, you should be able to...

    Hmmmm...never used Castor... It's a JDO thing (so it saves Java objects into the database without you having to do too much) I believe :-)

    but I have to go home now...

    I'll have a look tomorrow if no-one else has jumped in with more help :-)

    0
     
    LVL 13

    Accepted Solution

    by:
    You can use remote debbuging as following:

    1- open the batch that starts tomcat and add this line before the line to execute the JVM (Command Prompet>java ........ ) :

    set JAVA_VM=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n

    then modify the line initiate the Tomcat Java process to be from

    java ......

    to be java %JAVA_VM% ...............

    2- from netbeans configure remote debbuging

    debug --> start session ---> attach specify that the socket connector is socket attach and specify the host name to the tomcat server and the port will be 7777

    3- But ur break points in the application code and then run the application on tomcat it suppose to stop at break points and trace
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
    I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    846 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

    8 Experts available now in Live!

    Get 1:1 Help Now