• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Debug j2ee application

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm having on2 j2ee application running on my test server. Is there anyway to debug the application.
The problem is i'm supposed to maintain the application and no documentation about system flow or database mapping is available. It is typical MVC architecture and uses EJB. Can anyone tell me the best suitable way to debug the same.
TIA
Grishma
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In order to tackle the "no documentation" problem, I'd suggest to simply read the code and scribble notes about dependencies and execution sequences on paper.
In order to debug the code running on an application server, you need to
1) Start the server in a mode which has debugging enabled
2) Set breakpoints in your IDE
3) Point your IDE (with debugging features) to the correct <address>:<port>
 
Grishma Dube
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, i'm using oracle 9i AS rel 2 and i'm very much new to it. I'm not using any IDE, however i can use JBuilder if required.
Can you tell me, how to go abt it?? Means any debugging method in oracle 9i???
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should ask this in the Oracle forum but I'll give you something to try out first:
1) Modify your startup script to include the following properties:
-Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
2) Start the server (and deploy your application, if it isn't deployed already)
3) Point your IDE's debugger to the server's JVM by doing something like "Debug -> Enable Remote Debugging -> Attach..." and filling in the server's hostname and port (8000 in the example). Anyway, there must be a help page about debugging in JBuilder...
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
By the way, I found this JBuilder debugging tutorial by Googling.
 
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic