[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Debugging JBoss with Eclipse question

Hi Igor,

I checked out the Eclipse/JBoss HowTo page.. thanks for the pointer! I have some questions which perhaps you can answer. Sorry, I know some of these questions more correctly belong to the JBoss group.

1. Do you know if JBoss 4.0 works well enough to use to develop EJBs and run them? If so, do you know if the JBoss 3.0 docs still match the 4.0 release with the exception of new functionality?

2. Does JBoss 3.2 still match the descriptions in the 3.0 docs, with the exception of new functionality?

3. Can you send me your .project/.classpath files for JBoss 3.2? Text attachments would be fine.

4. In what way are the .project/.classpath files "not as nice", as you said in your posting?

5. I'm using Eclipse 2.1m5 and some things work differently from the Eclipse 2.0.1 mentioned in the HowTo. Specifically, the HowTo shows creating the "thirdparty" project and selecting the radio button, "Use Source Folders Contained in Project". This radio button doesn't exist in the 2.1m5 release. Any tips on how to handle that difference?

Thanks very much for your help.

Rick

Igor Fedorenko wrote:
FYI, JBoss 4.0 has .project and .classpath files and a launch configuration
so you can import it into Eclipse workspace and debug as (almost) any other
java project. Check this HOWTO
http://www.jboss.org/developers/guides/eclipse-howto/index.jsp. I also have
a set of .project/.classpath files for JBoss 3.2 but it is not as nice.

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

I am trying to run JBoss in the Eclipse debugger so that I can
single-step through the JBoss code (in addition to client and EJB bean
code).

My Setup:
=========

Eclipse 2.1m4 on Redhat 8.0.

1. I created an Eclipse project called "org.jboss". In this project, I
have added no source files, but have added the following external JARs:

<jboss-install-dir>/bin/run.jar
<jboss-install-dir>/bin/jboss-boot.jar
<jboss-install-dir>/bin/jboss-common.jar
<jboss-install-dir>/bin/jboss-jmx.jar
<jboss-install-dir>/bin/jboss-system.jar

I then created a ZIP file containing all of the sources in JBoss and
attached it to each of the above JAR files.

2. I configured a Java Application Launcher in Eclipse with the
following params:

Project: org.jboss
Main class: org.jboss.Main

Working Directory: <jboss-install-dir>/bin

Classpath: <jboss-install-dir>/bin/run.jar
   Note: I removed the other JBoss JARs from the classpath because
otherwise they interfere with the JBoss classloader architecture.

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.

Hint:
=====

JBoss loads the org.jboss.system.server.ServerImpl class in a new
URLClassLoader, a different classloader than the boot classloader in
which the application is started. Could this be the problem?

Question:
=========

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

Thanks for any help,

Rick