Re: [appengine-java] Our experience with App Engine

2011-01-11 Thread Ingo Jaeckel
Hello,

thanks for this great article! I agree with basically all you are
saying in this post. Among other things I especially love the app
versioning.

Kind regards,
Ingo

2011/1/11 Weespr :
> Almost 2 years after embracing it. Hope feedback will be useful to people.
>
> http://weespr.blogspot.com/2011/01/our-experience-with-app-engine.html
>
> --
> 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: Restlet, GAE, Android and Google Account authentication (oauth)

2011-01-11 Thread Sky
yes, that would be the way with simple httpClient. Maybe there is a
way to couple the HttpClient with Restlet? It seems not to be
documented...

Maybe there is a way to use Restlet API or another Rest client library
to do that above?

Thanks!

On 10 Jan., 21:39, Fabrizio Accatino  wrote:
> I'm not sure if I have undestood your question.
> I have done "Android-->GAE" connection using the AccountManager class:
>
> First: get an authentication token using AccountManager ("ah" is App
> Engine):
> ...
> AccountManager mgr = AccountManager.get(context);
> ...
> AccountManagerFuture accountManagerFuture =
> mgr.getAuthToken(account, "ah", null, (Activity) context, null, null);
> Bundle authTokenBundle = accountManagerFuture.getResult();
> authToken = authTokenBundle.get(AccountManager.KEY_AUTHTOKEN).toString();
> ...
>
> Then retrive authentication cookie using DefaultHttpClient passing the
> authToken. The url is:
> String url = "http://myapp.appspot.com/_ah/login"; + "?continue=" +
> URLEncoder.encode(_gaeAppBaseUrl, "UTF-8") + "&auth=" +
> URLEncoder.encode(authToken, "UTF-8");
>
> The auth cookie is "ACSID"
>
>    Fabrizio
>
> On Mon, Jan 10, 2011 at 10:04 AM, Sky wrote:
>
> > Hello,
> > does anyone know how to use Restlet in combination with OAUTH on GAE
> > and Android? I
> > searched the web and did not found any useful documentations or
> > tutorial. Seems like this is not supported anymore?
>
> > What I want to do is connecting Android to Google App engine. On App
> > engine I want to use the Google user service
> > (userServiceManager.isUserLoggedIn()), to authenticate the user with
> > his Google Account.
>
> > Here is my Restlet Server Code, which works well:
> > public class UploadServerApplication extends Application {
> >     �...@override
> >          public Restlet createInboundRoot() {
> >              Router router = new Router(getContext());
>
> > getConnectorService().getClientProtocols().add(Protocol.FILE);
> >             router.attachDefault(UploadServerResource.class);
> >            return router;
> >  }
> > }
> > Resource:
> > UploadServerResource extends ServerResource implements UploadResource
> > {
> > public UploadResult upload(UploadData uploadData) {
> >  UserService userServiceManager =
> > UserServiceFactory.getUserService();
> >  boolean authenticated = userServiceManager.isUserLoggedIn();<---
> > always false in my tests!
> >  if (authenticated) { ...  result.setSuccess(true); }
> >  else { ...result.setSuccess(false);   }
> >  return result;
> > }
> > -
> > Android client code (where is the place to set Google OAuth Cookie??):
> > ClientResource cr = new ClientResource("http://192.168.1.4:/
> > upload");
> > UploadResource resource = cr.wrap(UploadResource.class);
> > UploadData uploadData = new UploadData();
> > ...
> > UploadResult result = resource.uploadTrack(uploadData);
> > ...
>
> > --
> > 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] Re: Restlet, GAE, Android and Google Account authentication (oauth)

2011-01-11 Thread Fabrizio Accatino
Is this the ClientResource class you use?
http://www.restlet.org/documentation/2.0/jse/api/org/restlet/resource/ClientResource.html

If yes,  ClientResource class has a setCookies method.
Get the auth cookie from GAE and then set it.


Also Request has setCookie
http://www.restlet.org/documentation/2.1/gwt/api/org/restlet/client/Request.html


Let me know if it works.



Fabrizio



On Tue, Jan 11, 2011 at 12:55 PM, Sky wrote:

> yes, that would be the way with simple httpClient. Maybe there is a
> way to couple the HttpClient with Restlet? It seems not to be
> documented...
>
> Maybe there is a way to use Restlet API or another Rest client library
> to do that above?
>
> 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-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: Massive Problems with CPU/Guice Servlet and Channel API

2011-01-11 Thread Moishe
On Jan 10, 1:29 am, Flori  wrote:
> Hi Moishe,
>
> little reminder ;) could you take a look over?

