Re: [appengine-java] Threads

2011-09-19 Thread Prashant
On Mon, Sep 19, 2011 at 10:16 AM, HARISH S.C s.c.har...@gmail.com wrote:

 Hi,
  I would like to clarify some basic doubts. I am trying to port an
 existing app into google app engine .

 1. When I have more than 1 servlet, it ll be executed in different
 thread in a single JVM or else how it will be executed ?


it ll be executed in different thread in a single JVM


 2. Is there any workaround to eliminate threading?


you can set multi-threading off. by default it is off, it think.

3. Can we communicate between two application ?


did you mean two totally different apps (not two different instances of your
app) ? if yes, answer in no. you will have to use url-fetch or XMPP to
communicate between applications.


 Regards,
 S.C.Harish

 --
 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.



-- 
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: Threads

2011-09-19 Thread HARISH S.C
@Prashant Thanks for the info.

I was not very clear with my 2nd question

My application creates thread n use synchronization. So Is rewriting
my whole application is my only option or is there any other way?



On Sep 19, 11:08 am, Prashant antsh...@gmail.com wrote:
 On Mon, Sep 19, 2011 at 10:16 AM, HARISH S.C s.c.har...@gmail.com wrote:
  Hi,
   I would like to clarify some basic doubts. I am trying to port an
  existing app into google app engine .

  1. When I have more than 1 servlet, it ll be executed in different
  thread in a single JVM or else how it will be executed ?

 it ll be executed in different thread in a single JVM

  2. Is there any workaround to eliminate threading?

 you can set multi-threading off. by default it is off, it think.

 3. Can we communicate between two application ?

 did you mean two totally different apps (not two different instances of your
 app) ? if yes, answer in no. you will have to use url-fetch or XMPP to
 communicate between applications.







  Regards,
  S.C.Harish

  --
  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.

-- 
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: Threads

2011-09-19 Thread Simon Knott
There is a very high possibility that your application will run in multiple 
JVMs, so you should avoid synchronizing between threads.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/bJnW8EiVc0sJ.
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: Threads

2011-09-19 Thread de Witte
You can't create your own threads in GAE. Use task queue, backend, or cron 
jobs instead.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/FCkJpblF6YQJ.
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: Threads

2011-09-19 Thread HARISH S.C
@de Witte
I thought of task queue, but the blocking issue there is, we wont get
any response after the task is finished

On Sep 19, 12:25 pm, de Witte jcreator.xi...@gmail.com wrote:
 You can't create your own threads in GAE. Use task queue, backend, or cron
 jobs instead.

-- 
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 and High Replication datastore

2011-09-19 Thread Ian Marshall
I do!

Code-wise, there is no change that I am aware of.

Conceptually, there are differences - such as potential delays between
a write in one transaction and a subsequent read without using a
transaction to see the newly-updated data.


On Sep 17, 9:06 am, Shoubhik sbos...@gmail.com wrote:
 Hello,

 I'm a bit confused seeing the changes in documentation for storing data.

 Could you please tell me:

 Can I use the standard interface JDO with the High Replication datastore,
 like I did with the Master/Slave?

 Thanks,
 Shoubhik

-- 
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: You do not have permission to modify this app

2011-09-19 Thread Sudhakar Abraham
You can directly upload your application without using eclipse
plugin.

1. Change your application version in appengine-web.xml.

2. Go to  command prompt, point your app engine SDK version 1.5.0
 (_your app engine SDK directory\appengine-java-sdk-1.5.0.1\bin)

3. Update your application using the appcfg  update command.
(appcfg --enable_jar_splitting update) and specify the destination
directory of your project.

like:appcfg --enable_jar_splitting update your_project_directory
\build\web

4. Specify your user name and password.



S. Abraham
www.DataStoreGwt.com


