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 247249 - Eclipselink errors not being reported with bundled GlassFish 4.1
Summary: Eclipselink errors not being reported with bundled GlassFish 4.1
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 247261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-18 06:50 UTC by htlbugfinder
Modified: 2015-05-19 02:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Demoproject with defective entity showing the different error messages (114.81 KB, application/x-gzip)
2014-09-18 06:50 UTC, htlbugfinder
Details
Useful eclipselink error messages printed by GlassFish from the zip file (45.37 KB, text/plain)
2014-09-18 06:51 UTC, htlbugfinder
Details
Not so helpful error message by bundled GlassFish (21.82 KB, text/plain)
2014-09-18 07:51 UTC, htlbugfinder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description htlbugfinder 2014-09-18 06:50:25 UTC
Created attachment 149325 [details]
Demoproject with defective entity showing the different error messages

When an entity bean is missing some annotations, build is successful, but the bundled GlassFish prints errors about missing resources. Using the same GlassFish version from a zip file from the GlassFish download page, the useful eclipselink error messages are shown, which help beginners to fix the mistakes.

Bundled GlassFish should also print the helpful error messages, not only the missing resource errors which are a result of the errors in the entity beans.

Try the attached demoproject (created with Netbeans 8.0.1 on Linux) with bundled GlassFish and with a GlassFish from a zip file and see the different error messages.
Comment 1 htlbugfinder 2014-09-18 06:51:08 UTC
Created attachment 149326 [details]
Useful eclipselink error messages printed by GlassFish from the zip file
Comment 2 htlbugfinder 2014-09-18 07:51:22 UTC
Created attachment 149329 [details]
Not so helpful error message by bundled GlassFish
Comment 3 htlbugfinder 2014-09-22 19:33:32 UTC
The main problem seems to be that creation of the JavaDB jdbc pool and jdbc connection fails using GlassFish 4.1 installed by Netbeans 8.0.1 installer, but succeeds with an manually imported GlassFish 4.1 extraced from a zip file (from the GlassFish download page). When they are manually created before deployment, the installed GlassFish seems to throw the same error messages as the extraced GlassFish does.

Tried to delete the .netbeans folder from user home, so that a wrong configuration of the installed GlassFish should be cleared, but it didn't fix the problem.

I also tried to replace the GlassFish 4.1-files installed by the Netbeans 8.0.1 installer with those from the zip file (because diff -r told me about differences in the binary .jar-files), but that didn't help either.

It might have something to do with the different configuration files (the installed GlassFish uses some configuration files automatically created by Netbeans in the user's Netbeans config directory, while the extracted GlassFish seems uses the configuration files bundled with GlassFish (at least Netbeans shows different config paths in the server configuration)).

Unfortunately diff -r isn't very helpful for comparing the configuration folders, because the configuration files seem to differ in the order of attributes of the xml elements.
Comment 4 Petr Hejl 2015-04-27 16:44:17 UTC
Trying to find out the problem.
Comment 5 Petr Hejl 2015-05-18 15:20:09 UTC
This was the problem with a way preinstalled GF has been registered. Should be fixed in web-main 80bcebf0f382.
Comment 6 Petr Hejl 2015-05-18 15:21:35 UTC
*** Bug 247261 has been marked as a duplicate of this bug. ***
Comment 7 Quality Engineering 2015-05-19 02:41:28 UTC
Integrated into 'main-silver', will be available in build *201505190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/80bcebf0f382
User: Petr Hejl <phejl@netbeans.org>
Log: #247249 - Eclipselink errors not being reported with bundled GlassFish 4.1