Sorry about that, got distracted by the holidays :) Taking a look
now...

-- 
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: Restlet, GAE, Android and Google Account authentication (oauth)

2011-01-11 Thread Sky
I fetched the auth cookie from GAE and then set it like you described
above. The Cookie from Apache httpClient (org.apache.http) must be
copied to Restlet Cookie org.restlet.datam, but it works.
I used the following code to set the cookie:
  org.restlet.data.Cookie c =  new org.restlet.data.Cookie();
  c.setDomain(cookieGAE.getDomain());
  c.setName(cookieGAE.getName());
  c.setPath(cookieGAE.getPath());
  c.setValue(cookieGAE.getValue());
  c.setVersion(cookieGAE.getVersion());
  cr.getCookies().add(c);

This works and authentication is successfully. Thanks a lot for your
help!

I wonder, if there are attempts to include the oauth authentication
process within Restlet? This would make the implementation on Android
side more easily.

On 11 Jan., 14:10, Fabrizio Accatino  wrote:
> Is this the ClientResource class you 
> use?http://www.restlet.org/documentation/2.0/jse/api/org/restlet/resource...
>
> If yes,  ClientResource class has a setCookies method.
> Get the auth cookie from GAE and then set it.
>
> Also Request has 
> setCookiehttp://www.restlet.org/documentation/2.1/gwt/api/org/restlet/client/R...
>
> Let me know if it works.
>
> 
> Fabrizio
>
> On Tue, Jan 11, 2011 at 12:55 PM, Sky wrote:
>
> > yes, that would be the way with simple httpClient. Maybe there is a
> > way to couple the HttpClient with Restlet? It seems not to be
> > documented...
>
> > Maybe there is a way to use Restlet API or another Rest client library
> > to do that above?
>
> > 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-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: Massive Problems with CPU/Guice Servlet and Channel API

2011-01-11 Thread Moishe
Hi Flori - one thing I noticed is that your token has a carriage
return embedded in it. I believe this is causing the base64 decoding
of the token to fail. Can you strip out the CR and see if your code
starts working?  Let me know either way.

I'll work on getting a more informative exception thrown when this
happens.

Thanks!

-Moishe

-- 
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] Task queue + datastore transaction + jdo: is it possible?

2011-01-11 Thread Fabrizio Accatino
Hello,

documentation tells I can insert a task in queue during a datastore
transaction.
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions

The example uses datastore low level api. Is there a way to do the same with
JDO?

Thank you

   Fabrizio

-- 
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: JDO - Set property question

2011-01-11 Thread datanucleus
> That is incorrect. You can specify a filter using the == with a single value
> and a list or set such as

You mean AppEngine allows you to; this doesn't mean it is correct to
do that. JDOQL prohibits it (see the spec). JDOQL follows Java, and
the syntax Matthew gave is the valid one, not this. If you want your
query to work reliably with any future version you ought to use
Collection.contains() syntax.

-- 
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] Cygwin Vista Newbie

2011-01-11 Thread Dave Watts
> Error Message from Cygwin:
> Juan-PC /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/samples
> $ ndk-build
> Android NDK: Could not find application project directory !
> Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
> /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/build/core/build-local.
> mk:85: *** Android NDK: Aborting    .  Stop.
>
> System Variable :     NDK_PROJECT_PATH
> Variable value  :     
> ;C:\Users\Juan\Desktop\NDK\NDK5.0\android-ndk-r5\build\core\build-local.mk
> Runing Windows Vista
>
> What's wrong with the NDK_PROJECT_PATH

This is the wrong forum, but it looks like you have a semicolon in
front when you shouldn't. If that's not the cause, are you sure this
is a system environment variable rather than a user environment
variable that maybe isn't available to Cygwin?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

-- 
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: "SQL injection" on App Engine ?

2011-01-11 Thread datanucleus
And that is the developer who has left it open to that. Any sane
developer would have put "parameters" in the query

>     String q = "select from Employee where managerID == :user && lastName == 
> :name";

and there any vulnerability disappears. :-P
Besides which the query written like that would also optimise far
better

-- 
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] Unable to add a new servlet in Google Web Application Project.

2011-01-11 Thread praveenesh kumar
Hello everyone..!!

