2

I want to create an entity class from database. My database would be HSQL and i use file to store the data.

I have no problem to config the connection pool to connect to this database @ glassfish The name of the resource which uses the connection pool (HSQL-file) is HSQLJdbcResource:

enter image description here

And no problem to reach this resource from a JSP file, this code works perfectly:

enter image description here

But i do have a problem, when i want to create the entity class from database with the netbeans wizard, because somehow the neatbeans can't find the driver for this :

enter image description here

I have the driver and attached to the project and also i can manage to create the entity class trough std datasource but i want trought glassfish resource, because if dont do the way like this --- the file will be locked because of my JPA which use glassfish resource and connection pool... Vicious Circle, is there any solution for this?

enter image description here

fredt
  • 24,044
  • 3
  • 40
  • 61
czupe
  • 4,740
  • 7
  • 34
  • 52
  • Your pictures are too big. Of original (1344px) is reduced to 640px and therefore no longer legible. I cut the pictures and unnecessary areas left out. – moskito-x Nov 07 '12 at 01:06

1 Answers1

2
  1. Please check to see if the driver path is correct.
  2. Add the hsql driver in your system class path.

Also, this might be helpful: http://hsqldb.org/doc/guide/ch04.html

PCM
  • 873
  • 8
  • 23
  • Hi, driver path is i think correct because netbeans doesn't show "resolve reference problem". And what do you mean adding system class path? I dont think it will solve the problem but i will give it a try;) After i've done, i will let you know about the result! Appreciate your answer. Regards, Czupe – czupe Nov 05 '12 at 10:49
  • The bounty just go away, how can i give you? I still do not find a solution :( but at least you work with this and give some hint. – czupe Nov 11 '12 at 02:37
  • Thanks. I am happy that it helped in any way. You can of course add your own solution if you found it and accept it :) – PCM Nov 14 '12 at 23:48