Java 带datanucleus的Tomcat
是否可以在tomcat应用程序中使用google.appengine.api.datastore.KeyFactory类 我试图在datanucleus tomcat应用程序中使用KeyFactory.createKey。但它抛出了错误。有人能告诉我如何使用它吗?下面是我得到的错误 java.lang.NullPointerException:没有为此线程注册API环境。 com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdDatastoreApiHelper.java:108 com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespaceDatastoreApiHelper.java:118 com.google.appengine.api.datastore.Key.Key.java:104 com.google.appengine.api.datastore.Key.Key.java:92 com.google.appengine.api.datastore.KeyFactory.createKeyFactory.java:72Java 带datanucleus的Tomcat,java,Java,是否可以在tomcat应用程序中使用google.appengine.api.datastore.KeyFactory类 我试图在datanucleus tomcat应用程序中使用KeyFactory.createKey。但它抛出了错误。有人能告诉我如何使用它吗?下面是我得到的错误 java.lang.NullPointerException:没有为此线程注册API环境。 com.google.appengine.api.datastore.DatastoreApiHelper.getCurre
com.google.appengine.api.datastore.KeyFactory.createkeyfactory.java:57外部库Tomcat项目的jar文件本身放在您的项目WEB-INF/lib文件夹中@TomJ非常感谢您的帮助。但是我的WEB-INF/libraries中已经有我的jar了。但是仍然会出现上面的错误。您能帮我一下吗有人能帮我解决这个问题吗?