I am newbie to GAE. I am using Eclipse 3.5.1 . I have download the plugins
also. I am able to run ad deploy simple hello world project on GAE without
using GWT.

I was reading some tutorial on GAE on net. It was written to create a new
servlet.
I am not using GWT. But whenever I am trying to create a new servlet by
right clicking on my src folder (src-> new -> Servlet, I am not able to see
any project in WEB PROJECT listing. However, if I create normal dynamic web
application project, I am able to create servlets using this method. But in
case of GAE, its not working.

Can anyone help me , how to create servlet in Google web application project
without using GWT ?

or

Do I have to do it manually without using Eclipse ?

Thank you.

-- 
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] datanucleus error = gxt+gwt+appengine+jpa+datanucleus

2011-01-11 Thread Miuler
=
English:
When I extend a class gwt being in eclipse+appengine+gwt+gxt+jpa the
system gives an error me, it says to me that it does not find .class
of the right class the one that extends gxt, if I extend some of gwt
does not complain the code source the example is in 
https://bitbucket.org/Miuler/gwtjpa
and the error is this:


Spanish:
Cuando extiendo una clase gwt estando en eclipse+appengine+gwt+gxt+jpa
el sistema me da un error, me dice que no encuentra el .class de la
clase justo la que extiende gxt, si extiendo alguna de gwt no se queja
el codigo fuente del ejemplo se encuentra en https://bitbucket.org/Miuler/gwtjpa
y el error es este:


HTTP ERROR 500

Problem accessing /test. Reason:
INTERNAL_SERVER_ERRORCaused by:

java.lang.ExceptionInInitializerError at
com.miuler.example.TestHello.doGet(TestHello.java:12) 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)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166) 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
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:349) 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 org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923) at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409) at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582) Caused by:
javax.persistence.PersistenceException: Provider error. Provider:
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider at
javax.persistence.Persistence.createFactory(Persistence.java:176) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
112) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
66) at com.miuler.example.EMF.(EMF.java:7) ... 28 more Caused
by: org.datanucleus.exceptions.NucleusUserException: Clase "pruebadb"
descubierto para ser parte del persistence-unit "{1}"; cargandolo at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
787) at
org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFactoryImpl.java:
488) at
org.datanucleus.jpa.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:
355) at
org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.(DatastoreEntityManagerFactory.java:
63) at
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory(DatastorePersistenceProvider.java:
35) at javax.persistence.Persistence.createFactory(Persistence.java:
172) ... 31 more Caused by:
org.datanucleus.exceptions.ClassNotResolvedException: �La clase
com.miuler.example.client.BugWindow no esta en el CLASSPATH!. Por
favor compruebe la especificaci�n y el CLASSPATH. at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
250) at
org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:
415) at
org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManager.java:
767) ... 36 more Caused by:

javax.persistence.PersistenceException: Provider error. Provider:
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider at
javax.persistence.Persistence.createFactory(Persistence.java:176) at
javax.persistence.Persistence.

[appengine-java] Utility to delete the persisted _ah_SESSION records

2011-01-11 Thread Jags
Hi,
By mistake I have included the true in appengine-web.xml
due to which it is persisting all the session values in data store. Is
there a utility do delete all these records.
GQL has only select.
Please let me know at the earliest.

Thank you
Jags

-- 
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] Regarding @Column annotation

2011-01-11 Thread spike
Hi,
  I have a class as shown below in my Google App engine datastore. I
need to define the size limit for the fields, like name field i want
to set a particular size-limit of 5. I tried to put @Column(length=5)
but still it is accepting names whose length is more than that. I
tried to create package.jdo and define things in that but its not
reading
from it. Doesn't Google App engine support package.jdo(code is given
below)? None of the documentation given by Google specifies anything
related to it. How can I handle the size?

//POJO code-
public class UserDetails {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key user_id;
@Persistent
@Column(length=5)
private String Name;
@Persistent
private String login_id;
@Persistent
private String userRole;
@Persistent
private String userPassword;
@Persistent
private Date creationDate;
//.


//package.jdo code..




















   









-- 
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] Exception persisting 2 entities (without transaction)

2011-01-11 Thread frank
Hello,

I´m new to GAE and I have a problem with the datastore.

I add 2 new entities not in a transaction and I get the Exception:
javax.persistence.PersistenceException: Illegal argument
at
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForJDOException(NucleusJPAHelper.java:
214)

