[google-appengine] Re: New bie question: import com.google.appengine cannot be resolved

2009-05-15 Thread vijay
Thanks Jason,As also pointed out by Shawn that we cannot simply use Key in
client code we need write a super class instead.
So now i have changed my implementation to use Long instead of key.

On Tue, May 12, 2009 at 12:03 AM, Jason (Google) apija...@google.comwrote:

 Hi Vijay. I believe the issue here is that the GWT compiler cannot find the
 source code for the Key class, as detailed in the post at
 http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html
 .

 You should be able to follow the steps in that post, stubbing out the Key
 class, to get your application working.

 - Jason


 On Fri, May 8, 2009 at 3:04 PM, vijay mymail.vi...@gmail.com wrote:

 Hi,
 I am using GWT+ Appengine for building a simple web application and got
 stuck with a error.

 I am using JDO to save some objects in datastore, I have a created a
 service which returns a field of persistent class which is of type
  com.google.appengine.api.datastore.Key, i am calling this service from my
 main .java file and hence imported the required path. When running the
 application I got error as

 Line 6: The import com.google.appengine cannot be resolved

 The path com.google.appengine was auto completed and also it was not
 showing any error for files under .server package, the error are only for
 files under .client package.
 I think I am missing something very basic here. Is there any restriction
 that I cannot import appengine packages in .client package?

 Please let me know if my problem is not clear.

 Regards,
 Vijay




 


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



[google-appengine] Re: New bie question: import com.google.appengine cannot be resolved

2009-05-11 Thread Jason (Google)
Hi Vijay. I believe the issue here is that the GWT compiler cannot find the
source code for the Key class, as detailed in the post at
http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html.

You should be able to follow the steps in that post, stubbing out the Key
class, to get your application working.

- Jason

On Fri, May 8, 2009 at 3:04 PM, vijay mymail.vi...@gmail.com wrote:

 Hi,
 I am using GWT+ Appengine for building a simple web application and got
 stuck with a error.

 I am using JDO to save some objects in datastore, I have a created a
 service which returns a field of persistent class which is of type
  com.google.appengine.api.datastore.Key, i am calling this service from my
 main .java file and hence imported the required path. When running the
 application I got error as

 Line 6: The import com.google.appengine cannot be resolved

 The path com.google.appengine was auto completed and also it was not
 showing any error for files under .server package, the error are only for
 files under .client package.
 I think I am missing something very basic here. Is there any restriction
 that I cannot import appengine packages in .client package?

 Please let me know if my problem is not clear.

 Regards,
 Vijay

 


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



[google-appengine] Re: New bie Question

2009-04-20 Thread vijay
I got the answer on other thread
http://groups.google.com/group/google-appengine-java/browse_thread/thread/f6052ac60cff68ac/d84b7a9e1f504953?q=Error+running+javac.exe+compiler#d84b7a9e1f504953

On Mon, Apr 20, 2009 at 10:21 AM, vijay mymail.vi...@gmail.com wrote:

 ping!!


 On Mon, Apr 20, 2009 at 12:05 AM, vijay mymail.vi...@gmail.com wrote:


 Hi All,
 I am new to app engine, I tried to install eclipse plugin of appengine and
 run the sample guestbook application, but I got same errors like following
 when opening  http:\\localhost:8080

 Error running javac.exe compiler
  at 
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
  at 
 org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
  at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  at com.google.appengine.tools.development.PrivilegedJspServl

 ..etc

 Caused by: java.io.IOException: Cannot run program javac.exe: 
 CreateProcess error=2, The system cannot find the file specified
  at java.lang.ProcessBuilder.start(Unknown Source)
  at java.lang.Runtime.exec(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAcces

 .etc


 I am using java version 1.6.0_12 and eclipse 3.4 on windows XP. I can see 
 the appengine directory present inside eclipse directory and able to run the 
 command

 appengine-java-sdk\bin\dev_appserver.cmd 
 appengine-java-sdk\demos\guestbook\war


 I was not able to run this command earlier as appengine-java-sdk was
 actually named appengine-java-sdk-VERSION so i removed the version part and
 able to run the command.

 I don't think the problem is CLASSPATH variable as when i give command

 java -version

 it detects the path and show me correct version. I would be thankful if
 someone can help me out.

 Rgds,
 Vijay





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



[google-appengine] Re: New bie Question

2009-04-20 Thread vijay
ping!!

On Mon, Apr 20, 2009 at 12:05 AM, vijay mymail.vi...@gmail.com wrote:


 Hi All,
 I am new to app engine, I tried to install eclipse plugin of appengine and
 run the sample guestbook application, but I got same errors like following
 when opening  http:\\localhost:8080

 Error running javac.exe compiler
   at 
 org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)
   at 
 org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:47)
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
   at 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
   at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
   at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at com.google.appengine.tools.development.PrivilegedJspServl

 ..etc

 Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess 
 error=2, The system cannot find the file specified
   at java.lang.ProcessBuilder.start(Unknown Source)
   at java.lang.Runtime.exec(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAcces

 .etc


 I am using java version 1.6.0_12 and eclipse 3.4 on windows XP. I can see the 
 appengine directory present inside eclipse directory and able to run the 
 command

 appengine-java-sdk\bin\dev_appserver.cmd 
 appengine-java-sdk\demos\guestbook\war


 I was not able to run this command earlier as appengine-java-sdk was
 actually named appengine-java-sdk-VERSION so i removed the version part and
 able to run the command.

 I don't think the problem is CLASSPATH variable as when i give command

 java -version

 it detects the path and show me correct version. I would be thankful if
 someone can help me out.

 Rgds,
 Vijay




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