This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The "asadmin deploy" command includes a "--retrieve <dir>" option that allows you to retrieve a client JAR file that you can then run using the appclient command. This capability does not appear to have been implemented yet for NetBeans 5.5. The Deploy Project menu choice for an application that includes an application client needs to allow the retrieval of the client jar file. Once the client jar has been retrieved, the Run Project target needs to call the appclient command to run the app client. I don't know if it does, because of a second bug that I will file (the run target redeploys the app and the redeploy always fails, so I never get that far).
Stepane, we discussed this some time ago (adding "retrieve" option to nbdeploy task). Here's an issue for it. to reporter - thanks for filing this (anyway this is in progress...)
This enhancement is not that easy to plug in the current API, since the current API is partially based upon the jsr88, which we cannot change.
Well, if you can't add it to deployment, here's another suggestion: add the ability to retrieve the client jar *after* deployment. For the AppServer this would involve running the "asadmin get-client-stubs" command. It could be added to the right-click menu for a deployed app. Would that be possible?
I am a little surprised to see no resolution of this issue in the past few months. We will send the Java EE Tutorial with NetBeans instructions to the publisher in a couple of weeks. Many of the examples in this book require the retrieval and running of a client JAR file. Since this issue has not been fixed, we will have to include both Ant and NetBeans instructions to deploy each of these applications, but will then have to give them the Ant target to retrieve the client JAR and then say, "NetBeans provides no facility for retrieving a client JAR file."
According to the reporter, this is resolved, so marking as FIXED.