Caused by: java.lang.IllegalArgumentException: can't operate on
multiple entity groups in a single transaction. found both Element {
  type: "En"
  id: 1
}

 and Element {
  type: "En"
  id: 2

}

I know the two entities are not in the same entity group, but I
persisted them not in a transaction.

here is the code:
---
public class CreateSomeObjects
{
  private final LocalServiceTestHelper helper =
  new LocalServiceTestHelper(new
LocalDatastoreServiceTestConfig());

  public CreateSomeObjects()
  {}

  @Before
  public void setUp()
  { helper.setUp(); }

  @After
  public void tearDown()
  { helper.tearDown();  }

  @Test
  public void createWithoutTA1()
  { try
{ EntityManager em = Gae.emfInstance.createEntityManager();
  En e;
  e=new En("Number1");
  em.persist(e);
  e=new En("Number2");
  em.persist(e);
  em.close();
} catch (Exception ex)
{ ex.printStackTrace();
  fail("unerwartete Exception: "+ ex.getMessage());
}
  }
}

---
@Entity
public class En implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Key id;
  private String name;

  public En()
  {}

  public En(String name)
  { this.name = name; }

  public Key getId()
  { return id; }
  public void setId(Key id)
  { this.id = id; }
  public String getName()
  { return name; }
  public void setName(String name)
  { this.name = name; }
}

-- 
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] Google app engine for business needs

2011-01-11 Thread joe kolba
Hi,
I am relatively new to GWT.  I am a developer / engineer currently
working on a GWT 2.0.4 project.  I was wondering if there is a way to
set up a App Engine locally on my own java server so I could compile
and deploy directly to our development and test servers straight out
of myeclipse.  I would really appreciate any advice and or comments on
how this can be done.  Please email me at joekolb...@gmail.com.

-- 
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] Storing data with JDO: order of keys in unowned one-to-many relationship

2011-01-11 Thread Dmitriy Korolkov
Hello!

I'm using Google App Engine Datastore with JDO. According to
documentation, in owned one-to-many relationships, order of elements
in "owner" object collection is determined either by automatically
created index field, or by information given in explicit ordering
clause. For example:

@PersistenceCapable
public class Person {
// ...
@Order(extensions = @Extension(vendorName="datanucleus",
key="list-ordering", value="country asc, city asc"))
private List contacts = new List();


In unowned relationships, "owner" object contains collection of keys
of "nested" objects, for example:

@PersistenceCapable
public class Author {
// ...
@Persistent
private List books;


The question is, is order of keys preserved, if List collection
is used for storing keys of "dependent" elements?
Generally, is order is preserved for persistent List fields?

Unfortunately, I could not find answer neither in JDO relationships
article (http://code.google.com/appengine/docs/java/datastore/jdo/
relationships.html), nor in Data Classes article (http://
code.google.com/appengine/docs/java/datastore/jdo/dataclasses.html).

Also, I found several contradicting answers in different discussion
threads in Google AppEngine group:
- 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/3c929893fee56083/3c621cb19273f9cd?lnk=gst&q=order
- 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/1ad8bc86ccc5d2ec/e94bdeaff1523b7c?lnk=gst&q=order
- 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/4580ede10e04f1c0/5c611cf1c09db51f?lnk=gst&q=order

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-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: JDO - Set property question

2011-01-11 Thread Stephen Johnson
I never stated whether it was valid per JDO spec. I just stated that Matthew
was incorrect and his explanation of why the syntax was incorrect was also
incorrect. This is an app engine forum so it was implied that the
incorrectness pertained to app engine. If you wish to point out differences
between the JDO spec and app engine please send that to Google. I didn't
write app engine.

On Sat, Jan 8, 2011 at 4:31 AM, datanucleus wrote:

> > That is incorrect. You can specify a filter using the == with a single
> value
> > and a list or set such as
>
> You mean AppEngine allows you to; this doesn't mean it is correct to
> do that. JDOQL prohibits it (see the spec). JDOQL follows Java, and
> the syntax Matthew gave is the valid one, not this. If you want your
> query to work reliably with any future version you ought to use
> Collection.contains() syntax.
>
> --
> 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] Re: "SQL injection" on App Engine ?

2011-01-11 Thread Fabrizio Accatino
I don't want to start a flame. I'd like to understand a bit more datastore
and jdo and how to use them better.  :)

So, the problem exists. Can you confirm?
I agree with you: it's a developer problem and not a jdo or datastore
problem. But it's the same as the classic sql injection attack: it's always
caused by developer error.

