If you're running JBuilder Foundation (which doesn't support remote
debugging) here's how I've set it up. When I run jBoss, I only include
jboss/bin/run.jar and jboss/conf in the JBuilder "required library".
Make sure you specify the source for that required library to point to
the jBoss sources. Then start jBoss in the debugger. During
initialization, jBoss adds the rest of its jar files to the runtime
classpath. Once this has completed, click on JBuilder's add to project
button, and the rest of jBoss' packages will now be visible. Select the
org.jboss package to add to the project. Once you do this, you will be
able to debug into all of the jboss code.
This is a bit of a pain, caused by jBoss dynamically determining its
classpath from its lib and lib/ext directory contents, and from the
ClassPathExtension entries in jboss.conf, but seems to be the price paid
for this flexibility. If you discover a way around these extra steps,
please post it.
Hope this helps,
Rick Horowitz
"Brett G. Palmer" wrote:
>
> Hi All,
>
> I'm trying to debug some code with the JBoss server. I was able to build
> JBoss in JBuilder all right, but I'm having trouble getting the run time
> environment to work within JBuilder. The "How-To" on the JBoss web site was
> helpful for setting up JBuilder to debug EJBs, but I need to debug some of
> my code in JBoss itself. When I start the server some of the typical errors
> I am seeing are the following:
>
> 1. [Default] Unable to identify logging directory!
> [Default] java.lang.NullPointerException
> [Default] at org.jboss.logging.FileLogging.openLogFile(FileLogging.java:1
> ......
>
> 2. [JMX RMI Adaptor] Initialization failed
> [JMX RMI Adaptor] java.rmi.StubNotFoundException: Stub class not found:
> org.jboss.jmx.server.JMXAdaptorImpl_Stub; nested exception is:
> [JMX RMI Adaptor] java.lang.ClassNotFoundException:
> org.jboss.jmx.server.JMXAdaptorImpl_Stub
> [JMX RMI Adaptor] java.lang.ClassNotFoundException:
> org.jboss.jmx.server.JMXAdaptorImpl_Stub
> .....
>
> 3. [J2ee deployer] no config file found...
> [J2ee deployer] Initialized
> java.lang.ClassCastException: sun.misc.Launcher$AppClassLoader
> at
> org.jboss.util.ClassPathExtension.preRegister(ClassPathExtension.java:47)
> ......
>
> Any help with getting my JBuilder debug environment setup for JBoss would be
> greatly appreciated.
>
> Thanks,
>
> Brett
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]