On Sep 15, 4:53 am, Ken Bowen ken.bo...@applied-logic-systems.com
wrote:
 I've got a problem trying to upload to a newly created application
 named 'wnaccess' in the applications for applied-logic-systems.com;
 I'm in the role of application Owner.

 Based on some searches, I ensured that the file .appcfg_cookies is not
 present in my home directory.

 I also ensured that:
 Google Apps Manager Dashboard login was successful as
 ken.bo...@applied-logic-systems.com

 Google App Engine My Applications login was successful as
 ken.bo...@applied-logic-systems.com 
 athttps://appengine.google.com/a/applied-logic-systems.com

 I'm currently running SDK version 1.5.0 in the Eclipse plugin.
 With the two logins above currently active in different browser tabs,
 I attempted to upload to the new application 'wnaccess' for the first
 time.  The result on the console was this:

 Created staging directory at: '/var/folders/EM/EMFo-6hIHsqSzUcUq--t1E++
 +TI/-Tmp-/appcfg1791187681661511906.tmp'
 Scanning for jsp files.
 Scanning files on local disk.
 Scanned 250 files.
 Scanned 500 files.
 Initiating update.
 java.io.IOException: Error posting to 
 URL:https://appengine.google.com/api/appversion/create?app_id=wnaccessve...
 403 Forbidden
 You do not have permission to modify this app (app_id=u'wnaccess').

 Note that it did not ask me for an email or password.
 I've worked on GAE applications for another company for a couple of
 years, and I can't see what I'm doing differently here.
 Can anyone help me figure out what is going wrong here or what my
 mistake is?
 Thanks in advance,
 Ken

-- 
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 and High Replication datastore

2011-09-19 Thread Ian Marshall
I correct what I wrote below. I should have written:

Conceptually, there are differences - such as the delay between a
write and seeing the new data in a subsequent read without using a
transaction.



On Sep 19, 11:46 am, Ian Marshall ianmarshall...@gmail.com wrote:
 I do!

 Code-wise, there is no change that I am aware of.

 Conceptually, there are differences - such as potential delays between
 a write in one transaction and a subsequent read without using a
 transaction to see the newly-updated data.

 On Sep 17, 9:06 am, Shoubhik sbos...@gmail.com wrote:







  Hello,

  I'm a bit confused seeing the changes in documentation for storing data.

  Could you please tell me:

  Can I use the standard interface JDO with the High Replication datastore,
  like I did with the Master/Slave?

  Thanks,
  Shoubhik

-- 
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: Writing to google spreadsheet from GAE

2011-09-19 Thread Daniel Florey
I've been able to access spreadsheets from GAE without problems.
The only problem is the limited upload size for URLFetch that makes it 
impossible to upload large pre-populated sheets.
Other than that it worked without problmes...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/cI_21ja-m10J.
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: Writing to google spreadsheet from GAE

2011-09-19 Thread niraj
Daniel ,

Would you mind posting the sample code. OR the link to the samples
that helped you code the application

On Sep 19, 7:24 am, Daniel Florey daniel.flo...@gmail.com wrote:
 I've been able to access spreadsheets from GAE without problems.
 The only problem is the limited upload size for URLFetch that makes it
 impossible to upload large pre-populated sheets.
 Other than that it worked without problmes...

-- 
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] Documentation Suggestion: More JDO ancestor query on collection documentation

2011-09-19 Thread Brandon Donnelson
May I suggest adding more query on ancestors (collecitons, lists, 
vectors...) documentation. Please combine owned relationships with a section 
on how to query the owned relationships, elaborating on it more than what's 
currently stated. 

For example, if my HashSetString list has {I,went,there} how can I query 
that if it is an ancestor collection; needs more info in docs. Maybe I'm not 
seeing whats currently stated. In that case please tie it into the 
collections area. 

Thanks,
Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/h55ZFfQYYrMJ.
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: Writing to google spreadsheet from GAE

2011-09-19 Thread Brandon Donnelson
The Java gdata works great as an api accessing the spreadsheet. If you only 
want access to your own spreadsheet you can hardcode your authentication, 
otherwise oauth is what you want.

Here is one of my examples doing 
it. http://code.google.com/p/gwt-examples/wiki/DemoGwtGData
Another great example by Ikai 
- 
http://ikaisays.com/2011/05/26/setting-up-an-oauth-provider-on-google-app-engine/

Once you have your oauth token, you an access the spreadsheet api easily on 
the server side.

public void test() {

String scope = https://spreadsheets.google.com/feeds/;;
AppTokenJdo appToken = AppTokenStore.getToken(scope);

String consumerKey = sp.getOAuthConsumerKey();
String consumerSecret = sp.getOAuthConsumerSecret();

String token = appToken.getAccessTokenKey();
String tokenSecret = appToken.getAccessTokenSecret();

GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters();
oauthParameters.setOAuthConsumerKey(consumerKey);
oauthParameters.setOAuthConsumerSecret(consumerSecret);
oauthParameters.setOAuthToken(token);
oauthParameters.setOAuthTokenSecret(tokenSecret);

//log.info(Token  + token +  TokenSecret:  + tokenSecret +  
ConsumerKey:  + consumerKey +  ConsumerSecret:  + consumerSecret);