Last: on GAE the problem is very less important and mitigated than classic
sql. Infact in GAE you cannot inject the classic sql injection sequence like
" dummy' or '1'='1 ". But this is due to the fact that datastore is not able
to manage 1==1. So, as you wrote, it's important to use parameters and not
concatenated strings. Exactly the same as classic sql.   :)

Have I correctly understood?


   Fabrizio


On Sun, Jan 9, 2011 at 9:29 AM, datanucleus wrote:

> And that is the developer who has left it open to that. Any sane
> developer would have put "parameters" in the query
>
> > String q = "select from Employee where managerID == :user && lastName
> == :name";
>
> and there any vulnerability disappears. :-P
> Besides which the query written like that would also optimise far
> better
>
> --
> 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] Our experience with App Engine

2011-01-11 Thread Ikai Lan (Google)
Hey, thanks for this! I have a few points:

- Everyone seems to think the "other" language is better supported. Python
developers are paranoid that Java support means we are deprecating Python,
and Java developers have an impression that Python gets all the cool
features first. The fact is - neither is true. Keeping parity between
languages is just hard. Some features are developed in Python first, and
some in Java first, and we prefer to ship what we have instead of waiting
for the other to catch up. The biggest discrepancy you'll probably see is
tools: The Python SDK has vacuum_indexes and data migration tools.

- Availability: check out the new HR datastore.

- JRE whitelisting - yeah, every company we've talked to has mentioned this.
Unfortunately, every developer has different requirements. The whitelisting
process is a bit more involved, as there are many security issues that need
to be ironed out. I'd love to see the awt libraries available, personally.

- JDO - we've changed the documentation to show examples using the low-level
API and are working more closely with third-party library developers. We've
realized that there's a passionate community of open source developers out
there solving their own itch (itches that are likely shared by others), and
we're working on different ways of making it happen.

- Blobstore - Expect improvements in this area to be coming.

--
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 Tue, Jan 11, 2011 at 2:06 AM, Ingo Jaeckel
wrote:

> Hello,
>
> thanks for this great article! I agree with basically all you are
> saying in this post. Among other things I especially love the app
> versioning.
>
> Kind regards,
> Ingo
>
> 2011/1/11 Weespr :
> > Almost 2 years after embracing it. Hope feedback will be useful to
> people.
> >
> > http://weespr.blogspot.com/2011/01/our-experience-with-app-engine.html
> >
> > --
> > 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.
>
>

-- 
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: Unable to add a new servlet in Google Web Application Project.

2011-01-11 Thread Didier Durand
Hi,

You can create servlets without GWT:
 - you have to follow 
http://code.google.com/appengine/docs/java/runtime.html#Requests_and_Servlets
for a tutorial
 - you have to update web.xml for this servlet according to
http://code.google.com/appengine/docs/java/config/webxml.html#About_Deployment_Descriptors

don't hesitate if you have any more questions

regards

didier

