Not able to connect to embedded derby database in glassfish with hibernate?

Oh, right, I overlooked the title. You're trying to connect to an embedded Derby using drivers for a standalone server. The server is not running, hence the error.

This property certainly must be changed: And the driver must be: org.apache.derby.jdbc. EmbeddedDriver Also, implementing the connection pool on embedded does not make sense, since there can be only one connection in this mode.

I did start the server from outside on port 1527. When that server is not running then I get entirely different error saying it could not connect to server. – Omnipresent Nov 25 '11 at 15:10 changing datasource-classname="org.apache.derby.jdbc.

EmbeddedDriver" in domain. Xml and the URL property to jdbc:derby://localhost:1527/chapter2;create=true still fetches same error – Omnipresent Nov 25 '11 at 15:24 Are you able to connect to the database using that connection URL, and using the Derby "ij" tool? – Bryan Pendleton Nov 25 '11 at 19:40.

Permissions can be hard to deal with. The derby was running under /usr/share/javadb/bin and the user running intelliJ was not root and hence did not have write access to that folder. So to resolve the issue I had to give write access to that folder to the user that ran intelliJ.

This way the database was successfully created. I still wish that the error was more informative. Anything related to Permission would have given me this hint much earlier.

1, thanks for follow-up. You got me confused, my answer is not valid for your case; you are not running embedded DB after all. – MaDa Nov 25 '11 at 21:53 Thanks for the help.It gave me more some strength to troubleshoot :) – Omnipresent Nov 25 '11 at 22:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions