ok I re-deployed everything, I fixed the application-web.xml with this line:
<system-properties>
<property name="os.arch" value="x86" />
</system-properties>
.. but now I have a new error:
Nested in java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:355)
at java.security.AccessController.checkPermission(AccessController.java:567)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:56)
at com.google.apphosting.runtime.security.CustomSecurityManager.checkAccess(CustomSecurityManager.java:131)
at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
at java.lang.Thread.init(Thread.java:353)
at java.lang.Thread.<init>(Thread.java:437)
at com.orientechnologies.orient.core.OrientShutdownHook.<init>(OrientShutdownHook.java:19)
at com.orientechnologies.orient.core.Orient.<clinit>(Orient.java:66)
at com.orientechnologies.orient.core.db.raw.ODatabaseRaw.open(ODatabaseRaw.java:87)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.open(ODatabaseRecordAbstract.java:108)
at com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.open(ODatabaseWrapperAbstract.java:47)
at com.orientechnologies.orient.core.db.graph.OGraphDatabase.open(OGraphDatabase.java:78)
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:370)
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:64)
at com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:68)
(my code) at this line Graph graph = new OrientGraph("remote:dashboard.nuvolabase.com:2424/db/free/morsi/"+name, user, pass);
I looked through the source code and the problems seems to be here (Orient.java line 66):
protected static final OrientShutdownHook shutdownHook = new OrientShutdownHook();
.. because the class "OrientShutdownHook" extends a Thread
public class OrientShutdownHook extends Thread { ..
.. and Google App Engine doesn't allow to do this:
https://developers.google.com/appengine/docs/java/runtime#The_Sandbox.. but it allows to implements runnable.
If you don't have time I would like to help a bit in fixing this issue; which is the best way I can help you?
I created a github project to test the possible fix here:
https://github.com/micheleorsi/orient-gae.. but I don't yet pushed the code (downloaded from
http://orient.googlecode.com/svn/) because I don't want to create problems to your copyright!
I hope I can help in some ways, I really need to have it up&running on GAE! Because I want to use it for our project:
http://www.map2app.com/.. that is completely hosted on Google App Engine!
Thanks
Michele