Can't connect to Glassfish remotely

I have been running glassfish and IDEA on my Mac with OS X (Leopard) for some time now. I can attach to the glassfish process using the generic Remote debugger profile without problem. But this only lets me debug java code. I can't set breakpoints in JSP code.

I have the keep-generated option on in the glassfish config and glassfish is generating java files and class files and compiling them (I believe) with -g. I have set up glassfish so that it is running with the debugger port options when it starts. Is see the following messages on the console during start-up:

Listening for transport dt_socket at address: 9009
Application server is listening at address 9009 for debugger to attach using transport dt_socket


I would dearly love to be able to set breakpoints in my JSPs. However, when I configure an entry in IDEA for glassfish it won't connect. I get the error:

"Error running Remote Glassfish: Unable to connect to the localhost:8080"

When I set up a "local" Glassfish profile, it runs the application OK, but doesn't stop at any breakpoints.

Any tips on setting up a glassfish debugging project would be much appreciated.

Note that when setting up my IDEA execution profile I haven't creating any Facets for the Glassfish. Since the domain already has these deployed I'm thinking I shouldn't have IDEA do this for me. Not sure what the right way to set this up is...

Edited by: Charlie Evett on Apr 4, 2008 12:39 AM

1 comment
Comment actions Permalink

Hello Charlie,

Please, check "Admin port" value in your deploy configuration settings. I've
got such error when trying to deploy a web app with wrong port.

I have been running glassfish and IDEA on my Mac with OS X (Leopard)
for some time now. I can attach to the glassfish process using the
generic Remote debugger profile without problem. But this only lets me
debug java code. I can't set breakpoints in JSP code.

I have the keep-generated option on in the glassfish config and
glassfish is generating java files and class files and compiling them
(I believe) with -g. I have set up glassfish so that it is running
with the debugger port options when it starts. Is see the following
messages on the console during start-up:

Listening for transport dt_socket at address: 9009 Application server
is listening at address 9009 for debugger to attach using transport
dt_socket

I would dearly love to be able to set breakpoints in my JSPs. However,
when I configure an entry in IDEA for glassfish it won't connect. I
get the error:

"Error running Remote Glassfish: Unable to connect to the
localhost:8080"

When I set up a "local" Glassfish profile, it runs the application OK,
but doesn't stop at any breakpoints.

Any tips on setting up a glassfish debugging project would be much
appreciated.

Alexander.


0

Please sign in to leave a comment.