Hi
I'm trying to use amazon simpleDB with smartfox.
Im running into a strange problem however. As soon as I try to run a querry on my database I get a ClassNotFoundException (see below).
The strange thing is that this is only happening if I execute the querry on the server. If I try it in a normal application everything works fine.
The Class file is definitely in the right folder under \Server\javaExtensions since I'm able to create a UserData object in the server. Just querrying for it does not work.
Im guessing that the simpleDB library is looking for the class in the wrong place but how can I change that?
thx in advance.
INFO | jvm 1 | 2010/09/30 13:21:55 | 13:21:55.983 - [ WARNING ] > Unexpected Exception: javax.persistence.PersistenceException: java.lang.ClassNotFoundException: UserData
INFO | jvm 1 | 2010/09/30 13:21:55 | 30.09.2010 13:21:55 it.gotoandplay.smartfoxserver.controllers.SystemHandler processEvent
INFO | jvm 1 | 2010/09/30 13:21:55 | WARNUNG: Unexpected Exception: javax.persistence.PersistenceException: java.lang.ClassNotFoundException: UserData
INFO | jvm 1 | 2010/09/30 13:21:55 | javax.persistence.PersistenceException: java.lang.ClassNotFoundException: UserData
INFO | jvm 1 | 2010/09/30 13:21:55 | at com.spaceprogram.simplejpa.AnnotationManager.getClass(AnnotationManager.java:116)
INFO | jvm 1 | 2010/09/30 13:21:56 | at com.spaceprogram.simplejpa.EntityManagerSimpleJPA.ensureClassIsEntity(EntityManagerSimpleJPA.java:200)
INFO | jvm 1 | 2010/09/30 13:21:56 | at com.spaceprogram.simplejpa.query.QueryImpl.init(QueryImpl.java:94)
INFO | jvm 1 | 2010/09/30 13:21:56 | at com.spaceprogram.simplejpa.query.QueryImpl.<init>(QueryImpl.java:73)
INFO | jvm 1 | 2010/09/30 13:21:56 | at com.spaceprogram.simplejpa.EntityManagerSimpleJPA.createQuery(EntityManagerSimpleJPA.java:541)
INFO | jvm 1 | 2010/09/30 13:21:56 | at secureLogin.SecureLogin.handleInternalEvent(SecureLogin.java:157)
INFO | jvm 1 | 2010/09/30 13:21:56 | at it.gotoandplay.smartfoxserver.controllers.MessageHandler.dispatchEvent(MessageHandler.java:147)
INFO | jvm 1 | 2010/09/30 13:21:56 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.handleLoginRequest(SystemHandler.java:482)
INFO | jvm 1 | 2010/09/30 13:21:56 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:221)
INFO | jvm 1 | 2010/09/30 13:21:56 | at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:146)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2010/09/30 13:21:56 | Caused by: java.lang.ClassNotFoundException: UserData
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
INFO | jvm 1 | 2010/09/30 13:21:56 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.Class.forName0(Native Method)
INFO | jvm 1 | 2010/09/30 13:21:56 | at java.lang.Class.forName(Class.java:169)
INFO | jvm 1 | 2010/09/30 13:21:56 | at com.spaceprogram.simplejpa.AnnotationManager.getClass(AnnotationManager.java:102)
INFO | jvm 1 | 2010/09/30 13:21:56 | ... 10 more