This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • 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
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
  • 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).
 
    Bookmark Topic Watch Topic
  • New Topic