I appreciate Dave Smith's write-up on debugging with Orion/Kawa but,
unfortunately, I think I'm missing something and need more info.
Here is what I did:
Created a new project with all of my java files (servlets, EJBs, and
regular Java).
Added Orion.jar to the Kawa classpath.
Set the "class to run" to com.evermind.server.ApplicationServer
Made sure JVMDI was turned off
Added breakpoints, hit F5 and... nothing happens, I don't see orion
starting in Kawa's output pane... I don't see anything.
Next, I open a web browser set to a localhost url that works fine when I
run Orion from DOS and, of course, the page is not found. Because Orion
hasn't started, I'm sure.
Does anybody know what I'm doing wrong (Why Kawa isn't starting Orion)?
Below I'll print Dave Smith's debugging tips, if anybody can tell me
anything that is missing I would greatly appreciate it.
Thanks,
Dennis
Dave Smith adds:
"Debugging with Orion and Kawa is a pleasure."
Get Kawa Pro (not the enterprise version) from Tek-Tools and install it.
Configure your JDK as required when you first run Kawa. (Note that Kawa
is a
Win32 application, which is one of the reasons I don't use it.)
Create a new project for your servlets or EJBs. Add orion.jar, any
additional jars required by the application, and the deployed class
directory (i.e., c:\applications\myApp\myApp-web\WEB-INF\classes or
c:\applications\myApp\myApp-ejb, or both).
>From the Project/Interpreter menu, set the Java class to run to
com.evermind.server.ApplicationServer and remember to tell it to use
this
class (as this image, given me by Chris Miller, shows). Turn off JVMDI
debugger from the Customize/Options/Advanced Paths form, which is for
performance only and is not vital.
Add the breakpoints to your servlets and/or EJBs. F5 starts debugging,
and
Dave adds to "Relax, sit back and enjoy the ride. The speed kills
NetBeans
dead."
Also from Dave: For a real screamer, use Jikes:
Customize/Options/Advanced Paths/Compiler = D:\jikes\jikes.exe +E
And set Orion to use jikes from $ORION/server.xml.