On Jan 7, 7:19 pm, praveenesh kumar  wrote:
> Hello everyone..!!
>
> I am newbie to GAE. I am using Eclipse 3.5.1 . I have download the plugins
> also. I am able to run ad deploy simple hello world project on GAE without
> using GWT.
>
> I was reading some tutorial on GAE on net. It was written to create a new
> servlet.
> I am not using GWT. But whenever I am trying to create a new servlet by
> right clicking on my src folder (src-> new -> Servlet, I am not able to see
> any project in WEB PROJECT listing. However, if I create normal dynamic web
> application project, I am able to create servlets using this method. But in
> case of GAE, its not working.
>
> Can anyone help me , how to create servlet in Google web application project
> without using GWT ?
>
> or
>
> Do I have to do it manually without using Eclipse ?
>
> Thank you.

-- 
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: Task queue + datastore transaction + jdo: is it possible?

2011-01-11 Thread Didier Durand
Hi,

I personally do it with a higher-level 3rd party package (Objectify)
and it works.

Generally, my understanding is that you can associate transactionally
the insertion of a task in a queue and a transaction on the datastore
(whatever the interface to the datastore): if transaction commits,
tasks is inserted and then executed.If transaction rolls back, then
task is not inserted and not executed.

regards

didier

On Jan 11, 6:45 pm, Fabrizio Accatino  wrote:
> Hello,
>
> documentation tells I can insert a task in queue during a datastore
> transaction.http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...
>
> The example uses datastore low level api. Is there a way to do the same with
> JDO?
>
> Thank you
>
>    Fabrizio

-- 
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: Google app engine for business needs

2011-01-11 Thread Didier Durand
Hi,

You may try to instally AppScale (open source version of Ap Engine) if
you wish to replicate exactly App Engine: see
http://googleappengine.blogspot.com/2010/10/research-project-appscale-at-university.html
as starting point.

You have to be in a very specific situation to target this replication
of GAE: would a regular servlet server + database not satisfy your
needs ?

regards

didier


On Jan 10, 8:39 pm, joe kolba  wrote:
> Hi,
> I am relatively new to GWT.  I am a developer / engineer currently
> working on a GWT 2.0.4 project.  I was wondering if there is a way to
> set up a App Engine locally on my own java server so I could compile
> and deploy directly to our development and test servers straight out
> of myeclipse.  I would really appreciate any advice and or comments on
> how this can be done.  Please email me at joekolb...@gmail.com.

-- 
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: Google app engine for business needs

2011-01-11 Thread joe kolba
Hi,
Thank you for the help.  Currently our applications are using gwt with
smartgwt and google rpc.  We connect to external sql databases through a
JNDI C3P0 connection pool.  Not sure if AppScale will support any of that
but I will take a look at it.  Basically I just need a way to push code out
to our servers after we GWT compile, preferably within myeclipse.

On Tue, Jan 11, 2011 at 2:12 PM, Didier Durand wrote:

> Hi,
>
> You may try to instally AppScale (open source version of Ap Engine) if
> you wish to replicate exactly App Engine: see
>
> http://googleappengine.blogspot.com/2010/10/research-project-appscale-at-university.html
> as starting point.
>
> You have to be in a very specific situation to target this replication
> of GAE: would a regular servlet server + database not satisfy your
> needs ?
>
> regards
>
> didier
>
>
> On Jan 10, 8:39 pm, joe kolba  wrote:
> > Hi,
> > I am relatively new to GWT.  I am a developer / engineer currently
> > working on a GWT 2.0.4 project.  I was wondering if there is a way to
> > set up a App Engine locally on my own java server so I could compile
> > and deploy directly to our development and test servers straight out
> > of myeclipse.  I would really appreciate any advice and or comments on
> > how this can be done.  Please email me at joekolb...@gmail.com.
>
> --
> 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: JDO - Set property question

2011-01-11 Thread Matthew Adams
I didn't realize at the time I wrote that that it was an AppEngine-
specific extension, so we were both right, Stephen.  It is common, in
my travels at least, to discuss the standard versus specific
implementations' features separately.

Andy is right in that JDOQL is supposed to abide by the intentions of
Java, still, there are places where it is more in the spirit of a
query language than it is syntactical Java.  Perhaps the "==" operator
could be enhanced to make containment of an item in a
java.util.Collection or in a set of java.util.Map keys or values usage
standard.  I'll bring it up at the next JDO expert group meeting, each
of which, by the way, has been and will continue to be open to the
public (unlike certain other Java specs regarding persistence) and
occur every Friday at 12 PM EST via conference call.  Here are the
meeting details.

Here's the info in case anyone is interesting in listening in or
participating:

Dial-in numbers are:
US Toll free: 866 682-4770
Germany Frankfurt  06916106
Germany Toll free: 08006648515
(Other countries by request)

To place the call:
1. Call the toll free number.
2. Enter the conference number 939-3689#
3. Enter the security code #

The mailing list is also open to the public.  Subscribe at jdo-user-
subscr...@db.apache.org for users (for the dev list, it's jdo-dev-
subscr...@db.apache.org).  The API specification itself and TCK are
also in open source at Apache (also unlike certain other Java
persistence specs).  See http://db.apache.org/jdo, which just released
version 3.0 of JDO (which is still alive & well, despite what you may
have heard in the industry).  For the source & other info, see
http://db.apache.org/jdo/get-involved.html .  Also, the JIRA is
public, at https://issues.apache.org/jira/browse/JDO .

The JDO team welcomes your feedback & participation.  3.1 is underway.

-matthew

On Jan 11, 12:19 pm, Stephen Johnson  wrote:
> I never stated whether it was valid per JDO spec. I just stated that Matthew
> was incorrect and his explanation of why the syntax was incorrect was also
> incorrect. This is an app engine forum so it was implied that the
> incorrectness pertained to app engine. If you wish to point out differences
> between the JDO spec and app engine please send that to Google. I didn't
> write app engine.
>
> On Sat, Jan 8, 2011 at 4:31 AM, datanucleus wrote:
>
>
>
> > > That is incorrect. You can specify a filter using the == with a single
> > value
> > > and a list or set such as
>
> > You mean AppEngine allows you to; this doesn't mean it is correct to
> > do that. JDOQL prohibits it (see the spec). JDOQL follows Java, and
> > the syntax Matthew gave is the valid one, not this. If you want your
> > query to work reliably with any future version you ought to use
> > Collection.contains() syntax.
>
> > --
> > 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.- Hide quoted 
> >text -
>
> - Show quoted text -

-- 
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] FYI & slightly OT: JDO information

