[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Debugging JBoss with Eclipse ** Need More Help!! **

Darin Swanson wrote:
Is the JAR etc that contains org.jboss.system.server.ServerImpl on the
source lookup path as specified on the Source tab of your Java application
launch configuration?

Spoke too soon in my last message. I'm still having problems and have tried to configure this several different ways.


I am able to start JBoss in the debugger, pausing it before the first line of code in org.jboss.Main.main(), and am able to set breakpoints in Main and other classes in JBoss' run.jar.

I can also single-step into other classes, and their source files are displayed appropriately, and both local and instance variables are displayed while I single-step. The problem is that I cannot add breakpoints to these classes -- in fact the left-sidebar is missing from the editor window in the Debugger Perspective for these non run.jar classes. A difference that I see is that the classes for which I can set breakpoints (e.g. Main) are displayed in the editor with the .class extension, whereas classes for which I cannot set breakpoints (e.g. ServerImpl) are displayed in the editor with the .java extension.

I have tried various configurations in the source tab of the launcher.

1. Added all JAR files containing JBoss class files, and each JAR file has a source attachment with all-sources.zip (all JBoss sources).

2. Added all JAR files containing JBoss class files, and only run.jar has all-sources.zip attached.

3. Added only all-sources.zip as an "external JAR" file in the source tab.

This is really starting to chew up time. I would really appreciate some help.

Thanks very much,

Rick

Darins

"Rick Horowitz" <rickhoro@xxxxxxxxxxxxx> wrote in message
news:b29man$272$1@xxxxxxxxxxxxxxxx


My Problem:
============
When I launch the application in the debugger with a breakpoint in
org.jboss.Main.main(), Eclipse displays the source file and I can debug
normally, single-stepping, etc. I can single-step up to the method:
org.jboss.Main.boot(), at the line, "server.init(props)".

When I step into server.init() in the debugger, the source file for
org.jboss.system.server.ServerImpl is not found by the debugger, even
though I can open that file in the Java perspective or the Plugin
Perspective and view/edit the source.

Question:
=========

Why is the org.jboss.system.server.ServerImpl source file not found by
the Eclipse debugger?

Thanks for any help,

Rick