DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Debugging oc4j in eclipse no source
Notices
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2010
Default Debugging oc4j in eclipse no source - 01-11-2010, 02:10 AM

Hi All,

I’m having a problem with oc4j and eclipse. When eclipse connects to ocj4 in debug mode using remote java application no sources are displayed in eclipse. I used ‘Edit Source Loopup Path’ to point to the project which contains the sources but it won’t attach to it.

I have done the following:

Oc4j starts successfully in dubug mode using:
C:\taxi\oc4j\j2ee\home>java -Xms512m -Xmx750m -XX:PermSize=128m -XX:MaxPermSize=256m -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y ,suspend=n -j
ar oc4j.jar

Eclipse successfully connects to oc4j using a remote java application debug configuration. In the tabs everything is pretty much standard. I have attached print screens of every tab except for common. No changes have been made to the tab. The project (taxi-prepare) which contains the sources is added in tab source.

Java version:
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

Oracle version:
10.1.3.4.0

Ecipse version:
Galileo buildid M20090917-0800

Any suggestions would be very much appreciated.

Regards,

Josip
Attached Images
File Type: jpg source.jpg (85.2 KB, 5 views)
File Type: jpg connect.jpg (92.2 KB, 4 views)
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Join Date: Nov 2009
Default 01-11-2010, 07:05 AM

Well i was facing similar problem couple of months before, one of web hosting related guy solve it, i will check with him and let you know.
Reply With Quote
  (#3 (permalink)) Old
Moderator
 
jwenting's Avatar
 
Posts: 125
Thanks: 0
Thanked 10 Times in 10 Posts
Join Date: Feb 2008
Send a message via MSN to jwenting
Default 01-12-2010, 12:50 AM

You can't debug oc4j itself (obviously).
What you can do is debug your own application running inside it, IF compiled with debug information (which is the default for most IDEs).
Reply With Quote
  (#4 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2010
Default Debugging oc4j in eclipse no source FIXED - 01-12-2010, 02:01 AM

Hi All,

Thanks for the reply. I've got it working.

What I did is the following:
Create a new oc4j server configuration in eclipse
In tab sources add the project you want to debug
Add the ear to the server configuration
Start the server in eclipse in debug mode
Set a break piont in your application
Trigger the break point using a remote application for example a jsp page.

I have added a couple of screenshots of the oc4j configuration for clearification.

In my next post you can find more configuration screenshots.

Regards,

Josip
Attached Images
File Type: jpg new server config.jpg (92.8 KB, 19 views)
File Type: jpg project added to server.jpg (90.6 KB, 14 views)
File Type: jpg launch config properties tab common.jpg (98.3 KB, 15 views)
File Type: jpg launch config properties tab JRE.jpg (94.9 KB, 13 views)
File Type: jpg launch config properties tab enviroment.jpg (97.0 KB, 13 views)
Reply With Quote
  (#5 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2010
Default 01-12-2010, 02:04 AM

more configuration screenshots
Reply With Quote
Reply

Tags
debug, eclipse, oc4j, source

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging in eclipse - source not found? maxmal Eclipse 6 02-03-2012 05:22 AM
Eclipse Galileo and Saxon XSLT Debugging dusksdawn Eclipse 2 11-11-2009 01:40 PM
Please suggest a C++ source code analysis tool for debugging memory leak Steve martin C & C++ 5 08-12-2009 01:55 AM
Eclipse source code suma_eclipse Eclipse 3 06-03-2008 04:54 PM
Help on the Eclipse remote debugging issue mzheng Eclipse 0 05-13-2008 04:39 PM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com