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.

Bug 229720

Summary: Cannot run application client project with GlassFish 4
Product: serverplugins Reporter: Jiri Skrivanek <jskrivanek>
Component: GlassFishAssignee: TomasKraus
Status: VERIFIED FIXED    
Severity: normal CC: dkonecny, mjanicek, mmirilovic, pjiricka
Priority: P1    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 229577    

Description Jiri Skrivanek 2013-05-14 12:29:54 UTC
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)
Comment 1 David Konecny 2013-05-14 23:27:03 UTC
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.
Comment 2 TomasKraus 2013-05-15 14:38:25 UTC
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
Comment 3 Quality Engineering 2013-05-16 02:29:20 UTC
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
Comment 4 Jiri Skrivanek 2013-05-16 07:21:02 UTC
Verified in NetBeans IDE Dev (Build 201305152300).
Comment 5 Martin Janicek 2013-05-16 07:39:32 UTC
*** Bug 229718 has been marked as a duplicate of this bug. ***
Comment 6 piotrik 2013-05-20 09:42:22 UTC
I did review of the changes. It looks ok.
Comment 7 TomasKraus 2013-05-23 13:05:29 UTC
Pushed into release73 branch
----------------------------
changeset:   252314:46d41c6738bc
branch:      release73
summary:     #229720 - Fixed application client container configuration
             file name for GlassFish 4
Comment 8 Quality Engineering 2013-05-24 00:12:04 UTC
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