Re: [appengine-java] Re: Mvenizing GAE/GWT project
Thanks Moritz for reply. So shall i create my project using this command or just create normal maven project and then convert it into GAE-GWT project manually by adding all dependecies? mvn archetype:generate -DarchetypeGroupId=net.kindleit -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 -DgroupId=com.myapp.test -DartifactId=testapp I am new to maven, it looks quite easy but sometimes just stuck. I followed the documentation at that link and didnt work, will try again from scratch and then i will post the output. Thanks, Ravi. On Mon, Sep 20, 2010 at 10:30 PM, Moritz wrote: > Maybe the maven-gae-plugin group would be more helpful. But: > > In the dependencies section, you should use variables like "$ > {gae.version}" (without quotes). When defining variables in the > properties section you should use "1.3.7 gae.version>" (without quotes). > > I'd recommend that you use the latest version of the plugin and > install the appengine sdk using "mvn gae:unpack". > > Mo. > > On 20 Sep., 21:05, Ravi Sharma wrote: > > Hi All, > > I am trying to maenize my exisitng GAE-GWT project. So first i started > with > > a sample new project as mentioned here > > > > http://code.google.com/p/maven-gae-plugin/ > > > > I created a project with this command as mentioned on this page > > > > mvn archetype:generate -DarchetypeGroupId=net.kindleit > > -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 > > -DgroupId=com.myapp.test -DartifactId=testapp > > > > And then i imported this project in eclipse(Galileo) > > > > And nothing worked.(I did expected that it will work ) > > Version variables are defined like this $${Gae.version}}, which looks > absurd > > and feel like this plugin is not good enough to start with. > > even after fixing these problems, it didint work at all. > > > > Does any one have any sample example/steps for GAE-GWT project with > maven. > > > > Thanks, > > Ravi. > > -- > 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-j...@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. > > -- 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-j...@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: Mvenizing GAE/GWT project
Yes, maven-gae-plugin has it's own group at http://groups.google.com/group/maven-gae-plugin Check there for solution or post your own question there. On Sep 21, 10:08 am, Ravi Sharma wrote: > Thanks Moritz for reply. > So shall i create my project using this command or just create normal maven > project and then convert it into GAE-GWT project manually by adding all > dependecies? > > mvn archetype:generate -DarchetypeGroupId=net.kindleit > -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 > -DgroupId=com.myapp.test -DartifactId=testapp > > I am new to maven, it looks quite easy but sometimes just stuck. I followed > the documentation at that link and didnt work, will try again from scratch > and then i will post the output. > > Thanks, > Ravi. > > On Mon, Sep 20, 2010 at 10:30 PM, Moritz wrote: > > Maybe the maven-gae-plugin group would be more helpful. But: > > > In the dependencies section, you should use variables like "$ > > {gae.version}" (without quotes). When defining variables in the > > properties section you should use "1.3.7 > gae.version>" (without quotes). > > > I'd recommend that you use the latest version of the plugin and > > install the appengine sdk using "mvn gae:unpack". > > > Mo. > > > On 20 Sep., 21:05, Ravi Sharma wrote: > > > Hi All, > > > I am trying to maenize my exisitng GAE-GWT project. So first i started > > with > > > a sample new project as mentioned here > > > >http://code.google.com/p/maven-gae-plugin/ > > > > I created a project with this command as mentioned on this page > > > > mvn archetype:generate -DarchetypeGroupId=net.kindleit > > > -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 > > > -DgroupId=com.myapp.test -DartifactId=testapp > > > > And then i imported this project in eclipse(Galileo) > > > > And nothing worked.(I did expected that it will work ) > > > Version variables are defined like this $${Gae.version}}, which looks > > absurd > > > and feel like this plugin is not good enough to start with. > > > even after fixing these problems, it didint work at all. > > > > Does any one have any sample example/steps for GAE-GWT project with > > maven. > > > > Thanks, > > > Ravi. > > > -- > > 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-j...@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. -- 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-j...@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: Cache questions
This is completely wrong. The fact that "memcache can expire at any time" has been stated anywhere, repeatedly. The correct behavior with expiry times set is what the original poster wants, i.e. memcache to guarantee expiry after a certain time lapse. http://code.google.com/appengine/docs/java/memcache/overview.html#How_Cached_Data_Expires Regards Lorenzo On Sep 21, 6:58 am, nischalshetty wrote: > As far as cache expiry is considered, its a guarantee that the cache > won't expire before the set expiry date (it might still expire in case > of failures etc). > > Basically, there's no real guarantee that the cache will expire after > the time that you have set. It's just that it won't expire before the > set time. > > -Nischalhttp://justunfollow.com > > On Sep 21, 1:24 am, Navaneeth Krishnan > wrote: > > > I have a couple of questions wrt Memcache. > > > 1. Where do I find the javadoc for jcache ? The document seems > > woefully out-of-date > > > The > > examples:http://code.google.com/appengine/docs/java/memcache/usingjcache.html > > > refer to a package net.sf.jsr107.Cache. However, I find that the > > actual package is net.sf.jsr107cache.Cache. > > > Where do I find the javadoc for net.sf.jsr107cache.Cache ? > > > 2. In my application, I create a cache with the following property: > > > props.put(GCacheFactory.EXPIRATION_DELTA,3600); > > > Yet, I find that my cache does not expire after an hour. As a matter > > of fact, it does not seem to expire at all ! Objects put in the cache > > stay forever. Is there something I am missing ? > > > Regards, > > Navaneeth -- 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-j...@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] "gae.encoded-pk" not working on MySQL
Hi all, I'm experiencing some problems using "gae.encoded-pk" on MySQL. Reading the documentation (http://code.google.com/intl/en/appengine/ docs/java/datastore/creatinggettinganddeletingdata.html) I found that: "Encoded string keys allow you to write your application in a portable manner..." but I can't find any information on how to achieve this. Consider this sample code from the docs: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") private String encodedKey; This will work on appengine, but if used on an alternative stack of DataNucleus + MySQL, then it won't work (the automatic schema tool ignored the extension, and attempts to create a varchar column with an AUTO_INCREMENT attribute, which makes no sense). Does anybody know how to achieve the desired behaviour? Many thanks in advance!! -- 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-j...@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] File myTempFile = new File("path to temp file")????????
Hi everyone, new to the group, didn't find another thread but I'm sure this is a basic question. I need the servlet to accept a file via multi-part form post and create a file instance. I don't need to worry about persistence, storing to memcache or the datastore. Are we not able to simply create a file instance referring to the temp file location? I File myTempFile = new File("path to temp file"); I've read that gae doesn't support writing to the file system, also read up on the blobstore, and memcache. Writing to the blobstore seems like a solution but a bit overkill I think. I basically just need to create a file object and pass that on as a parameter so again, don't need persistence. Thanks! ea -- 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-j...@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] org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory not Serializable
Hi all, I'm trying to convert an existing JPA application to run on App Engine, but when I try to run the application, I got the following exception: java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 387) (...) Caused by: java.io.NotSerializableException: org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1173) The application runs in maven2, so I don't know if this may be a problem caused by old lib versions. The declared dependecies are: com.google.appengine.orm datanucleus-appengine 1.0.5 runtime org.datanucleus datanucleus-jpa 1.1.5 runtime The datastore classes were not supposed to be compatible with the App Engine runtime restrictions? Any tips about how to solve this problem? Thanks in advance, Joaquim Oliveira -- 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-j...@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] Server Error, when i click on the app;lication
Error: Server Error 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. -- 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-j...@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: Stats are 0ms in AppStats
I'm also looking for an answer to this question. I get the RPC stackframe, and realtime reported, but cpu and api time are always 0. Anyone know what this could be? -- 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-j...@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: [appengine-java] org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory not Serializable
Serialization is ok with GAE, as long as you respect the following : 1. Classes intended to be serialized must implement the "Serializable" interface 2. Your JPA annotations for the serialized entity property must be set to 'serializable'. Don't know how it works for JPA, but here is how it looks like for a JDO implementation : Class Sarkozy implements Serializable { ... } @PersistenceCapable Class Bruni { @Persistent(serialized = "true") private Sarkozy smallGuy; } On 20/09/10 18:46, "Joaquim Oliveira" wrote: > Hi all, > > I'm trying to convert an existing JPA application to run on App > Engine, but when I try to run the application, I got the following > exception: > > java.lang.RuntimeException: java.io.NotSerializableException: > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory > at > com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.ja > va: > 387) > (...) > > Caused by: java.io.NotSerializableException: > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: > 1173) > > The application runs in maven2, so I don't know if this may be a > problem caused by old lib versions. The declared dependecies are: > >com.google.appengine.orm >datanucleus-appengine >1.0.5 >runtime > > > >org.datanucleus >datanucleus-jpa >1.1.5 >runtime > > > > > The datastore classes were not supposed to be compatible with the App > Engine runtime restrictions? > > Any tips about how to solve this problem? > > Thanks in advance, > > Joaquim Oliveira -- 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-j...@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: [appengine-java] org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory not Serializable
Hi Cyrille, Thanks for your response. Please see my answers below: On Tue, Sep 21, 2010 at 11:04 AM, Cyrille Vincey wrote: > Serialization is ok with GAE, as long as you respect the following : > 1. Classes intended to be serialized must implement the "Serializable" > interface > My entity implements the Serializable interface. What I don't understand is why this exception is being thrown on a class that is not from my application, but *from the App Engine SDK* ( http://code.google.com/p/datanucleus-appengine/source/browse/trunk/src/org/datanucleus/store/appengine/jpa/DatastoreEntityManagerFactory.java?r=473 ). I suppose that the App Engine SDK classes should be fully compatible with the App Engine runtime :-) I searched for this error in this forum and in the datanucleus forum, but found nothing about it. 2. Your JPA annotations for the serialized entity property must be set to > 'serializable'. Don't know how it works for JPA, but here is how it looks > like for a JDO implementation : I don't know too, but I'll investigate this. > Class Sarkozy implements Serializable { > ... > } > > @PersistenceCapable > Class Bruni { >@Persistent(serialized = "true") >private Sarkozy smallGuy; > } > > > On 20/09/10 18:46, "Joaquim Oliveira" > wrote: > > > Hi all, > > > > I'm trying to convert an existing JPA application to run on App > > Engine, but when I try to run the application, I got the following > > exception: > > > > java.lang.RuntimeException: java.io.NotSerializableException: > > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory > > at > > > com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.ja > > va: > > 387) > > (...) > > > > Caused by: java.io.NotSerializableException: > > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory > > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: > > 1173) > > > > The application runs in maven2, so I don't know if this may be a > > problem caused by old lib versions. The declared dependecies are: > > > >com.google.appengine.orm > >datanucleus-appengine > >1.0.5 > >runtime > > > > > > > >org.datanucleus > >datanucleus-jpa > >1.1.5 > >runtime > > > > > > > > > > The datastore classes were not supposed to be compatible with the App > > Engine runtime restrictions? > > > > Any tips about how to solve this problem? > > > > Thanks in advance, > > > > Joaquim Oliveira > > > -- > 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-j...@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. > > -- 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-j...@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: [appengine-java] File myTempFile = new File("path to temp file")????????
Why do you need a File instance if you're not storing it? What are you trying to do? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Mon, Sep 20, 2010 at 3:00 PM, E Aparicio wrote: > Hi everyone, new to the group, didn't find another thread but I'm sure > this is a basic question. I need the servlet to accept a file via > multi-part form post and create a file instance. I don't need to > worry about persistence, storing to memcache or the datastore. Are we > not able to simply create a file instance referring to the temp file > location? I > > File myTempFile = new File("path to temp file"); > > I've read that gae doesn't support writing to the file system, also > read up on the blobstore, and memcache. Writing to the blobstore > seems like a solution but a bit overkill I think. I basically just > need to create a file object and pass that on as a parameter so again, > don't need persistence. > > > > Thanks! > ea > > -- > 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-j...@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. > > -- 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-j...@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] Sharded Counters in Java not using Transactions?
I'm going through the Sharded Counters example in Java: http://code.google.com/appengine/articles/sharding_counters.html I have a question about the implementation of the increment method. In python it explicitly wraps the get() and increment in a transaction. In the Java example it just retrieves it and sets it. I'm not sure I fully understand the Datastore and transactions but it seems like the critical update section should be wrapped in a datastore transaction. Am I missing something? Original code: public void increment() { PersistenceManager pm = PMF.get().getPersistenceManager(); Random generator = new Random(); int shardNum = generator.nextInt(NUM_SHARDS); try { Query shardQuery = pm.newQuery(SimpleCounterShard.class); shardQuery.setFilter("shardNumber == numParam"); shardQuery.declareParameters("int numParam"); List shards = (List) shardQuery.execute(shardNum); SimpleCounterShard shard; // If the shard with the passed shard number exists, increment its count // by 1. Otherwise, create a new shard object, set its count to 1, and // persist it. if ( Transactional code: public void increment() { PersistenceManager pm = PMF.get().getPersistenceManager(); Random generator = new Random(); int shardNum = generator.nextInt(NUM_SHARDS); try { Query shardQuery = pm.newQuery(SimpleCounterShard.class); shardQuery.setFilter("shardNumber == numParam"); shardQuery.declareParameters("int numParam"); List shards = (List) shardQuery.execute(shardNum); SimpleCounterShard shard; // If the shard with the passed shard number exists, increment its count // by 1. Otherwise, create a new shard object, set its count to 1, and // persist it. if (shards != null && !shards.isEmpty()) { Transaction tx = pm.currentTransaction(); try { tx.begin(); //I believe in a transaction objects need to be loaded by ID (can't use the outside queried entity) Key shardKey = KeyFactory.Builder(SimpleCounterShard.class.getSimpleName(), shards.get(0).getID()) shard = pm.getObjectById(SimpleCounterShard.class, shardKey); shard.setCount(shard.getCount() + 1); tx.commit(); } finally { if (tx.isActive()) { tx.rollback(); } } } else { shard = new SimpleCounterShard(); shard.setShardNumber(shardNum); shard.setCount(1); } pm.makePersistent(shard); } finally { pm.close(); } } } -- 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-j...@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: Python bulk loader tool with local dev server of GAE Java
Hi - I have the same problem as well. The bulk tool works great against production App Engine but I'd like to stage my data locally for testing before I get it into production. If anyone has this process working locally, could you please outline your setup and command line approach. Here's mine that fails. appcfg.py upload_data --config_file=scripts/bulkloader.yaml -- filename=data/new.csv --url=http://localhost:/remote_api -- application=local-app --kind=Product On Sep 1, 6:08 am, Tom wrote: > I have to agree on this - the current situation or documentation > regarding this topic is absolutely useless at this point. > It seems that no one cares to dump data from the appengine to the > local datastore. No one testing locally with real data? > [rant off] > > I have the same problems and can't import any data locally. If someone > has managed to import data locally (without any programming) in the > java-environment, then please share your success! :) > > Tom > > On 1 Aug., 14:49, Jan wrote: > > > Hi, > > > I still did not find any solution to use thebulkuploader (now > > version 1.3.5) locally with GAE/Java. Communication with the > > production server works fine. > > > As I cannot find any information about this issue, I assume that > > nobody else faces this problem. Can someone please post the steps > > necessary to make the Pythonbulkloader tool work locally with a Java > > app? > > > Are there any alternatives available for the Pythonbulkuploader? > > > Thank you, > > > Jan. > > -- 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-j...@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: [appengine-java] Re: Mvenizing GAE/GWT project
I tried mvn gae:unpack and it worked, but after that when i ran mvn eclipse:clean eclipse:eclipse it failed again with following error. I dont think this zip file comes with GWT installation any more. Downloading: http://www.datanucleus.org/downloads/maven/com.google.gwt/zips/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository DataNucleus_Repos (http://www.datanucleus.org/downloads/maven) Downloading: http://www.datanucleus.org/downloads/maven2/com/google/gwt/gwt-dev/2.1.0.M3/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository DataNucleus_Repos2 (http://www.datanucleus.org/downloads/maven2) Downloading: http://maven-gae-plugin.googlecode.com/svn/repository//com/google/gwt/gwt-dev/2.1.0.M3/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository maven-gae-plugin-repo ( http://maven-gae-plugin.googlecode.com/svn/repository/) Downloading: http://gwt-youtube-api.googlecode.com/svn/releases-repository/com/google/gwt/gwt-dev/2.1.0.M3/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository GWT_GOOGLE_RELEASE ( http://gwt-youtube-api.googlecode.com/svn/releases-repository) Downloading: http://gwt-youtube-api.googlecode.com/svn/snapshots-repository/com/google/gwt/gwt-dev/2.1.0.M3/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository GWT_GOOGLE_SNAPSHOT ( http://gwt-youtube-api.googlecode.com/svn/snapshots-repository) Downloading: http://repo1.maven.org/maven2/com/google/gwt/gwt-dev/2.1.0.M3/gwt-dev-2.1.0.M3-windows-libs.zip [INFO] Unable to find resource 'com.google.gwt:gwt-dev:zip:windows-libs:2.1.0.M3' in repository central ( http://repo1.maven.org/maven2) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] artifact not found - Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.1.0.M3 -Dclassifier=windows-libs -Dpackaging=zip -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -Dversion=2.1.0.M3 -Dclassifier=windows-libs -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] com.google.gwt:gwt-dev:zip:2.1.0.M3 On Tue, Sep 21, 2010 at 9:08 AM, drone wrote: > Yes, maven-gae-plugin has it's own group at > http://groups.google.com/group/maven-gae-plugin > Check there for solution or post your own question there. > > On Sep 21, 10:08 am, Ravi Sharma wrote: > > Thanks Moritz for reply. > > So shall i create my project using this command or just create normal > maven > > project and then convert it into GAE-GWT project manually by adding all > > dependecies? > > > > mvn archetype:generate -DarchetypeGroupId=net.kindleit > > -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 > > -DgroupId=com.myapp.test -DartifactId=testapp > > > > I am new to maven, it looks quite easy but sometimes just stuck. I > followed > > the documentation at that link and didnt work, will try again from > scratch > > and then i will post the output. > > > > Thanks, > > Ravi. > > > > On Mon, Sep 20, 2010 at 10:30 PM, Moritz wrote: > > > Maybe the maven-gae-plugin group would be more helpful. But: > > > > > In the dependencies section, you should use variables like "$ > > > {gae.version}" (without quotes). When defining variables in the > > > properties section you should use "1.3.7 > > gae.version>" (without quotes). > > > > > I'd recommend that you use the latest version of the plugin and > > > install the appengine sdk using "mvn gae:unpack". > > > > > Mo. > > > > > On 20 Sep., 21:05, Ravi Sharma wrote: > > > > Hi All, > > > > I am trying to maenize my exisitng GAE-GWT project. So first i > started > > > with > > > > a sample new project as mentioned here > > > > > >http://code.google.com/p/maven-gae-plugin/ > > > > > > I created a project with this command as mentioned on this page > > > > > > mvn archetype:generate -DarchetypeGroupId=net.kindleit > > > > -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 > > > > -DgroupId=com.myapp.test -DartifactId=testapp > > > > > > And then i imported this project in eclipse(Galileo) > > > > > > And nothing worked.(I did expected that it will work ) > > > > Version variables are defined like this $${Gae.version}}, which looks > > > absurd > > > > and feel like this plugin is not good enough to start with. > > > > even after fixing these problems, i
[appengine-java] Restricting upload size to the blob store
How does one restrict the maximum size of a file uploaded to the blobstore ? For example, my app should allow an image upload only if the images is less than 1 MB. Otherwise the image must not be stored at all. -Navaneeth -- 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-j...@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: Mvenizing GAE/GWT project
See http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html Specifically, you might want to see the sample maven + gwt + gae project that they have given : http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/pom.xml -- 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-j...@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.