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 267838

Summary: Problem with creating JDBC Resources and Connection Pools on GlassFish Server using NetBeans IDE appropriate wizard.
Product: serverplugins Reporter: ALBODOR
Component: GlassFishAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description ALBODOR 2016-09-02 16:00:45 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens every time

STEPS:
  * Clicking Finish of the wizard "New JDBC Resource".
  * Right click on the web project, and choosing "Deploy".
  * My web project is successfully deployed on my GlassFish server (as indicated by GlassFish Server logs).
  * In the Services window, expanding Servers -> GlassFish Server -> Resources -> JDBC -> JDBC Resources & JDBC -> Connection Pools.

ACTUAL:
  The JDBC Resources and Connection Pools I created via the wizard does not appear, which means they were not executed on the GlassFish Server.
  Even though the file "glassfish-resources.xml" was created and appears in the project files.

EXPECTED:
   The JDBC Resources and Connection Pools I created via the wizard should be executed on the GlassFish server and appears in 
   Servers -> GlassFish Server -> Resources -> JDBC -> JDBC Resources & JDBC -> Connection Pools listings
Comment 1 ALBODOR 2016-09-02 16:00:53 UTC
Created attachment 161881 [details]
IDE log
Comment 2 Zenas 2016-09-26 17:39:04 UTC
This is the best explanation of the issue i am facing. I have been all over looking for this fix. I have been following this tutorial:
https://netbeans.org/kb/docs/web/mysql-webapp.html
and at "Setting up a JDBC data source and connection pool" after step 7. I deploy the project. as the tip suggests.
EXPECTED:
   The JDBC Resources and Connection Pools I created via the wizard should be executed on the GlassFish server and appears in 
   Servers -> GlassFish Server -> Resources -> JDBC -> JDBC Resources & JDBC -> Connection Pools listings.
ACTUAL:
  The JDBC Resources and Connection Pools I created via the wizard does not appear, which means they were not executed on the GlassFish Server.
  Even though the file "glassfish-resources.xml" was created and appears in the project files.
I have refreshed the folders, i have restarted the server, no change my created JDBC resource and connection are not found in the server.
I opened the GlassFish admin console and tried to manually add the JDBC resource and connection pool.
i receive a run time exception error when clicking on the new under JDBC resource.
Hope this helps.