Re: [appengine-java] Re: 404 for app thats deployed successfully.

2011-10-07 Thread Manilal K M
On 6 October 2011 11:27, Nichole  wrote:
> 2 things to fix in your web.xml:
> --param-value should be single valued
> --url-pattern ExampleApp/* should be changed.
>    url-pattern has the following rules
>       path mapping:      starts with /, ends with /*
>       extension mapping: begins with *.
>       "default" servlet: single character /
>       all other strings are exact matches only
>
> The loader (appengine-tools) validates all other xml content against
> schemas
> except for the web.xml against the web-app_2_5.xsd schema, at least as
> of sdk 1.5.2...

Thanks for your suggestion, but unfortunately it didn't worked in
GAE(It worked in eclipse and ant). Here is the modified web.xml. Am I
missing something else?


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
version="2.5">


springSecurityFilterChain

org.springframework.web.filter.DelegatingFilterProxy



springSecurityFilterChain
/*



contextConfigLocation
/WEB-INF/spring/*.xml





org.springframework.web.context.ContextLoaderListener



dispatcher

org.springframework.web.servlet.DispatcherServlet

contextConfigLocation

/WEB-INF/spring/servlet-config.xml

1


dispatcher
/ExampleApp/*


index.jsp




-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.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-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] Help with sharded counters and loading results.

2011-10-07 Thread Gerald Tan
That's 50k reads every 5 minutes if applied to dnkoutso's use case, which 
could hurt a bit.

The alternative I've mentioned may be cheaper if the number of items tracked 
is very large compared to the frequency of the count increments. I believe 
my method incurs 6 write ops per increment (1 + 2 to index the referenced 
entity, multiply by 2 since the increment will be deleted when flushed), but 
each flush will only update the entities that have their counts changed. If 
live count is not necessary, then the write ops can be reduced to 2 as the 
referenced entity does not have to be indexed.

-- 
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/-/jVgX1mjV5RMJ.
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] Re: 404 for app thats deployed successfully.

2011-10-07 Thread Manilal K M
I forgot to add all the configuration files in my earlier email:

WEB-INF/web.xml:
http://pastie.org/2654599

WEB-INF/spring/application-config.xml
http://pastie.org/2654607

WEB-INF/spring/servlet-config.xml
http://pastie.org/2654618

WEB-INF/spring/spring-security.xml
http://pastie.org/2654633

Welcome file
http://pastie.org/2654645

I have spend almost one week on this error, but couldn't track the
root cause. As I said earlier the application works fine in eclipse
and ant with the above configurations. It seems I'm missing something
very trivial. Any help would be highly appreciated.

thanks
-- 
Manilal K M : മണിലാല്‍ കെ എം.
http://libregeek.blogspot.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-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] Calling app script from app engine

2011-10-07 Thread Vik
Hie

I have a google app script which I want to invoke from google app engine for
java. Can someone please guide on how to invoke such script?

I tried to google and i found lot of information on how to do the reverse.

Please advise
Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

-- 
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: Memcache objects remain only 5 minutes

2011-10-07 Thread Peter Nees
Thanks, examination of these statististics learned me that had during the 
handling of one service call multiple (unnecessary) puts and gets of the 
same object to memcache. I changed this that I have maximum one read, and 
one put. Avoiding this unnecessary activity increased the time in cache 
significantly (many hours now).

-- 
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/-/JzlHxGVgAuAJ.
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: Mobile subdomain in app engine

2011-10-07 Thread WillSpecht
I was looking for an easy way to do this once and make it work for the
whole site.  Now I realize I'm going to have to go into every servlet
and have it choose which jsp to display.

On Oct 6, 6:43 pm, WillSpecht  wrote:
> My real problem is that I can't figgure out how to show war/mobile/
> home.jsp when a user types in m.mydomain.com/home.
>
> On Oct 6, 5:55 pm, Nichole  wrote:
>
>
>
>
>
>
>
> > I should add that my simplified model above uses the given static
> > examples without a redirect to a /site/mobile.
> > By 'design for all viewports' I mean design to use floating right divs
> > when possible...
>
> > On Oct 6, 2:50 pm, Nichole  wrote:
>
> > > I'm not using a pseudo-2-site model myself anymore as I recently
> > > simplified my structure.
> > > For SDK 1.5.2 I had errors upon submitting for deployment more than
> > > static 100 files, so keep that in mind.
> > > If SDK 1.5.5 increased the max of number of static files to be
> > > uploaded, or your files are within limit,
> > > next keep in mind that appengine implementation of
> > > javax.Servlet.Filters work upon dynamic
> > > content (filters are not applied to static content at this time).
> > > So if you need to sense the user agent on server-side using your
> > > library of preference, make sure that
> > > your welcome file is a jsp file in order for your browser agent filter
> > > to intercept
> > > up the request.
> > > If you are instead using a static html file that includes javascript
> > > to sense the
> > > viewport size (= document.width) and then redirect, you won't need to
> > > use a javax.servlet.Filter
> > > and can replace the welcome file with your index.html instead
> > > (caveat is that if you advertise, you won't be able to use that
> > > default url as it will now result in a redirect).
>
> > > Here's how it could work w/ welcome file index.html:
>
> > > If you had webapp directories:
> > >     /site/
> > >     /site/mobile/
>
> > > in appengine-web.xml use:
> > >    /site
> > >    
> > >         
> > >         
> > >         
> > >         
> > >     
>
> > > in web.xml use:
> > >     
> > >         404
> > >         /error.html
> > >     
> > >     
> > >         index.html
> > >     
>
> > > I'll leave the app version that uses an index.jsp welcome file and a
> > > browser agent filter up to you, but it should work similarly.
>
> > > On Oct 6, 7:10 am, WillSpecht  wrote:
>
> > > > Things will be slightly different on the mobile site.  I have checked
> > > > out jquery mobile and its how I want to write the mobile site.  I
> > > > think the layout of the two sites will be too different to do on one
> > > > page.
>
> > > > On Oct 5, 9:49 pm, Nichole  wrote:
>
> > > > > Have you thought of designing for all viewports from the start instead
> > > > > of a redirect?
> > > > > see the new jquery library
>
> > > > >    http://jquerymobile.com
>
> > > > > On Oct 4, 11:57 am, WillSpecht  wrote:> Can 
> > > > > someone give me a basic rundown of how to set up a mobile site on
> > > > > > app engine. I already have a standard site set up but I want to use
> > > > > > the same data store to run a mobile site.
>
> > > > > > I would like to redirect mobile users to m.mydomain.com. Basically
> > > > > > both sites will be the same I just want to show them different jsp
> > > > > > pages.

-- 
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] Prerelease SDK 1.5.5 available for download!

2011-10-07 Thread Raphael André Bauer
On Mon, Oct 3, 2011 at 9:40 PM, Ikai Lan (Google)
 wrote:
...
> - We have increased the size limit for a single file uploaded to App Engine
> from
>   10MB to 32MB.

Great news :)

I just played around a bit with the new features of the java sdk and I
am (still) getting a
java.lang.IllegalStateException: Found a file too large to upload: ...
Must be under 1000 bytes.

Can anybody confirm this? The file in question is around 11MB...


Thanks - keep up the great work :)


Best,


Raphael

-- 
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] Prerelease SDK 1.5.5 available for download!

2011-10-07 Thread Gerald Tan
It's a pre-release, so my guess is the server doesn't have it yet

-- 
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/-/oQfnvDDN31gJ.
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: Memcache objects remain only 5 minutes

2011-10-07 Thread Peter Nees
Thanks, examination of these statististics learned me that had during the 
handling of one service call multiple (unnecessary) puts and gets of the 
same object to memcache. I changed this that I have maximum one read, and 
one put. Avoiding this unnecessary activity increased the time in cache 
significantly (many hours now).

-- 
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/-/6jwnyeDooosJ.
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: Memcache objects remain only 5 minutes

2011-10-07 Thread Peter Nees
Thanks, examination of these statististics learned me that had during the 
handling of one service call multiple (unnecessary) puts and gets of the 
same object to memcache. I changed this that I have maximum one read, and 
one put. Avoiding this unnecessary activity increased the time in cache 
significantly (many hours now).

-- 
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/-/wVC4RyMfmwYJ.
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] Fwd: One-To-Many RElations Serialization

2011-10-07 Thread Bruno Sandivilli
-- Forwarded message --
From: Bruno Sandivilli 
Date: 2011/10/7
Subject: Re: One-To-Many RElations Serialization
To: google-web-tool...@googlegroups.com


PersistenceManager pm = PMF.get().getPersistenceManager();
javax.jdo.Query query = (javax.jdo.Query) pm.newQuery(Objetos.class);
 query.setFilter("name == nameParam");
query.declareParameters("String nameParam");
 List listaMyInnerList = new ArrayList();
List listaMyMainList  = (List) query.execute(nameParam);
 if(listaMyMainList .size() > 0)
{
listaMyInnerList.addAll(listaMyMainList.get(0).getMyInnerList());
 }
return new ArrayList(listaMyInnerList);
or
   return listaMyInnerList;
it gives the same error of Type 'org.datanucleus.sco.backed.ArrayList'

anyone?

2011/10/7 Bruno Sandivilli 

> Thanks Buddy!
> But if i'm not using Hibernate? I'm using pure GWT, do i have to use the
>  in web.xml? How can i achieve this? Thanks
>
>
> 2011/10/7 Juan Pablo Gardella 
>
>> You can see the same problem but with hibernate 
>> here.
>> In this page show some strategies to resolve the problem. In my case I don't
>> adopt this strategies. I do a filter. In Pro Web 
>> 2.0explain
>>  the use of a
>> *filter*. A class that, in your case, for example convert
>> org.datanucleus.sco.backed.List in java.util.List. This filter intercept the
>> classes before send to client. Here
>> you
>> have an example of a Hibernate filter compatible with GWT 2.4.0 and how
>> integrate in a sample project.
>>
>> Juan
>>
>>
>>
>> 2011/10/7 Bruno Sandivilli 
>>
>>> How can i serializa this List ?
>>>
>>>
>>> 2011/10/7 Juan Pablo Gardella 
>>>
 What's your question?

 2011/10/6 Bruno Sandivilli 

>  I'm getting this error when my RPC returns a list of a custom object:
> Type 'org.datanucleus.sco.backed.List' was not included in the set of
> types which can be serialized by this SerializationPolicy or its Class
> object could not be loaded. For security purposes, this type will not be
> serialized.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To post to this group, send email to
> google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

  --
 You received this message because you are subscribed to the Google
 Groups "Google Web Toolkit" group.
 To post to this group, send email to
 google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-tool...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?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.