I\'m trying to develop an EJB application using Netbeans 8 on a Postgres 9.2 db and Glassfish 4 server.
Once I created connection pool and JDBC resources in the glas
I faced the same problem, so:
First of all, it's not Jboss or Glassfish problem. it's Netbeans or Eclipse.
Second to resolve that, do the below:
For me the issue was that I had added a new JDBC driver JAR file to Glassfish, but I hadn't added it to NetBeans.
The first step is to copy your JAR file to NetBean's EXT folder. For me, that folder is: "C:\Program Files\NetBeans 8.0.1\ide\modules\ext"
Next, we need to add the JDBC driver as described below:
When I attempted to create an "Entity class from database", I still ran into issues when I selected my connection. After trying various things what worked for me was to:
Good luck!
Steps in Netbeans:
Go To-->Service Tab-->Right Click on Drivers-->New Driver--> Add your driver jar file here
Netbeans automatically populates details of driver from JAR file.Check Driver Class value, this value we will use in Glassfish server connection pool.
Steps in Glassfish:
Go to Glassfish Admin panel
In your JDBC Connection pool add property driverClass and paste the value of Driver Class registered with Netbeans Drivers tab in previous step.
In the connection pool properties, In the URL property don't forget "localhost"
Apologies for being straightforward, but I believe that on this specific situation, you are all wrong. What should be done is:
Add the following properties by clicking every time on the button Add Property (After selecting the pool name and editing it):
Set up your JDBC Resources [jdbc/your_pool_name]
Save everything (The button usually is on the upper-right corner of your Internet browser) Don't forget that the JDBC Resources is always connected to a connection pool. So ensure that it is the case for you. They, JDBC Connection Pools and JDBC Resources, are usually located under JDBC in the left pane menu of your server administration panel. Go back to whatever you were doing, and try again. Please also note that this works for MySQL Database Management Systems. You might need to change the driver class as well as the URL if using another DBMS. You may find additional information on YouTube [http://www.youtube.com/].
I believe this is the answer.
I resolved this issue like this: