Sorry for late reply...

there are few jars like
appengine-testing.jar
appengine-local-rutime-shared.jar etc.

Basically when you create a new GAE project the eclipse plugin copies
some jars automatically in war folder, which are required when you
will be running ur application on GAE server, but it doesnt copy few
test jars which are required only for local dev env and testing.

So what i did i compared jars in my war folder and GAE SDK installed
folder. I found that few of jars not included so i included all in my
Eclipse build path/Junit run path(but didnt copy into war folder) and
that worked for me and then i didnt care to check which were the jars
actually needed and which were not as i included all jars.

But somehow in docs they have mentioned to included only one or two
jars and with these jars junit doesnt work.


I hope it will help you.

Thanks,
Ravi.

On Jun 7, 5:43 am, brendan <[email protected]> wrote:
> Hi Ravi,
>   I have the same problem. Are you able to explain your solution in
> more detail?  What jars were not mentioned?
>
> On May 19, 6:55 pm, Ravi <[email protected]> wrote:
>
>
>
> > Finallyfoundthe problem that in documentation itsnotmentioned that
> > few of the jars need to be included. They did mention few butnotall,
> > may be documentation need to be fixed.
> > So it worked now. but now getting another problem, data isnotbeing
> > persisted in local file. I am using following code
> >                 testLocalDatastoreServiceTestConfig = new
> > LocalDatastoreServiceTestConfig();
> >                 
> > testLocalDatastoreServiceTestConfig.setBackingStoreLocation("C:\
> > \test.bin");
> >                 testLocalDatastoreServiceTestConfig.setNoStorage(false);
> >                 testHelper = new
> > LocalServiceTestHelper(testLocalDatastoreServiceTestConfig);
>
> > It tells me
> > The backing store, c:\test.bin, doesnotexist. It will be created.
> > But it is never created and i can see through logs that entity i
> > created was actually worked as i could print Key id field of it. which
> > comes as User(1), but then i cannotquery it using Id or any other
> > field as it was never persisted on file system.
>
> > Can you please help. I am using SDK 1.3.3
>
> > Thanks,
> > Ravi.
>
> > On May 18, 8:25 pm, Ravi Sharma <[email protected]> wrote:
>
> > > Hi,
> > > First time i am trying to run local junit test in eclipse. I am following
> > > exactly what is written 
> > > herehttp://code.google.com/appengine/docs/java/tools/localunittesting.html
>
> > > but no use, i am getting following error.
>
> > > com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package
> > > 'datastore_v3' or call 'RunQuery()' wasnotfound.
> > >     at
> > > com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(
> > >  ApiProxyLocalImpl.java:284)
> > >     at
> > > com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(
> > >  ApiProxyLocalImpl.java:264)
> > >     at
> > > java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:463)
> > >     at java.security.AccessController.doPrivileged(Native Method)
> > >     at
> > > java.util.concurrent.Executors$PrivilegedCallable.call(Executors.java:460)
> > >     at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)Query 
> > > Ran
> > > Succesfully
> > > Returning results
> > > Tear Down
>
> > >     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > >     at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j
> > >  ava:886)
> > >     at
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
> > >  908)
> > >     at java.lang.Thread.run(Thread.java:619)
>
> > > I searched on GAE group andfoundfew things like i need to include
> > > following code in the setup and tear method. I dont see these methodas in
> > > documentation.. Also i tried to add in my code but then i dont find in app
> > > engine jars. So dont know what to do.
>
> > > ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());
> > > and
> > > ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")){});
> > > (Taken from this 
> > > linkhttp://groups.google.com/group/google-appengine-java/browse_thread/th...
> > > (Max Ross's Reply))
>
> > > Is any thing missing on Docs on this 
> > > linkhttp://code.google.com/appengine/docs/java/tools/localunittesting.html,
> > >  as i
> > > am following it exactly written or may be my eyes arenotable to find what
> > > i am missing.
>
> > > Please help.
>
> > > Thanks,
> > > Ravi.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to 
> > > [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://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 [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://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 [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-appengine-java?hl=en.

Reply via email to