SpreadsheetService service = new 
SpreadsheetService(Gone_Vertical_LLC-CoreSystem_v1);
try {
  service.setOAuthCredentials(oauthParameters, new OAuthHmacSha1Signer());
} catch (OAuthException e) {
  e.printStackTrace();
}

URL url = null;
try {
  url = new 
URL(https://spreadsheets.google.com/feeds/spreadsheets/private/full;);
} catch (MalformedURLException e1) {
  e1.printStackTrace();
}
SpreadsheetFeed feed = null;
try {
  feed = service.getFeed(url, SpreadsheetFeed.class);
} catch (IOException e) {
  e.printStackTrace();
} catch (ServiceException e) {
  e.printStackTrace();
}
ListSpreadsheetEntry spreadsheets = feed.getEntries();
for (int i = 0; i  spreadsheets.size(); i++) {
  SpreadsheetEntry entry = spreadsheets.get(i);
  //System.out.println(\t + entry.getTitle().getPlainText());
}

  }


Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/8MIfMW6nxEcJ.
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 and High Replication datastore

2011-09-19 Thread Shoubhik
Thanks Ian,

I tried it and it worked. The documentation in the Getting Started
part should provide more info about using JDO! (instead of browsing to
the Storing Data section.


On Sep 19, 6:09 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 I correct what I wrote below. I should have written:

 Conceptually, there are differences - such as the delay between a
 write and seeing the new data in a subsequent read without using a
 transaction.

 On Sep 19, 11:46 am, Ian Marshall ianmarshall...@gmail.com wrote:







  I do!

  Code-wise, there is no change that I am aware of.

  Conceptually, there are differences - such as potential delays between
  a write in one transaction and a subsequent read without using a
  transaction to see the newly-updated data.

  On Sep 17, 9:06 am, Shoubhik sbos...@gmail.com wrote:

   Hello,

   I'm a bit confused seeing the changes in documentation for storing data.

   Could you please tell me:

   Can I use the standard interface JDO with the High Replication datastore,
   like I did with the Master/Slave?

   Thanks,
   Shoubhik

-- 
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: You do not have permission to modify this app

2011-09-19 Thread Ken Bowen
Duh!  Didn't realize I was incorrectly logged in to the Eclipse
plugin. Sorry for the clutter.

-- 
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] Using JDO updating entity groups advice

2011-09-19 Thread Alex
Hi all,

I’m trying to model my domain to use GAE JDO. I have User and Event classes 
(see below). 

An Event is owned by a User and a User can participate in their and others 
Events.

My issue is that I’m having trouble persisting the participate in another 
User’s Event. I keep getting:

java.lang.IllegalArgumentException: can't operate on multiple entity groups 
in a single transaction. found both Element {
 type: User
 id: 1
}
and Element {
 type: User
 id: 7
}


I see its because I’m updating multiple top level entities... but I’m not 
sure how to update the entities separately given the own/participates 
references... any suggestions appreciated!

@PersistenceCapable(detachable = true)
public class User implements Serializable 
{

@PrimaryKey

@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

private Key id; 

// owned one-to-many with event

@Persistent(mappedBy = owner)

private ListEvent ownsEvents = new ArrayListEvent();

// many to many

private SetKey participatesInEvents = new HashSetKey();
}

@PersistenceCapable(detachable = true)
public class Event implements Serializable 
{

@PrimaryKey

@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

private Key id; 

// owned one-to-many with user

private User owner;

// many to many with user

private SetKey participants = new HashSetKey();
}

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/POgG9W3Rli4J.
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] Private and public blobs

2011-09-19 Thread Stefanos Antaris
Hi to all developers,

i am developing a new web application for a company and i am using blobs to 
upload and serve some files. However, i have noticed that  if i already have 
the blob item's link i can download the file. As the enterprise's policy is 
to download the file whoever have already paid for this, i need to have some 
restrictions the blob items and the items should be downloadable only to the 
appropriate users and not to the public. Can this be done?

