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.
It is not possible to run application client project with GlassFish 4. To reproduce: - register GlassFish 4 - open new project wizard - select "Java EE|Enterprise Application Client" - finish wizard - run project but it fails Warning: D:\Development\builds\NB731\nbUserdir-20130509094245\ApplicationClient1\dist\gfdeploy\ApplicationClient1 does not exist. org.glassfish.appclient.client.acc.UserError: Client Container xml: C:\Users\jskrivanek\GlassFish_Server\glassfish\domains\domain1\config\sun-acc.xml not found or unable to read. You may want to use the -xml option to locate your configuration xml. Product Version: NetBeans IDE 7.3.1 (Build 201305122200) Java: 1.7.0_17; Java HotSpot(TM) 64-Bit Server VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
AppClient project calls project's server via j2eePlatform.getToolProperty(J2eePlatform.TOOL_APP_CLIENT_RUNTIME,J2eePlatform.TOOL_PROP_JVM_OPTS) to update j2ee.appclient.tool.jvmoptions property in private.properties. And GF4 returns a value which has reference to "sun-acc.xml" which should be changed to "glassfish-acc.xml" That seems to fix this particular issue. If there were some other changes in AppClient support in GF4 I do not know.
This seems to be in glassfish.javaee/src/org/netbeans/modules/glassfish/javaee/Hk2JavaEEPlatformImpl.java Looks like some GF 4 change that we did not catch yet. Privided fix will solve this problem in the plugin. But it would be good to have some support in GF Tooling Library in the future. Checked into web-main: ---------------------- changeset: 253074:a1506edbd143 summary: #229720 - Fixed application client container configuration file name for GlassFish 4
Integrated into 'main-golden', will be available in build *201305152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a1506edbd143 User: Tomas Kraus <TomasKraus@netbeans.org> Log: #229720 - Fixed application client container configuration file name for GlassFish 4
Verified in NetBeans IDE Dev (Build 201305152300).
*** Bug 229718 has been marked as a duplicate of this bug. ***
I did review of the changes. It looks ok.
Pushed into release73 branch ---------------------------- changeset: 252314:46d41c6738bc branch: release73 summary: #229720 - Fixed application client container configuration file name for GlassFish 4
Integrated into 'releases', will be available in build *201305232200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/46d41c6738bc User: Tomas Kraus <TomasKraus@netbeans.org> Log: #229720 - Fixed application client container configuration file name for GlassFish 4