Joined: Mon Nov 02, 2009 3:27 pm Posts: 5
|
Everything was working fine and I was adding some new persistent classes to my domain model when I started gettting:
java.lang.UnsupportedOperationException: The user must supply a JDBC connection
I've tried backing out all my recent changes. Surfing the web I found suggestions that it might have something to do with the persistence.xml. Here's mine - It seems ok to me.
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0"> <persistence-unit name="vingenius"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>us.vingeni.vingenius.client.model.GrowingRegion</class> <class>us.vingeni.vingenius.client.model.VintageRating</class> <class>us.vingeni.vingenius.client.model.Grape</class> <class>us.vingeni.vingenius.client.model.Producer</class> <class>us.vingeni.vingenius.client.model.Wine</class> <properties> <property name="hibernate.connection.websiteUrl" value="jdbc:postgresql:vingenius"/> <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/> <property name="hibernate.connection.username" value="postgres"/> <property name="hibernate.connection.password" value="postgres"/> <property name="hibernate.archive.autodetection" value="class"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate.format_sql" value="true"/> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> <property name="hibernate.hbm2ddl.auto" value="create" /> <!-- <property name="hibernate.search.default.indexBase" value="/Users/ljw1001/IdeaProjects/vingenius3/data/search"/> --> </properties> </persistence-unit> </persistence>
The database is up and performing correctly. I rebooted in case the connection pool was used up. I'm totally at a loss. Any help is greatly appreciated.
I'm using 3.6 with java 1.6 on OSX. My app is plain pojos, no spring or EJBs. I'm using annotations.
Thanks much for any help at all.
|
|