Thanks in advance, 
Stefanos Antaris

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/_ICZnqYxM_sJ.
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] Newbie: java.lang.ClassNotFoundException

2011-09-19 Thread Arkaaito
Hello, all!

A friend and I are dabbling in App Engine using the Java SDK.  We've
put together a Hello, World example with no problems; however, when
we try to add code to make a simple call to a webservice using the
classes in com.google.api.client.http, our code compiles fine but
causes a runtime error:

HTTP ERROR 500

Problem accessing /surreality. Reason:

com/google/api/client/http/HttpTransport

Caused by:

HTTP ERROR 500

Problem accessing /surreality. Reason:

com/google/api/client/http/javanet/NetHttpTransport

Caused by:

java.lang.NoClassDefFoundError: com/google/api/client/http/javanet/
NetHttpTransport
at
com.surreality.scratch.SurrealityServlet.performSearch(SurrealityServlet.java:
31)
at
com.surreality.scratch.SurrealityServlet.doGet(SurrealityServlet.java:
18)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
(...cut)

The code in question is:

package com.surreality.scratch;

import java.io.IOException;
import javax.servlet.http.*;
import java.util.List;
import com.google.api.client.googleapis.*;
import com.google.api.client.http.*;
import com.google.api.client.http.javanet.*;
import com.google.api.client.util.Key;

@SuppressWarnings(serial)
public class SurrealityServlet extends HttpServlet {

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType(text/plain);
try {
this.performSearch(resp);
resp.getWriter().println(Here...);
} catch (Exception e) {
resp.getWriter().println(Onoes!);
}
}

public void performSearch(HttpServletResponse resp) throws Exception
{

try {
resp.getWriter().println(Perform Search );
resp.getWriter().println(---);

HttpTransport transport = new NetHttpTransport(); // 
This line
causes our servlet to implode on every request
} catch (Exception e) {
resp.getWriter().println(failed);
throw e;
}
}
}

Our best guess was a discrepancy between the build classpath and the
runtime classpath, but our runtime classpath *seems* to be OK.  The
HttpTransport class is in the google-api-client-1.4.1-beta.jar
library, and that's included in the command line Eclipse is generating
to run the project:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/
java -Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50 -
Xmx512m -javaagent:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/agent/appengine-agent.jar -
XstartOnFirstThread -Xbootclasspath/p:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/override/appengine-dev-jdk-overrides.jar -
Dfile.encoding=MacRoman -classpath /Users/Arkaaito/Documents/AppEngine/
scratch/surreality/war/WEB-INF/classes:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/appengine-local-runtime-
shared.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/el-api.jar:/Applications/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-
ant-1.7.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-ant-
launcher-1.7.1.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-
jasper-6.0.29.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-jasper-
el-6.0.29.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-tomcat-
juli-6.0.29.jar:/Applications/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/jsp-api.jar:/Applications/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/shared/servlet-api.jar:/Applications/
eclipse/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
appengine-java-sdk-1.5.3/lib/user/appengine-api-1.0-sdk-1.5.3.jar:/
Applications/eclipse/plugins/

Re: [appengine-java] Newbie: java.lang.ClassNotFoundException

2011-09-19 Thread Bruno Fuster
Hi

Did you try using URLFetch ?

Check this post from Ikai
http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/

Regards,

On Sun, Sep 18, 2011 at 7:46 PM, Arkaaito alsti...@gmail.com wrote:

 Hello, all!

 A friend and I are dabbling in App Engine using the Java SDK.  We've
 put together a Hello, World example with no problems; however, when
 we try to add code to make a simple call to a webservice using the
 classes in com.google.api.client.http, our code compiles fine but
 causes a runtime error:

 HTTP ERROR 500

 Problem accessing /surreality. Reason:

com/google/api/client/http/HttpTransport

 Caused by:

 HTTP ERROR 500

 Problem accessing /surreality. Reason:

com/google/api/client/http/javanet/NetHttpTransport

 Caused by:

 java.lang.NoClassDefFoundError: com/google/api/client/http/javanet/
 NetHttpTransport
at

 com.surreality.scratch.SurrealityServlet.performSearch(SurrealityServlet.java:
 31)
