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 - Cannot run application client project with GlassFish 4
Summary: Cannot run application client project with GlassFish 4
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
: 229718 (view as bug list)
Depends on:
Blocks: 229577
  Show dependency tree
 
Reported: 2013-05-14 12:29 UTC by Jiri Skrivanek
Modified: 2013-05-24 07:52 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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