[appengine-java] Re: Install has encountered a problem in Eclipse.
I saw the same error when installing the Android plugin and was able to fix it by installing Sun's SDK instead of openjdk. On Aug 17, 11:44 am, tiger smae...@gmail.com wrote: I have get the following error when I was trying to install the Google App Engine 1.2.2 Plungins for Eclipse 3.5 GoogleAppEnginehttp://dl.google.com/eclipse/plugin/3.5 === An error occurred during the org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust phase. session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.CheckTrust, operand=, action=). Cannot connect to keystore. Uninitialized keystore === does anyone know about it ? or any resolved issue ? Thanks tiger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Redirect back to non-SSL
Use a filter to achieve this functionality. On Sep 13, 6:40 am, WY wai...@gmail.com wrote: Hi all, I managed to configure my web.xml file to redirect all pages ending with *.dos to be handled by ssl with the following: security-constraint web-resource-collection url-pattern/*.dos/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint However, I would like it to redirect back to non ssl (http) for all pages ending with *.do. I tried to define another security constraint with the following: security-constraint web-resource-collection url-pattern/*.do/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint However, after it successfully goes to https, subsequent pages which end in *.do doesn't get redirected back to http. I know that in python, the way to do this is by using secure: never. Is there an equivalent for the web.xml file? Thanks for any help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: One-to-many relationships and saving
Dear Max, I read the doc, but it seems to me that it describes 1-N relationships, but there is a talk about 0-N relationships. I have the same trouble and here is an example: class BugReport { Key id; ListComment commentList; } class Comment { Key id; } So in this case I need 0-N relationship because when BugReport is submitted, there are no comments yet. But if I try to get list of BugReports or save second BugReort I'v got an exception: com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found. at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:35) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall (DatastoreApiHelper.java:56) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:342) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.access$100(DatastoreServiceImpl.java:269) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:303) at org.datanucleus.store.appengine.DatastoreElementContainerStoreSpecialization.getChildren (DatastoreElementContainerStoreSpecialization.java:99) at org.datanucleus.store.appengine.DatastoreFKListStore.listIterator (DatastoreFKListStore.java:47) at org.datanucleus.store.mapped.scostore.AbstractListStore.listIterator (AbstractListStore.java:84) at org.datanucleus.store.mapped.scostore.AbstractListStore.iterator (AbstractListStore.java:74) at org.datanucleus.sco.backed.List.loadFromStore(List.java:241) at org.datanucleus.sco.backed.List.toArray(List.java:591) at org.datanucleus.store.mapped.mapping.CollectionMapping.postInsert (CollectionMapping.java:106) at org.datanucleus.store.appengine.DatastoreRelationFieldManager.runPostInsertMappingCallbacks (DatastoreRelationFieldManager.java:225) at org.datanucleus.store.appengine.DatastoreRelationFieldManager.access $300(DatastoreRelationFieldManager.java:49) at org.datanucleus.store.appengine.DatastoreRelationFieldManager $1.apply(DatastoreRelationFieldManager.java:112) at org.datanucleus.store.appengine.DatastoreRelationFieldManager.storeRelations (DatastoreRelationFieldManager.java:80) at org.datanucleus.store.appengine.DatastoreFieldManager.storeRelations (DatastoreFieldManager.java:804) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject (DatastorePersistenceHandler.java:231) at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent (JDOStateManagerImpl.java:3185) at org.datanucleus.state.JDOStateManagerImpl.makePersistent (JDOStateManagerImpl.java:3161) at org.datanucleus.ObjectManagerImpl.persistObjectInternal (ObjectManagerImpl.java:1298) at org.datanucleus.ObjectManagerImpl.persistObject (ObjectManagerImpl.java:1175) at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent (JDOPersistenceManager.java:669) at org.datanucleus.jdo.JDOPersistenceManager.makePersistent (JDOPersistenceManager.java:694) Is there a walk-around which can allow me to use 0-N relationships? Thank you, Anton Ananich On Aug 15, 6:11 am, Max Ross maxr+appeng...@google.com wrote: You may find this page helpful:http://www.datanucleus.org/products/accessplatform_1_1/jdo/orm/one_to... The key point is that you need to set both sides of a bidirectional relationship. Also, if you're accessing members directly (as in the below example) you need to annotate the class performing this access with @PersistenceAware. Otherwise JDO can't see that you're modifying the fields and doesn't know it needs to perform any updates. However, it's much easier to just always access members via setters and getters. Hope this helps, Max On Fri, Aug 14, 2009 at 4:31 PM, Dobromir dmont...@gmail.com wrote: Here's another test that fails and which gets to the heart of my problem: how do I add a Child to a Parent that's already been saved? �...@test // FAILS - help! public void saveParentThenAddChild() throws Throwable { Child child = new Child(); Parent parent = new Parent(); savePojo(parent); assertNotNull(parent.key); parent.children = Lists.newArrayList(child); savePojo(parent); assertNotNull(parent.key); assertNotNull(child.key); // THIS FAILS } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en
[appengine-java] Re: One-to-many relationships and saving
I read the doc, but it seems to me that it describes 1-N relationships, but there is a talk about 0-N relationships. They are the same thing, clearly. 0-N is simply that it accepts a null, so I don't see any difference. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Google AppEngine app deploy error: Unable to upload app: Unknown
The error in the log with that message in 1.2.5 is: Unable to upload: java.lang.NullPointerException at java.net.URLEncoder.encode(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.buildQuery (ServerConnection.java:191) at com.google.appengine.tools.admin.ServerConnection.getAuthToken (ServerConnection.java:250) at com.google.appengine.tools.admin.ServerConnection.authenticate (ServerConnection.java:218) at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:145) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:429) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:243) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:53) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:504) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:129) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:57) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:53) com.google.appengine.tools.admin.AdminException: Unable to upload app: null at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:59) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute (AppCfg.java:504) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:129) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:57) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:53) Caused by: java.lang.NullPointerException at java.net.URLEncoder.encode(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.buildQuery (ServerConnection.java:191) at com.google.appengine.tools.admin.ServerConnection.getAuthToken (ServerConnection.java:250) at com.google.appengine.tools.admin.ServerConnection.authenticate (ServerConnection.java:218) at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:145) at com.google.appengine.tools.admin.ServerConnection.post (ServerConnection.java:81) at com.google.appengine.tools.admin.AppVersionUpload.send (AppVersionUpload.java:429) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction (AppVersionUpload.java:243) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:98) at com.google.appengine.tools.admin.AppAdminImpl.update (AppAdminImpl.java:53) ... 4 more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Pointing Domains
Hello, i would like to know if is it possible in some way to add a dns server in the google app engine ? allowing multiple domains refereing to specifc urls inside my account exmple: (without using the versions because these are not versions of the application) www.myapp1.com/p1 pointing to (internal) showPage?pageId=p1 www.myapp2.com/index.html pointing to (internal) showPage?pageId=index.html .. this can be done on any host when using a dns server and refering to a specific directory/file. any one has any idea of how to do this here ? or any work around? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Redirect back to non-SSL
I don't suppose google offers a filter to accomplish a similar functionality? If not, there must be an easier solution to this problem, right? I suppose many others have written web apps not using Google accounts for authentication? If so, how do you configure your app to a secure login and then redirect back to a non ssl after login is complete? I feel like I'm missing a basic thing here that everyone else is doing...*scratches head*. Thanks again for any help! On Sep 12, 11:43 pm, Peter Ondruska peter.ondru...@gmail.com wrote: Use a filter to achieve this functionality. On Sep 13, 6:40 am, WY wai...@gmail.com wrote: Hi all, I managed to configure my web.xml file to redirect all pages ending with *.dos to be handled by ssl with the following: security-constraint web-resource-collection url-pattern/*.dos/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint However, I would like it to redirect back to non ssl (http) for all pages ending with *.do. I tried to define another security constraint with the following: security-constraint web-resource-collection url-pattern/*.do/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint However, after it successfully goes to https, subsequent pages which end in *.do doesn't get redirected back to http. I know that in python, the way to do this is by using secure: never. Is there an equivalent for the web.xml file? Thanks for any help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: JDO hook called before id is assigned?
More specifically that id isn't set when StoreLifecycleListener.postStore is called On Sep 13, 3:25 pm, bysse erik.byst...@gmail.com wrote: Hi, I'm trying to use Compass on appengine and everything works fine as long as i assign id to my entities manually. If i let appengine assign id to my entities it doesn't work. It seems like the JDO hooks used by Compass is called before an id is set on the entity. Does anyone have any input on this? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
Re: [giannim] [appengine-java] Java Security Error
App Engine does not allow access to JDBC. You must either use the App Engine Datastore or push you JDBC requests to another server using the UrlFetch service (perhaps using SDC). On Sun, Sep 13, 2009 at 2:14 AM, Ravi Mandliya funkyr...@gmail.com wrote: Hello everyone I just uploaded my first application, its running, and seems to be working fine, but there is a problem, I get the following error when onblur() on the textbox is activated, I have applied ajax which fetches the data from Database(IBM DB2). It generates the following error: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.io) Full error code is following: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java: 117) at org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java: 69) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at java.sql.DriverManager.getCallerClass(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.jsp.validate_jsp._jspService(validate_jsp.java: 65) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 806) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet $2.run (PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service (PrivilegedJspServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 806) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java: 514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Thanks in advance Regards -- Gianni Mariani Google, Sydney
[appengine-java] Re: Redirect back to non-SSL
Well, the reason I ask is because this feels like infrastructure code. I think I'm missing something basic here because why is there an easy way to configure which paths should be ssl and not a way to define the reverse without having to write your own code? Again, this functionality is provided in the python configuration without having to write additional code, so I want to make sure that the de-facto standard for defining non ssl paths on the servlet side is to indeed write your own filter code. I know I'm not the only person who has asked this from various google searches, but no one seems to have an answer, so filters may be the way to go. Thanks again, Peter! On Sep 13, 2:44 pm, Peter Ondruska peter.ondru...@gmail.com wrote: Actually I am not aware of any servlet container which provides similar functionality out of the box. Why would you ask for something like this from Google if you can do it yourself? On Sep 13, 7:20 pm, WY wai...@gmail.com wrote: I don't suppose google offers a filter to accomplish a similar functionality? If not, there must be an easier solution to this problem, right? I suppose many others have written web apps not using Google accounts for authentication? If so, how do you configure your app to a secure login and then redirect back to a non ssl after login is complete? I feel like I'm missing a basic thing here that everyone else is doing...*scratches head*. Thanks again for any help! On Sep 12, 11:43 pm, Peter Ondruska peter.ondru...@gmail.com wrote: Use a filter to achieve this functionality. On Sep 13, 6:40 am, WY wai...@gmail.com wrote: Hi all, I managed to configure my web.xml file to redirect all pages ending with *.dos to be handled by ssl with the following: security-constraint web-resource-collection url-pattern/*.dos/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint However, I would like it to redirect back to non ssl (http) for all pages ending with *.do. I tried to define another security constraint with the following: security-constraint web-resource-collection url-pattern/*.do/url-pattern /web-resource-collection user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint However, after it successfully goes to https, subsequent pages which end in *.do doesn't get redirected back to http. I know that in python, the way to do this is by using secure: never. Is there an equivalent for the web.xml file? Thanks for any help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Getting 'Request was aborted after waiting too long to attempt to service your request.' after application idle
I have been doing some profiling on application startup and it seems that there is a large amount of overhead: - it takes about 5 seconds between the time the request is received to where our spring initialization code is invoked - creating an entity manager factory is taking on average 8+ seconds Sometimes these numbers can be much bigger than this, for example we have seen creating entity manager factory as much as 14 seconds. Given that the application needs to its own initialization (which we are trying to minimize), we find that the application initialization becomes very long and when the server is busy and the above number are even higher, the application initialization fails to complete in 30 seconds. Note that this is just the application initialization part and then the actual request has to be processed which will take some amount of time. Given that applications can be started on any given request, it makes things difficult with application startup time and request processing time with the 30 second limit. Len On Sep 8, 10:04 am, lent lentakeu...@gmail.com wrote: Hello, We have an application which uses GWT (using GWT RPC) on the client side. When the application is left idle for a while (~15 minutes) and the application sends a request, we get this reported on the client side: The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. In the log, the following is logged: Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous active request limit. This is almost always due to excessively high latency in your app. Please seehttp://code.google.com/appengine/docs/quotas.htmlfor more details. I believe that our application has been swapped out and and when the request comes in the application is being loaded again as we see some log entries we make when the application (servlet) gets initialized. It does take some time to get the application initialized but the error is reported way before 30 seconds has elapsed. Is there any way to avoid this problem? Len --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Can I avoid Data Nucleus and still use JPA?
I have a JPA application that works fine with Hibernate as the persistence provider. Now, I'm trying to use the gwt with eclipse to develop an AJAX client for it. I do not intend to marshal my persistent objects to the client but to simply have the client communicate with my server via XML. However, my RemoteServiceServlet runs up against Data Nucleus when I tries to use JPA. Apparently things have been already configured to use Data Nucleus as a JDO provider (and I have no knowledge or experience with either one of these). When I started reading the Data Nucleus documentation, I was happy to discover it is a JPA provider in addition to a JDO provider. So, my first thought is it just change the configuration to use it as the JPA provider instead of Hibernate. But I'm still struggling to get things configured properly and am wondering if I can just by-pass Data Nucleus altogether and go back to using Hibernate. I have a Postgresql database with the schema already setup. My persistance.xml file is: ?xml version=1.0 encoding=UTF-8 ? persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; version=1.0 persistence-unit name=huntingMap providerorg.datanucleus.jpa.PersistenceProviderImpl/provider properties property name=datanucleus.ConnectionDriverName value=org.postgresql.Driver/ property name=datanucleus.ConnectionURL value=jdbc:postgresql://localhost:5432/ myapplicationdatabasename/ property name=datanucleus.ConnectionUserName value=myusername/ property name=datanucleus.ConnectionPassword value=myuserpassword/ /properties /persistence-unit /persistence My servlet gets the following exception: 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 at org.datanucleus.store.FederationManager.initialiseStoreManager (FederationManager.java:197) at org.datanucleus.store.FederationManager.init (FederationManager.java:70) at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager (ObjectManagerFactoryImpl.java:153) at org.datanucleus.jdo.JDOPersistenceManagerFactory.freezeConfiguration (JDOPersistenceManagerFactory.java:526) Obviously, Data Nucleus needs more or different configuration than what I have provided but I'm still reading and hacking and failing to figure this out. Any suggestions would be greatly appreciated. Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] GeoPt query (find location that is with-in the radius of a location)
Im new to geopt datatype and my question is how can i query the entities that is with-in 2km distance from a given entity. For example, I have a building name BigBuilding with a geopt X and in my datastore, I already have many buildings with a geopt in its field. How can i determine the buildings that is with-in the 2km radius of BigBuilding. Anyone can provide some tips and suggestions on how to implement this?? Thanks in advance. -mar_novice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?
I've discovered if I changed the datanucleus.ConnectionURL to appengine I was able to get further You mean like the GAE/J documentation defines for you to do? and also the DataNucleus docs http://www.datanucleus.org/products/accessplatform_1_1/appengine/support.html This persistence provider doesn't seem to allow a method such as isAgitated() to be in a entity class even if What method isAgitated ? There is nothing in the JPA spec with such a name. This is nothing to do with the persistence provider DataNucleus is a fully compliant JPA implementation for RDBMS. It is also a JPA implementation for XML, LDAP, OODBMS, GAE/J, HBase, ODF, and more. It has all features of JPA that are to be found in other implementations. Hibernate is an implementation of JPA for RDBMS, and nothing else (hence since you aren't using an RDBMS here I fail to see the way you can apply it to your problem with GAE/J) Please specify which exact JPA behaviour causes headache --Andy (DataNucleus) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?
What method isAgitated ? There is nothing in the JPA spec with such a name. This is nothing to do with the persistence provider DataNucleus defines nothing to prevent some method of that name; you don't define what your error was. The docs for GAE/J define what parts of JPA are supported so would be your first point of reference (as with all new technology). As already mentioned, these are specific for persistence with JPA *to the GAE/J datastore* (BigTable). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---