2011-06-20 91 views
0

我的GWT项目是与谷歌应用程序引擎设置。现在我想在Google应用引擎中运行hibernate代码。gwt谷歌appengine与休眠

我已经添加了businesslogic jar文件,其中包含所有具有hibernate实现的业务逻辑。我放置了我的businesslogic jar文件WEB-INF \ lib文件夹并添加到classpath中。运行应用程序后,当我单击登录按钮时,它应验证用户名和密码。此用户验证已通过hibernate实现,但会引发以下异常。

Caused by: org.datanucleus.exceptions.NucleusUserException: No available StoreManager 
    found for the datastore URL key "jdbc". Please make sure you have all relevant 
    plugins in the CLASSPATH (e.g datanucleus-rdbms?, datanucleus-db4o?), and consider 
    setting the persistence property "datanucleus.storeManagerType" to the type of store 
    you are using e.g rdbms, db4o 

回答

0

AppEngine不是RDBMS!它不运行Hibernate。 DataNucleus OTOH是一个JDO/JPA持久性解决方案,允许持久化到BigTable(GAE/J中的数据存储区)

+0

ok。谢谢。所以我会放弃尝试休眠通过使用GAE – user414967

+0

是否有任何方法来执行我的代码已经存在于休眠。这是独立的jar文件。我必须只需要访问这些文件。如果我可以将这些服务公开为web服务,我可以让它运行我的代码? – user414967

+0

这不再正确 - 2013年发布了一个[App Engine + Hibernate官方示例](https://github.com/GoogleCloudPlatform/appengine-cloudsql-native-mysql-hibernate-jpa-demo-java)。 –