Re: IPlanet serverside debugging?

2003-04-03 Thread rohit . namjoshi
We can't control how it starts, but we still might be able to
connect to the running process.

You should be able to control how iAS starts jvm's e.g. see

http://docs.sun.com/source/816-7149-10/dgdebug.html#25712


Re: IPlanet serverside debugging?

2003-04-03 Thread Jason Rumney
[EMAIL PROTECTED] writes:

 We can't control how it starts, but we still might be able to
 connect to the running process.
 
 You should be able to control how iAS starts jvm's e.g. see
 
 http://docs.sun.com/source/816-7149-10/dgdebug.html#25712

Unfortunately those docs are for Sun ONE app server 7, which is a
complete rewrite based on Tomcat, and bears little resemblance to iAS 6.

Last I checked, Sun had purged their webserver of references to old
iPlanet documentation, or at least made it hard to find.




Re: IPlanet serverside debugging?

2003-04-02 Thread Galen Boyer
On Wed, 02 Apr 2003, [EMAIL PROTECTED] wrote:
 On JBoss you only have to start it using a debud flag. I've
 used jdee to do remote debugging on JBoss successfully.

IPlanet is not a java only app server.  I think this throws a
wrench into the mix.  I was wondering if there was anybody who
had successfully accomplished this with the JDEE.  I'm not sure
if it is doable.

-- 
Galen Boyer



Re: IPlanet serverside debugging?

2003-04-02 Thread Jason Rumney
Galen Boyer [EMAIL PROTECTED] writes:

 Is this doable within the jdee?

Which iPlanet? App Server and Web Server are completely different
products. I think iAS uses a standard JVM, in which case using
the remote debugging options would work. But I think iWS uses its own
JVM (from the Kiva days) and implements part of the Servlet API as
native code, so it might be more difficult.

If you are trying to debug something general in your servlet, running
it under Tomcat (or JBoss if you need more than just servlets/JSPs)
is probably easiest. If you are trying to debug something specific to
iPlanet, and can't run under a debugger, System.out.print() is your
friend.





Re: IPlanet serverside debugging?

2003-04-02 Thread Galen Boyer
On 02 Apr 2003, [EMAIL PROTECTED] wrote:
 Galen Boyer [EMAIL PROTECTED] writes:
 
 Is this doable within the jdee?
 
 Which iPlanet? App Server and Web Server are completely
 different products. I think iAS uses a standard JVM, in which
 case using the remote debugging options would work. 

Okay.  I'll look around and see how to connect the JDEE up to an
app server.  The information needed might be similar, or at least
send me down a particular path.

 But I think iWS uses its own JVM (from the Kiva days) and
 implements part of the Servlet API as native code, so it might
 be more difficult.

The servlets as well as EJBs are executed within iAS.

 If you are trying to debug something general in your servlet,
 running it under Tomcat (or JBoss if you need more than just
 servlets/JSPs) is probably easiest. If you are trying to debug
 something specific to iPlanet, and can't run under a debugger,
 System.out.print() is your friend.

We can't control how it starts, but we still might be able to
connect to the running process.  Our problem is we don't know how
to get our the JDEE into those hooks.  What parameters and such
does it expect...

-- 
Galen Boyer



Re: IPlanet serverside debugging?

2003-04-02 Thread Jason Rumney
Paul Kinnucan [EMAIL PROTECTED] writes:

 If you are trying to debug a program running in a vm embedded in
 another application, the container application must provide some means
 for you to tell it to start the embedded vm in debug server or client
 mode.

Often there is somewhere to specify command-line options to Java in
shell scripts/batch files that start the app server, or occasionally
in the config interface.