My current embedded-glassfish plugin
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>3.1</version>
<configuration>
<app>${basedir}/target/${project.artifactId}-${project.version}.${project.packaging}</app>
<port>8001</port>
<contextRoot>services</contextRoot>
</configuration>
</plugin>
I've started embedded glassfish server with mvn embedded-glassfish:run
and tried to run remote debug on port 8001 unsuccessfully with the following error...
Error running local glassfish debug: Unable to open debugger port (localhost:8001): java.io.IOException "handshake failed - connection prematurally closed"
What do I need to do to enable remote debugging?