at
 com.surreality.scratch.SurrealityServlet.doGet(SurrealityServlet.java:
 18)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
 (...cut)

 The code in question is:

 package com.surreality.scratch;

 import java.io.IOException;
 import javax.servlet.http.*;
 import java.util.List;
 import com.google.api.client.googleapis.*;
 import com.google.api.client.http.*;
 import com.google.api.client.http.javanet.*;
 import com.google.api.client.util.Key;

 @SuppressWarnings(serial)
 public class SurrealityServlet extends HttpServlet {

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType(text/plain);
try {
this.performSearch(resp);
resp.getWriter().println(Here...);
} catch (Exception e) {
resp.getWriter().println(Onoes!);
}
}

public void performSearch(HttpServletResponse resp) throws Exception
 {

try {
resp.getWriter().println(Perform Search );
resp.getWriter().println(---);

HttpTransport transport = new NetHttpTransport(); //
 This line
 causes our servlet to implode on every request
} catch (Exception e) {
resp.getWriter().println(failed);
throw e;
}
}
 }

 Our best guess was a discrepancy between the build classpath and the
 runtime classpath, but our runtime classpath *seems* to be OK.  The
 HttpTransport class is in the google-api-client-1.4.1-beta.jar
 library, and that's included in the command line Eclipse is generating
 to run the project:

 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/
 java -Ddatastore.default_high_rep_job_policy_unapplied_job_pct=50 -
 Xmx512m -javaagent:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/agent/appengine-agent.jar -
 XstartOnFirstThread -Xbootclasspath/p:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/override/appengine-dev-jdk-overrides.jar -
 Dfile.encoding=MacRoman -classpath /Users/Arkaaito/Documents/AppEngine/
 scratch/surreality/war/WEB-INF/classes:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/appengine-local-runtime-
 shared.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/el-api.jar:/Applications/eclipse/
 plugins/com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-
 ant-1.7.1.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-ant-
 launcher-1.7.1.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-
 jasper-6.0.29.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-jasper-
 el-6.0.29.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp/repackaged-appengine-tomcat-
 juli-6.0.29.jar:/Applications/eclipse/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710/
 appengine-java-sdk-1.5.3/lib/shared/jsp-api.jar:/Applications/eclipse/
 

Re: [appengine-java] Private and public blobs

2011-09-19 Thread Bruno Fuster
Hi!

You can expose your own links instead (like /download/{clientid}/{fileid}).

Check if the user is logged in as appropriate and then serve the blob:

public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException {
BlobKey blobKey = new BlobKey(req.getParameter(blob-key));
blobstoreService.serve(blobKey, res);
}

source:
http://stackoverflow.com/questions/1994242/trying-to-retrieve-file-from-blobstore-and-send-it-as-mail-attachment-using-googl


On Sat, Sep 17, 2011 at 5:25 AM, Stefanos Antaris ssanta...@gmail.comwrote:

 Hi to all developers,

 i am developing a new web application for a company and i am using blobs to
 upload and serve some files. However, i have noticed that  if i already have
 the blob item's link i can download the file. As the enterprise's policy is
 to download the file whoever have already paid for this, i need to have some
 restrictions the blob items and the items should be downloadable only to the
 appropriate users and not to the public. Can this be done?

 Thanks in advance,
 Stefanos Antaris

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/_ICZnqYxM_sJ.
 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.




-- 
Bruno Fuster

-- 
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] JDO advise

2011-09-19 Thread Alex
Hi all,

I'm using JDO for storage in GAE and would like some advice as I'm having 
trouble modelling my persistence objects.

I have 2 classes, User and Event. A User owns an Event and can participate 
in others Events. My classes look roughly like this.

@PersistenceCapable(detachable = true)
public class User implements Serializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id; 
private String email;
private String firstName;
private String lastName;
private String password;
private String passwordConf;
private int status;
private boolean enabled;
// owned one-to-many with event
@Persistent(mappedBy = owner)
private ListEvent ownsEvents = new ArrayListEvent();
// many to many
private SetKey participatesInEvents = new HashSetKey();

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ruH77bWja5wJ.
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] blob storage restrictions

2011-09-19 Thread Stefanos Antaris


Hi to all,


