Raj,
I have not tried to create a service as you did, I did it with a judo pojo.

can you please try the steps I suggested, using a
pojo , very simple one, then when it works modify the service to ignore the
pojo and see what happens.
On Jul 17, 2012 3:08 AM, "YatiRaj B" <[email protected]> wrote:

> Hello Kevin,
>
> It didn't work for me :(
>
> I'm working on HP 64bit WIndows Vista. Is that a problem for some reason?
> Not sure!
>
> Here's what I have/did:
>
>    1. I have everything latest: Juno, GPE 1.7 etc
>    2. The system did behave as explained by you when I changed Facet to
>    1.6
>    3. After the errors are gone, I right clicked the *Project* -> Google
>    -> Generate Cloud Endpoint and it gave me error.
>    4. I know this is *not *what you told. But I tried as it was on Google
>    IO video
>    5. As per your suggestion, I clicked on *POJO*->Google->Generate Cloud
>    Endpoint and it gave me error: *This is not a JDO/JPA entity class*
>    6. Of course it is not. But isn't it supposed to do on any class I
>    want a service from (as long as I've the API annotations)?
>    7. I'm pasting my example classes here below. Basically I created a
>    class which accepts a number and returns the square of it. And another
>    class that will work as my "Servlet" if I were to write a servlet: this
>    takes the number from client requests and creates a square class with this
>    number and gets the square of the number.
>
> *POJO Square:*
> public class Square {
>
> int var;
> int square;
>  public Square(int var) {
> this.var = var;
>  this.square = var * var;
> }
>
> public int getVar() {
>  return var;
> }
>
> public void setVar(int var) {
>  this.var = var;
> setSquare(var * var);
> }
>
> public int getSquare() {
> return square;
> }
>
> private void setSquare(int square) {
> this.square = square;
>  }
> }
>
>
> *POJO SquareEndPoint:*
> @Api(name = "square")
> public class SquareEndpoint {
>
> @ApiMethod(name = "square.getSquare")
>  public int getSquare(int number){
> Square sq;
> sq = new Square(number);
>  return sq.getSquare();
> }
> }
>
>
> I'll try on actual JDO/JPA class very soon. It may work but my other
> question remains: storing to DataStore may not me my only intention to
> create these endpoints. I might provide such simple service as: Celsius
> to Fahrenheit etc... But that's a different question. Let me 1st get this
> working! :)
>
> your views on it?
>
> Thank you!
> Raj.
>
>
> On Tue, Jul 17, 2012 at 9:32 AM, YatiRaj B <[email protected]> wrote:
>
>> Hi Kevin,
>>
>> Deeply appreciate your reply as promised! :)
>>
>> I'll check if it works for me very soon today and let you know... just
>> started the day :P
>>
>> Thanks again!
>> Raj.
>>
>>
>>
>> On Tue, Jul 17, 2012 at 1:27 AM, Kevin Moore <[email protected]> wrote:
>>
>>> As Promised...
>>>
>>>
>>> For some reason... do the following...
>>>
>>> *Assumptions..*
>>>
>>>    - You have the Latest Eclipse(Juno)
>>>    - You have installed all the latest APPEngine SDK 1.70
>>>    - You have Java SDK 1.70 at least..
>>>    - You Created a POJO
>>>    - You Generated your endpoint class by right-clicking on the
>>>    POJO->Google->Generate Cloud Endpoint Class
>>>
>>>
>>> *The symptoms...you are experiencing*
>>> When you right mouse click on the
>>> project then Google->Generate Cloud Endpoint Client Library...
>>> you get a quick flash and then nothing!!!
>>>
>>> *Solution*
>>> 1. Click on the menu bar of the IDE
>>>    Window->Show View->Navigator
>>> 2. This should take you to the Navigator Window.
>>> 3. Expanding the ".settings" folder in the Navigator window
>>>    under your project.
>>>  4. double-click the file "org.eclipse.wst.common.project.facet.core.xml"
>>> 5. It should look like what I have below... but probably yours says
>>> ..version="1.7"
>>> CHANGE IT TO "1.6" just like mine below...and save
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <faceted-project>
>>>   <installed facet="java" version="1.6"/>
>>> </faceted-project>
>>>
>>> 6. Your Project will the probably start to Complain
>>>     so click on the "Window->Show VIew->Problem" option and
>>>     choose to do the quick fix...
>>> 7. Your project will stop complaining...
>>>
>>> 8. Go back to Package Explorer and Google->Generate Cloud Endpoint
>>> Client Library
>>>    Again this should now work.
>>>
>>> BUT YOU WANTED TO TEST THE END POINTS
>>> LOCALLY...RIGHT?
>>>
>>> 9. Once you are running you projects locally...
>>> enter the following format on the url and..
>>>
>>> http://localhost:8888//_ah/api/X/v1/Y
>>> where X = @Api(name = "thenameyouputhere")
>>> and    Y =  your POJO name lowercase
>>> DONT forget the v1
>>> This should yield an empty JSON list!!!!
>>>
>>> but because you can do a POST from the url
>>> in your browser...
>>>
>>> To test all of the inputs, this is best done with "CURL" even on a
>>> Windows PC
>>> here is the link to get CURL
>>> http://www.paehl.com/open_source/?CURL_7.26.0
>>>
>>> 9. You only need for now the non-ssl version..
>>> you will need the SSL version when you are
>>> able to deploy to appengine... for now you will be testing locally...
>>>
>>> 10. once you have downloaded and installed curl ...
>>>       go to the curl folder do the following...
>>>
>>> 11.
>>> To ADD and Entry
>>> curl --header "Content-Type: application/json" -X POST -d
>>>  "{\"X\":\"Some New Value"}" "http://localhost:888/_ah/api/Yt/v1/Z";
>>> X = "Some Variable in your POJO that you Want to ADD (not the Identity)"
>>> where Y = @Api(name = "thenameyouputhere")
>>> and    Z =  your POJO name lowercase
>>> DONT forget the v1
>>>
>>> NOW repeat Step 9 then 11 again...
>>>
>>> Hope it helps, let me know either way ...
>>>
>>> On Mon, Jul 16, 2012 at 2:03 AM, YatiRaj B <[email protected]> wrote:
>>>
>>>> Wowwww! that's an exciting news!
>>>> Eagerly waiting for your reply! And thank you so much!! :)
>>>>
>>>> Best Regards,
>>>> Raj
>>>>
>>>>
>>>> On Mon, Jul 16, 2012 at 11:19 AM, Kevin Moore <[email protected]>wrote:
>>>>
>>>>> I thought so also but that turned out to not be the case, it is is
>>>>> late for me now I promise I will send email tomorrow with exactly how to
>>>>> get it working locally....
>>>>>  On Jul 16, 2012 1:46 AM, "YatiRaj B" <[email protected]> wrote:
>>>>>
>>>>>> Hi Kevin,
>>>>>>
>>>>>> I don't know how you would do that.
>>>>>>
>>>>>> After annotating appropriately as explained in Google IO video, when
>>>>>> I right click and do "generate Cloud Endpoints...", I'm getting and error
>>>>>> which doesn't tell anything about the error.
>>>>>> This is even before deploying.
>>>>>>
>>>>>> I guess it tries to contact Google for the creation of the libraries
>>>>>> (again as explained in Google IO video). And since I'm not granted 
>>>>>> Trusted
>>>>>> Tester access yet, it fails. Just my initial conclusion.
>>>>>>
>>>>>> If you know how to make it work alternatively, please let me know.
>>>>>>
>>>>>> Thanks in advance,
>>>>>> Raj
>>>>>>
>>>>>>
>>>>>> On Sun, Jul 15, 2012 at 10:14 PM, Kevin Moore <[email protected]>wrote:
>>>>>>
>>>>>>> On Thursday, July 12, 2012 12:05:35 PM UTC-4, Daryl Bergeron wrote:
>>>>>>> > +1. I signed up two days ago. Thought I might at least get a
>>>>>>> confirmation email that my request was received, but have not. Just 
>>>>>>> anxious
>>>>>>> to get started on it, and don&#39;t want my request to fall thru the
>>>>>>> cracks. Thanks.
>>>>>>> >
>>>>>>> > On Tuesday, July 10, 2012 3:14:08 PM UTC-5, AB wrote:<blockquote
>>>>>>> class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px 
>>>>>>> #ccc
>>>>>>> solid;padding-left:1ex">
>>>>>>> > How long will it take for Endpoints to be open (at least for
>>>>>>> testers)?</div>
>>>>>>> Daryl, and you could still test it locally with out deploying it...
>>>>>>> >
>>>>>>> >
>>>>>>> > </div></div>
>>>>>>> > </blockquote>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, July 12, 2012 12:05:35 PM UTC-4, Daryl Bergeron wrote:
>>>>>>> > +1. I signed up two days ago. Thought I might at least get a
>>>>>>> confirmation email that my request was received, but have not. Just 
>>>>>>> anxious
>>>>>>> to get started on it, and don&#39;t want my request to fall thru the
>>>>>>> cracks. Thanks.
>>>>>>> >
>>>>>>> > On Tuesday, July 10, 2012 3:14:08 PM UTC-5, AB wrote:<blockquote
>>>>>>> class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px 
>>>>>>> #ccc
>>>>>>> solid;padding-left:1ex">
>>>>>>> > How long will it take for Endpoints to be open (at least for
>>>>>>> testers)?</div>
>>>>>>> >
>>>>>>> >
>>>>>>> > </div></div>
>>>>>>> > </blockquote>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Thursday, July 12, 2012 12:05:35 PM UTC-4, Daryl Bergeron wrote:
>>>>>>> > +1. I signed up two days ago. Thought I might at least get a
>>>>>>> confirmation email that my request was received, but have not. Just 
>>>>>>> anxious
>>>>>>> to get started on it, and don&#39;t want my request to fall thru the
>>>>>>> cracks. Thanks.
>>>>>>> >
>>>>>>> > On Tuesday, July 10, 2012 3:14:08 PM UTC-5, AB wrote:<blockquote
>>>>>>> class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px 
>>>>>>> #ccc
>>>>>>> solid;padding-left:1ex">
>>>>>>> > How long will it take for Endpoints to be open (at least for
>>>>>>> testers)?</div>
>>>>>>> >
>>>>>>> >
>>>>>>> > </div></div>
>>>>>>> > </blockquote>
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Google Web Toolkit" group.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msg/google-web-toolkit/-/s2K21PwAzywJ.
>>>>>>> To post to this group, send email to
>>>>>>> [email protected].
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> [email protected].
>>>>>>> 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
>>>>>> [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected].
>>>>>> 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
>>>>> [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected].
>>>>> 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
>>>> [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected].
>>>> 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 [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to