• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Unable to find database

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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.

Thanks
Sam
 
Ranch Hand
Posts: 43
Android Hibernate jQuery
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
reply
    Bookmark Topic Watch Topic
  • New Topic