i am a newbie in Google Web Toolkit and Google App Engine Technology so i 
need your help based on blobs. I am developing a web application for a 
company which needs to upload some files and serve them to their customers. 
The problem is that when someone uploads an item to the blobstore a url is 
created and whoever has that link can download/view the file but the 
specifications are the file to be downloaded to the user who have paid for 
that. Of course the user should be logged in before. So, how can i have some 
restrictions to the blob items and make them private to the prepaid 
customers?

Thanks in advance,

 Stefanos Antaris

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/HSdG6RxZtM4J.
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] java.lang.ArrayIndexOutOfBoundsException in org.datanucleus.state.AbstractStateManager.getFlagsSetTo

2011-09-19 Thread aschroder
I am getting this error:

Uncaught exception from servlet
java.lang.ArrayIndexOutOfBoundsException: 8
at 
org.datanucleus.state.AbstractStateManager.getFlagsSetTo(AbstractStateManager.java:1455)
at 
org.datanucleus.state.JDOStateManagerImpl.initialiseForCachedPC(JDOStateManagerImpl.java:592)
at 
org.datanucleus.state.StateManagerFactory.newStateManagerForCachedPC(StateManagerFactory.java:216)
at 
org.datanucleus.ObjectManagerImpl.getObjectFromCache(ObjectManagerImpl.java:3647)
at 
org.datanucleus.ObjectManagerImpl.findObject(ObjectManagerImpl.java:2302)
at 
org.datanucleus.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1671)
at 
org.datanucleus.jdo.JDOPersistenceManager.getObjectById(JDOPersistenceManager.java:1767)
at 
org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager.getObjectById(DatastoreJDOPersistenceManager.java:73)
at 
org.springframework.orm.jdo.JdoTemplate$2.doInJdo(JdoTemplate.java:272)
at org.springframework.orm.jdo.JdoTemplate.execute(JdoTemplate.java:205)
at 
org.springframework.orm.jdo.JdoTemplate.getObjectById(JdoTemplate.java:270)
...

From simple code like:

return jdoTemplate.getObjectById(Account.class, 
KeyFactory.stringToKey(accountKey));

When I enable JDO cache like this in jdoconfig.xml:
property name=datanucleus.cache.level2.type value=javax.cache /
property name=datanucleus.cache.level2.cacheName value=jdocache /

The same code was working fine in App Engine 1.5.2, but now on 1.5.3 SDK 
this is happening, could it be related? 

Does anyone know if datanucleus.cache officially supported? More importantly 
if this is a bug, is it one for the GAE/J team or for DataNucleus, I get 
confused as to who is building/maintaining that part of the functionality.

Thanks,
Ashley

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/FFheDbv5bXkJ.
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: [appengine-java] JDO advise

2011-09-19 Thread Ravi Sharma
ANy particular problem??
I would design these classes like this...

@PersistenceCapable(detachable = true)
public class User implements Serializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
private String email;
private String firstName;
private String lastName;
private String password;
private String passwordConf;
private int status;
private boolean enabled;
}
@PersistenceCapable(detachable = true)
public class Event implements Serializable {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
private Key owner;
private SetKey participants;
}


Usually i prefer unowned relationship, but with new pricing you can say you
can save some money by keeping a big entity(too many owned relationships).

With Owned relation your User Entity will keep increasing in size with time.



On Mon, Sep 19, 2011 at 1:50 AM, Alex grumpy.bur...@gmail.com wrote:

 Hi all,

 I'm using JDO for storage in GAE and would like some advice as I'm having
 trouble modelling my persistence objects.

 I have 2 classes, User and Event. A User owns an Event and can participate
 in others Events. My classes look roughly like this.

 @PersistenceCapable(detachable = true)
 public class User implements Serializable {

 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
 private Key id;
 private String email;
 private String firstName;
 private String lastName;
 private String password;
 private String passwordConf;
 private int status;
 private boolean enabled;
 // owned one-to-many with event
 @Persistent(mappedBy = owner)
 private ListEvent ownsEvents = new ArrayListEvent();
 // many to many
 private SetKey participatesInEvents = new HashSetKey();

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/ruH77bWja5wJ.
 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.


-- 
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] unable to install google app engine plugin for eclipse(indigo)

2011-09-19 Thread raj
when i try to install google app engine plugin for eclipse it keeps
giving below error message at about 47%

installing software has encountered a problem. An error occured while
collecting items to be installed

