【问题标题】:gwt google appengine with hibernategwt 谷歌应用引擎与休眠
【发布时间】:2011-09-18 14:22:45
【问题描述】:

我的 GWT 项目是使用谷歌应用引擎设置的。现在我想在 Google 应用引擎中运行休眠代码。

我添加了包含所有具有休眠实现的业务逻辑的业务逻辑 jar 文件。我放置了我的 businesslogic jar 文件 WEB-INF\lib 文件夹并添加到类路径中。运行应用程序后,当我单击登录按钮时,它应该验证用户名和密码。此用户验证已通过 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

【问题讨论】:

    标签: google-app-engine gwt datanucleus


    【解决方案1】:

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

    【讨论】:

    • 好的。谢谢。所以我会放弃尝试使用 GAE 进行休眠
    • 有什么方法可以执行我在休眠中已经存在的代码。那是单独的jar文件。我只需要访问这些文件。如果我可以将这些服务公开为 web 服务,我可以让它运行我的代码吗?
    • 这不再正确——official example for App Engine + Hibernate 于 2013 年发布。
    猜你喜欢
    • 2012-10-31
    • 1970-01-01
    • 2011-08-03
    • 2012-01-28
    • 1970-01-01
    • 2013-05-17
    • 2011-05-06
    • 1970-01-01
    相关资源
    最近更新 更多