2011-01-11 Thread Matthew Adams
Hi all,

I mentioned in another thread (http://groups.google.com/group/google-
appengine-java/browse_thread/thread/e519b0eb28568a94/
e2f7a01f4e0d92b1), in response to a JDOQL question, that the JDO
specification, still under active development, has been open to the
public for many years now.  While DataNucleus is the open source
reference implementation, the API itself as well as the TCK have been
in open source at Apache for a long time.

Everyone is welcome to attend the conference calls as a lurker or
participant, contribute enhancement requests, issues & patches, and
download & build the source for the API & TCK.  The conference calls
are held weekly on Fridays at noon EST.  Here are the meeting details.

Dial-in numbers are:
US Toll free: 866 682-4770
Germany Frankfurt  06916106
Germany Toll free: 08006648515
(Other countries by request)

To place the call:
1. Call the toll free number.
2. Enter the conference number 939-3689#
3. Enter the security code #

The mailing list is also open to the public.  Subscribe at jdo-user-
subscr...@db.apache.org for users (for the dev list, it's jdo-dev-
subscr...@db.apache.org).  For the API specification itself and TCK,
see http://db.apache.org/jdo, We just released JDO 3.0.  For the
source & other info, see http://db.apache.org/jdo/get-involved.html .
Also, the JIRA is public at https://issues.apache.org/jira/browse/JDO
.

An issue entered recently (by me) might have particular relevance to
GAEJ users:  "Modify specification to address NoSQL datastores" at
https://issues.apache.org/jira/browse/JDO-651 .

The JDO team welcomes your feedback & participation.  3.1 is
underway.  Join in!

-matthew

-- 
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: Task queue + datastore transaction + jdo: is it possible?

2011-01-11 Thread Ed Murphy
Yes, I do this with JDO.  Just add to you queue within the current
transaction, for instance;

PersistenceManager pm = PMF.get().getPersistenceManager();
try
{
//
// start transaction so we can atomically check the secondary key
//
pm.currentTransaction().begin();

//
// enqueue a task to process this ImportTask
//
//
String theUrl = "/tasks"; // whatever your url will be - this is is
your state;
Queue queue = QueueFactory.getDefaultQueue();
queue.add(

DatastoreServiceFactory.getDatastoreService().getCurrentTransaction(),
TaskOptions.Builder.url(theUrl));

//
// commit the transaction.
//
pm.currentTransaction().commit();   // we finished, so commit the
transaction.
}
catch(DataAccessException dae)
{
throw dae;  // let prior DataAccessException leave.
}
catch(Exception e)
{
throw new DataAccessException(e);   // wrap the exception in our
runtime exception.
}
finally
{
//
// if the transactions is still active, then there
// was an exception thrown.  So we rollback the transaction.
//
if(pm.currentTransaction().isActive())
{
pm.currentTransaction().rollback();
}

//
// we always close the PersistenceManager when done.
//
if(!pm.isClosed())
{
pm.close();
}
}


On Jan 11, 10:45 am, Fabrizio Accatino  wrote:
> Hello,
>
> documentation tells I can insert a task in queue during a datastore
> transaction.http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...
>
> The example uses datastore low level api. Is there a way to do the same with
> JDO?
>
> Thank you
>
>    Fabrizio

-- 
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] Our experience with App Engine

2011-01-11 Thread George Moschovitis

>
> - JDO - we've changed the documentation to show examples using the 
> low-level API and are working more closely with third-party library 
> developers. We've realized that there's a passionate community of open 
> source developers out there solving their own itch (itches that are likely 
> shared by others), and we're working on different ways of making it happen.
>

