• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Unable to find database

Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

With Maven2, jpa2, hibernate 3.6.5.Final, Mysql 5 and Glassfish 3.1, I am trying to deploy a WAR file, but it comes up with the following error:

Here is my src/WEB-INF/persistence.xml file:

my src/main/webapp/WEB-INF/web.xml file:

I didn't create any datasource in glassfish. And I also don't understand why the deployment trying to find Derby. I actually have define MySQL in persistence.xml file.
Do I need to create datasource to point to mysql/guestbook? then how to use this newly created datasource in my persistence.xml file?

Very appreciate for any suggestion.

Ranch Hand
Posts: 43
Android Hibernate jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you look at line 53

the system is complaining about a named query. please check its syntax.

hibernate parses all named queries while the system is starting up .. this way it can save time when the query is executed (as it doesn't have to parse it every time the query is run).
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic