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.
Summary: | Run application client on Jboss finishes with error | ||
---|---|---|---|
Product: | javaee | Reporter: | Martin Fousek <marfous> |
Component: | App Client | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | rabbiaumair |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Fousek
2011-03-01 12:31:26 UTC
This is no really a problem in jboss plugin. In build script there is target -as-retrieve-option-workaround where client.jar is configured. But this target is executed only when there is a property j2ee.appclient.mainclass.args and no j2ee.clientName property. The case for jboss is there is j2ee.clientName so clinet.jar (used in many places) is not set at all. This worked for me, but I'm not sure about its correctness: <target depends="-as-retrieve-option-workaround-args, -as-retrieve-option-workaround-name" name="-as-retrieve-option-workaround"/> <target if="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround-args" unless="j2ee.clientName"> ... original target code ... </target> <target unless="j2ee.appclient.mainclass.args" name="-as-retrieve-option-workaround-name" if="j2ee.clientName"> <property name="client.jar" value="${dist.dir}/${j2ee.clientName}"/> <sleep seconds="3"/> </target> This is however not enough. There is also java.system.class.loader set to org.glassfish.appclient.client.acc.agent.ACCAgentClassLoader in run-appclient macro. This will obviously lead to CNFE for jboss. When this is commented out the appclient finally runs ok on jboss. AppClient deployment always targeted GlassFish only @David Konecny: I am facing the exact same problem with JBoss 6.0.0 and NetBeans 7. Does this mean I cannot run the application client from NetBeans 7 if the application server is JBoss 6? (In reply to comment #3) > @David Konecny: I am facing the exact same problem with JBoss 6.0.0 and > NetBeans 7. Does this mean I cannot run the application client from NetBeans 7 > if the application server is JBoss 6? Unfortunately your conclusion is correct. AppClient deployment is server specific and it was never implemented for any other server than GF. The cause is in AppClient specification itself - it encourages each server to come up with their own deployment story. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |