dev@glassfish.java.net

how to debug ACC code

From: Dies Koper <diesk_at_fast.au.fujitsu.com>
Date: Thu, 11 Feb 2010 12:20:11 +1100

Hi Tim,

I'm trying to run an EJB client in last week's V3.1 nightly.
This application worked in GFv2.1 but now I get the following error:

C:\sun\glassfishv3\bin>C:/sun/glassfishv3/glassfish/bin/appclient.bat
-client D:/1944/ConnectionPoolValClient.jar returnSetSizeOne
java.lang.IllegalArgumentException: URI scheme is not "file"
        at java.io.File.<init>(File.java:366)
        at
org.glassfish.appclient.client.acc.FacadeLaunchable.selectFacadeFromGroup(FacadeLaunchable.java:345)
        at
org.glassfish.appclient.client.acc.FacadeLaunchable.newFacade(FacadeLaunchable.java:233)
        at
org.glassfish.appclient.client.acc.Launchable$LaunchableUtil.newLaunchable(Launchable.java:101)

As the error message doesn't help me to determine what's wrong I'm
trying to debug it. I've tried setting VMARGS, but the VM won't halt.

set VMARGS=-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=12345

What's the trick with GFv3's ACC script to debug it remotely?

Thanks,
Dies