An error occurred while collecting items to be installed session
context was:(profile=epp.package.jee,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=). Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.appengine.eclipse.core_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.appengine.rpc_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.gdt.eclipse.appsmarketplace_2.4.0.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.core_2.4.0.r37v201108301710.jar. Read timed out
Unable to read repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer_2.4.0.r37x201108271303.jar. Read timed
out Unable to read repository at dl.google.com/eclipse/plugin/3.7/
plugins/
com.google.gdt.eclipse.designer.UiBinder_2.4.0.r37x201108271303.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.designer.gpe_2.4.0.r37x201108290223.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.gdt.eclipse.designer.hosted_2.4.0.r37x201108271255.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/com.google.gdt.eclipse.designer.hosted.
2_0_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer.hosted.
2_0.ie_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer.hosted.
2_0.super_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer.hosted.
2_0.webkit_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer.hosted.2_2_2.4.0.r37x201108271255.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/com.google.gdt.eclipse.designer.hosted.
2_2.ie_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.designer.hosted.
2_2.webkit_2.4.0.r37x201108271255.jar. Read timed out Unable to read
repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.gph_2.4.0.r37v201108301710.jar. Read timed out
Unable to read repository at dl.google.com/eclipse/plugin/3.7/plugins/
com.google.gdt.eclipse.gph.subclipse_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/com.google.gdt.eclipse.login_2.4.0.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.managedapis_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/com.google.gdt.eclipse.maven_2.4.0.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.maven.e37_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.gdt.eclipse.platform.e37_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/
com.google.gdt.eclipse.platform.shared_2.4.0.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gdt.eclipse.suite_2.4.0.r37v201108301710.jar. Read timed
out Unable to read repository at dl.google.com/eclipse/plugin/3.7/
plugins/com.google.gwt.eclipse.core_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/com.google.gwt.eclipse.oophm_2.4.0.r37v201108301710.jar.
Read timed out Unable to read repository at dl.google.com/eclipse/
plugin/3.7/plugins/
com.google.gwt.eclipse.sdkbundle_2.4.0.r37v201108301710.jar. Read
timed out Unable to read repository at dl.google.com/eclipse/plugin/
3.7/plugins/org.eclipse.wb.core_1.1.0.r37x201108271211.jar. Read timed
out Unable to read repository at dl.google.com/eclipse/plugin/3.7/
plugins/org.eclipse.wb.core.databinding_1.1.0.r37x201108271211.jar.
Read timed out

-- 
You received this message because you are subscribed to the Google 

[appengine-java] Why are java_lang_Object Entities are being created?

2011-09-19 Thread IlyaE
I look at the Database Viewer and besides the models and _ah_SESSION i
see there is a java_lang_Object entity that only has a ID/Name
attribute. What is this and why are they being created?

-- 
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: Developing Multilingual Web Applications

2011-09-19 Thread Nichole
and you'll probably want to add threadsafetrue/threadsafe to
appengine-web.xml
as appengine's frontend server will otherwise send requests serially


On Sep 18, 6:25 pm, Nichole nichole.k...@gmail.com wrote:
 If you have a java web application that conforms to servlet spec 2.4,
 jsp spec 2.0 and jstl spec 1.1.x the additional steps you'll need to
 take
 are roughly:

    -- add the resource files to your appengine-web.xml file
    -- replace use of JAAS classes that are not allowed by the
 appengine security
       manager such as the Principal class.  see the Google account
       com.google.appengine.api.users.User
    -- turn any jspx files into jsp files by making the directives not
 use xml (just the
        directives, the remaining jstl xml commands will still
 function).
       that also means that your jsp-config in the web.xml should use
 el-ignoredfalse/el-ignored
    -- the jars for servlet-api, jsp-api, jstl and standard are needed
 for compilation,
       but should be removed before deployment as they are provided by
 the container.
    -- to use the servlet session, you'll need to enable it with:
        
 http://code.google.com/appengine/docs/java/config/appconfig.html#Enab...

 On Sep 17, 4:37 pm, Jesper Nyqvist ad...@neptunediving.com wrote:







  Google Data APIs http://code.google.com/apis/gdata/javadoc/

  This is google data api library but i cannot find what i need in here. There
  is very little documentation regarding this issue with google.
  There most be some information out there regarding this with multilingual
  web applications? Not only from oracle but also from google?

  Please anybody who have any ideas regarding this, please let me know so i
  can start with my new google project!!

