Pascal,

I used J++ to debug under JRun no problems. If you're having problems, why
not just use servlet runner instead?

Anyway, heres some hints...

Geoff


JRun Debugging Setup Procedure
==============================

NOTE: this was written for J++, others may differ...

Installing JRun
---------------
- install JRun (2.3 or 2.2)
- stop (and disable?) the JRun service in the Control Panel | Services
- this prevents the "real" jrun and your "debug" jrun conflicting

Installing JRun stuff into your change directory
------------------------------------------------

- copy the logs,properties and services dirs of the jsm-default dir to the
src directory in your change
- add jrun.jar and servlet.jar to your classpath
- (just jrun.jar under 2.2)
- jrun 2.3 uses jseweb as the JWS service name and jse as the JCP service
name, jrun 2.2 uses jse for both JWS and JCP
- typically you'll want to use the JWS (java web server) rather than JCP
(java connector proxy) through apache for instance
- set your "launch arguments" to
"com.livesoftware.jrun.service.ServiceManager ."
- modify services/<service>/properties/servlets.properties to include your
servlet
- modify services/<service>/properties/jrun.properties rootdir path to point
to the dir above your development dir
- think 2.2 doesn't need this?
- make sure you use tail on the services/<service>/logs event.log and
error.log file! (find a tail.exe somewhere on the web...)

Troubleshooting
---------------
- if you get compilation errors, remove the extra dirs you added from the
J++ project :-)
- if it just dies straight away, check your disabled the JRun service...
- look in taskmanager for java.exe, jview.exe, or jsm.exe
- if it dies with a "Too many JSM instances found." or a license error
- check com.livesoftware.jrun.service.ServiceManager which controls all
this stuff...


-----Original Message-----
From: Pascal Houde <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, 25 August 1999 1:37
Subject: Re: Debugging with Visual J++


>Does any one know about J++ and JRUN. I use similar settings but it ignores
>my breakpoints... It compiles my project and launch JRUN but when I
navigate
>through my application it doesn't stop to my breakpoints.
>
>Thanks,
>Pascal
>
>-----Original Message-----
>From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 24, 1999 2:11 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Debugging with Visual J++
>
>
>Easy, just set the Project Properties | Launch | Custom arguments to
include
>the servlet engine class name.
>
>Eg for 2.0 servlet runner, you use /p /cp:p "<JAVAPACKAGES>"
>sun.servlet.http.HttpServer -d <properties dir>
>
>Then, put a breakpoint in your servlet somewhere, start your program using
>F5 in J++, and as soon as your program hits the breakpoint up it comes in
>J++
>
>Cheers
>
>Geoff
>
>-----Original Message-----
>From: Dervis Cokbilir <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Tuesday, 24 August 1999 15:22
>Subject: Debugging with Visual J++
>
>
>>Hi;
>>
>>I have been using Visual J++ and [Sun's|Apache's] servlet engine. So
>>far, Sun's I have used sun's servletrunner with system.out to print
>>errors on the console, but this is kind of pain. Is there a way of
>>debugging the code from Visual J++ ?
>>
>>Thanks ...
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Bid and sell for free at http://auctions.yahoo.com
>>
>>__________________________________________________________________________
_
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
>>of the message "signoff SERVLET-INTEREST".
>>
>>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>>Resources: http://java.sun.com/products/servlet/external-resources.html
>>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>>
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to