Interesting, haven't noticed the changes in the docs (maybe a 'New!' marker 
would help). It seems that the low level API is in the spotlight now.
No problem with that, but I 'd love to see improved support for static 
typing (most probably through generics) in the API.

-g.

-- 
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: Unable to navigate my app in production server, while in development server works fine

2011-01-11 Thread Markel Arizaga
I'm still trying to make my app work in GAE server but I don't find answers.

I tried removing all the info from web.xml except the welcome file entry. 
According to what I have understood reading the forums, that way, I can 
access my jsp files typing directly it's URL, for example: 
myapp.appspot.com/shop/shop.jsp. Once again, it work fine in development 
server but chashes in production server.

This time, when I access to the pages the message from the browser is this 
one: 
Error: Server Error The server encountered an error and could not complete 
your request.

If the problem persists, please 
reportyour problem and mention 
this error message and the query that caused it.

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.



Re: [appengine-java] Full Text Search Status?

2011-01-11 Thread Ikai Lan (Google)
The roadmap is the final word for what's going to come out:

http://code.google.com/appengine/docs/roadmap.html

I suspect full text search will be added to the roadmap at some point in the
near future.

--
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, Jan 3, 2011 at 4:30 PM, jones34  wrote:

> Hi Google.
>
> 15 months ago, you guys changed the status of the Full Text Search
> issue to "started" to great applause, which is not surprising since
> it's the second-most-starred issue for App Engine.
>
> It's issue 217, btw.
>
> http://code.google.com/p/googleappengine/issues/detail?id=217&q=search&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log
>
> 15 months is a long time in development terms (and an even longer time
> to anyone trying to build a business on this platform) and it's not
> even on the product roadmap.
>
> http://code.google.com/appengine/docs/roadmap.html
>
> So, status please?  Are you working on it? Is it coming soon? Did you
> give up?
>
> 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-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: Unable to navigate my app in production server, while in development server works fine

2011-01-11 Thread Charms Styler
I also came across an error while defining jsp-file servlet mappings into 
web.xml just like what have you done.

Anyway I suggest you check the logs on your appengine application. You 
should be able to see a stack-trace of the failure. could u post it?
for more info refer http://code.google.com/appengine/articles/logging.html

-- 
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] Unable to update

2011-01-11 Thread Jeevan
hello all,
I am uploading an sample application to google app engine, which
consists of Google mail api,
this is the error i am getting while updating to the google app
engine.

java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=testingmpmail&version=1&;
401 Unauthorized
Must authenticate first.

at
com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
149)
at
com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
82)
at
com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
582)
at
com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
400)
at
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
112)
at
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
56)
at
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
146)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

-- 
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] Unable to send mail

2011-01-11 Thread Jeevan
Hello all,
I have a application which uses google mail api which is included in
the java servlet. The servlet has to send mails to the registered
users. I am using Eclipse IDE but its not giving me any error.
http://code.google.com/appengine/docs/java/mail/usingjavamail.html
this is the api i am using.

-- 
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] Unable to deploy in google app engine.

2011-01-11 Thread aptest1 actiprocess
Hello All,
i am using java as my app engine language and some jsp.
It works fine in eclipse but when i am trying to deploy into app engine i am 
getting fallowing error.

 Initiating update.
java.io.IOException: Error posting to URL: 
https://appengine.google.com/api/appversion/create?app_id=smartscanact&version=8&;
400 Bad Request
Error when loading application configuration:
Unable to assign value '\..*\.jsp' to attribute 'url':
Value '\..*\.jsp' for key url does not match expression 
'^(?!\^)/|\.|(\(.).*(?!\$).$'


Debugging information may be found in 
C:\Users\AP3\AppData\Local\Temp\appengine-deploy7551389042936237499.log

Thanks in advance
sanjay

-- 
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] Unable to send mail

2011-01-11 Thread Amit Pandey
Hi Jeevan,

There are certain thing which you need to remember for using mail API-


   1. Sender address must be any of the owner email of application.
   2. Mail will be send only when you deploy the code to App Engine. It does
   not work locally.
   3. Make sure Sun mail API is not in your build path.

 Thanks,
  Amit


On Wed, Jan 12, 2011 at 10:37 AM, Jeevan  wrote:


> Hello all,
> I have a application which uses google mail api which is included in
> the java servlet. The servlet has to send mails to the registered
> users. I am using Eclipse IDE but its not giving me any error.
> http://code.google.com/appengine/docs/java/mail/usingjavamail.html
> this is the api i am using.
>
>

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