-- 
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: [appengine-java] unable to install google app engine plugin for eclipse(indigo)

2011-09-19 Thread David Chandler
Hi Raj,

Sometimes Eclipse gets hung up if there are network errors during a
download. Close Eclipse, wait 5 min, and try again. This will clear the
cache. If that still doesn't work, try a fresh install of Eclipse and post
on the new group for GPE:
http://groups.google.com/group/google-plugin-eclipse

HTH,
/dmc

On Sun, Sep 18, 2011 at 2:34 AM, raj rajneesh.urfri...@gmail.com wrote:

 when i try to install google app engine plugin for eclipse it keeps
 giving below error message at about 47%

 installing software has encountered a problem. An error occured while
 collecting items to be installed

 An error occurred while collecting items to be installed session
 context was:(profile=epp.package.jee,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=). Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.appengine.eclipse.core_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.appengine.eclipse.sdkbundle_1.5.3.r37v201108301710.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.appengine.rpc_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.gdt.eclipse.appsmarketplace_2.4.0.r37v201108301710.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.core_2.4.0.r37v201108301710.jar. Read timed out
 Unable to read repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer_2.4.0.r37x201108271303.jar. Read timed
 out Unable to read repository at dl.google.com/eclipse/plugin/3.7/
 plugins/
 com.google.gdt.eclipse.designer.UiBinder_2.4.0.r37x201108271303.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.gpe_2.4.0.r37x201108290223.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.gdt.eclipse.designer.hosted_2.4.0.r37x201108271255.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/com.google.gdt.eclipse.designer.hosted.
 2_0_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.hosted.
 2_0.ie_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.hosted.
 2_0.super_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.hosted.
 2_0.webkit_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.hosted.2_2_2.4.0.r37x201108271255.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/com.google.gdt.eclipse.designer.hosted.
 2_2.ie_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.designer.hosted.
 2_2.webkit_2.4.0.r37x201108271255.jar. Read timed out Unable to read
 repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.gph_2.4.0.r37v201108301710.jar. Read timed out
 Unable to read repository at dl.google.com/eclipse/plugin/3.7/plugins/
 com.google.gdt.eclipse.gph.subclipse_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/com.google.gdt.eclipse.login_2.4.0.r37v201108301710.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.managedapis_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/com.google.gdt.eclipse.maven_2.4.0.r37v201108301710.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.maven.e37_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.gdt.eclipse.platform.e37_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/
 com.google.gdt.eclipse.platform.shared_2.4.0.r37v201108301710.jar.
 Read timed out Unable to read repository at dl.google.com/eclipse/
 plugin/3.7/plugins/
 com.google.gdt.eclipse.suite_2.4.0.r37v201108301710.jar. Read timed
 out Unable to read repository at dl.google.com/eclipse/plugin/3.7/
 plugins/com.google.gwt.eclipse.core_2.4.0.r37v201108301710.jar. Read
 timed out Unable to read repository at dl.google.com/eclipse/plugin/
 3.7/plugins/com.google.gwt.eclipse.oophm_2.4.0.r37v201108301710.jar.
 Read timed out Unable to read repository at 

[appengine-java] GAE+GWT2.4 [ERROR] java.lang.NoClassDefFoundError: javax/validation/Path

2011-09-19 Thread John Howe
I thought this was going to be easy.

I'm trying to move a working GAE java app up to GWT 2.4.

But when I do, I see the following stack trace on the first RPC call.

At least one other guy has seen this while doing same and posted a query at
http://groups.google.com/group/google-appengine/browse_frm/thread/a78f4c443bd3b249

Any help, suggestions, or insight would be most appreciated!

Thanks.


The server is running at http://localhost:/
mozilla/5.0 (windows nt 6.0) applewebkit/535.1 (khtml, like gecko)
chrome/14.0.835.163 safari/535.1
[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
java.lang.NoClassDefFoundError: javax/validation/Path
at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
 at
com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
 at
com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:196)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy(RemoteServiceServlet.java:90)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:293)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:157)
 at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:455)
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:237)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
 at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
 at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at
com.sportzcasterbeta.server.ServiceFilterImpl.doFilter(ServiceFilterImpl.java:25)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.sportzcasterbeta.server.ServiceFilterImpl.doFilter(ServiceFilterImpl.java:25)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
 at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
 at