users@glassfish.java.net

Re: IntelliJ 6: What are the steps to create a debugging session with SJSAS PE 9.0_01 (build b14)?

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Wed, 31 Jan 2007 13:56:15 +0530

I don't know the exact steps as I am no Intellij user, but can you try
the following?
1. start the domain as you did using asadmin start-domain --debug... option.
2. configure the IDE to *attach* to port *9009* using *socket* transport.
3. Now start the debug session.

Sahoo
Todd Patrick wrote:
> Microsoft Windows XP [Version 5.1.2600]
> IntelliJ 6.04
> Sun Java System Application Server Platform Edition 9.0_01 (build b14)
>
> (I am loosing my hair over this.)
>
> I can start SJSAS PE 9.0_01 (build b14) in the CLI just fine with:
>
> C:\Sun\AppServer\bin>asadmin start-domain --debug=true domain1
>
> And then receive this output:
>
> Starting Domain domain1, please wait.
> Log redirected to C:\Sun\AppServer\domains\domain1\logs\server.log.
> Domain domain1 is ready to receive client requests. Additional services
> are being started in background.
> Domain [domain1] is running [Sun Java System Application Server Platform
> Edition 9.0_01 (build b14)] with its configuration and logs at:
> [C:\Sun\AppServer\domains].
> Admin Console is available at [http://localhost:4848].
> Use the same port [4848] for "asadmin" commands.
> User web applications are available at these URLs:
> [http://localhost:8080 https://localhost:8181 ].
> Following web-contexts are available:
> [/web1 /asadmin amserver /petroadmin ].
> Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
> [service:jmx:rmi:///jndi/rmi://eng-tpatrick:8686/jmxrmi] for domain
> management purposes.
> Domain listens on at least following ports for connections:
> [8080 8181 4848 3700 3820 3920 8686 ].
> Domain is started in debug mode.
> A debugger can be attached using:
> [-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009].
>
>
> When I click on the Debug icon inside IntelliJ, I get this message:
>
> "Address localhost:4848 is already in use."
>
>
> o.k. I understand that.
>
> If SJSAS PE 9.0_01 (build b14) is not started by the CLI, I get this
> message when I click on the Debug icon inside IntelliJ:
>
> "Failed to establish connection to the target VM, address:
> '127.0.0.1:9009', transport: 'socket'"
>
> I've asked this already on the IntelliJ forums and googled on this topic
> as well with no luck. What are the steps to create a debugging session
> with SJSAS PE 9.0_01 (build b14) from IntelliJ?
>
> Thanks,
>
> --Todd
>
> -----------------------------------------
> NOTICE: This email message is for the sole use of the intended
> recipient(s)
> and may contain confidential and privileged information. Any
> unauthorized
> use, disclosure or distribution is prohibited. If you are not the
> intended
> recipient, please contact the sender by reply email and destroy all
> copies
> of the original message.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>