Tomcat with datanucleus
<p>Is it possible to  use google.appengine.api.datastore.KeyFactory class in tomcat application
I'm trying to use KeyFactory.createKey in datanucleus tomcat application.But it is throwing error.Can anyone tell me how to use it?Below is the error I`m getting</p>

<p>java.lang.NullPointerException: No API environment is registered for this thread.
    com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java:108)
    com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppIdNamespace(DatastoreApiHelper.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.createKey(KeyFactory.java:72)
    com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java:57)</p>
