users@glassfish.java.net

how to start glassfish server in debug into netbeans 5.5

From: <glassfish_at_javadesktop.org>
Date: Fri, 23 Mar 2007 02:29:30 PST

Hi,

I succes in instaaling glassfish sources, compiling and running it from scrach. I also succes to run it in debug into netbeans 5.5. But i still got trouble to anderstand which module do i need to start to be able to catch the server reqeust on follow the server logic. I find out that there is some problem inserting System.out.println when using the debug mode. I look like that System.out is already use by glasfish in intern for socket purpose (that is what i think ?).
the error in debug mode is :
recursive call into SystemOutandErrhandler
java.lang.RuntimeException: recursivecall
        at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:346)
        at java.io.PrintStream.write(PrintStream.java:414)


One thing i also need to anderstand. Is, how is launched the server. I find that public class ProcessLauncher extends com.sun.enterprise.tools.launcher.ProcessLauncher { can be used for server launch but i do not see where come from the com.sun.enterprise.tools.launcher.ProcessLauncher class.

So i am sondering if there is one way to start the server and bebug the server in debug waitting on the http server reveice().

regards

    hterrolle
[Message sent by forum member 'hterrolle' (hterrolle)]

http://forums.java.net/jive/thread.jspa?messageID=209592