Hi Geeth,
You cannot use App Engine classes on the client-side (GWT) of your code. You
can only use them on the server side. Also, you cannot use the App Engine
data types over RPC. You'll have to convert them to a GWT-compatible DTO,
and then send them over the wire.


Rajeev

On Fri, Aug 14, 2009 at 8:54 AM, Geeth <[email protected]> wrote:

>
> Hrishi,
>
> Thanks for you reply. That was a typo in my post. I am using the
> google plugin for Eclipse Galileo.
>
> Please let me know if you have any other thoughts.
>
> Thanks.
> Geeth
>
> On Aug 13, 9:16 am, Hrishi <[email protected]> wrote:
> > http://dl.google.com/eclipse/plugin/3.5
> >
> > You haven't installed the Google app engine plug-in for eclipse.
> >
> > GWT is a different plug-in. You don't need that for App engine.
> >
> > On Aug 13, 9:12 am, Geeth <[email protected]> wrote:
> >
> > > I am using GWT Eclipse Plugin and trying to create a war for Google
> > > App Engine. I am importingcom.google.appengine.api.users.User to
> > > store the user information. I am using JDO persistance.
> >
> > > I am getting the following error during GWT compilation:
> >
> > > Theimportcom.google.appenginecannot be resolved
> > > User cannot be resolved to a type
> >
> > > I did some searching and couldn't find anyone else facing this issue.
> > > Please help as I have hit a wall on this.
> >
> > > Here is my class
> >
> > >importjava.io.Serializable;
> > >importjava.util.Date;
> >
> > >importjavax.jdo.annotations.IdGeneratorStrategy;
> > >importjavax.jdo.annotations.IdentityType;
> > >importjavax.jdo.annotations.PersistenceCapable;
> > >importjavax.jdo.annotations.Persistent;
> > >importjavax.jdo.annotations.PrimaryKey;
> >
> > >importcom.google.appengine.api.users.User;
> >
> > > /**
> > >  * @author Geeth.Narayanan
> > >  *
> > >  */
> > > @PersistenceCapable(identityType = IdentityType.APPLICATION)
> > > public class Comment implements Serializable {
> >
> > >        @PrimaryKey
> > >        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > >        Long id;
> > >        @Persistent
> > >        private User user;
> > >        @Persistent
> > >        private String title;
> > >        @Persistent
> > >        private String description;
> > >        @Persistent
> > >        private Date createDate;
> >
> > >        public Comment() {
> > >        }
> >
> > >        public Comment(User user, String title, String description) {
> > >                this.createDate = new Date();
> > >                this.user = user;
> > >                this.title = title;
> > >                this.description = description;
> > >        }
> >
> > >        public Long getId() {
> > >                return this.id;
> > >        }
> >
> > >         public User getUser() {
> > >         return this.user;
> > >         }
> >
> > >        public Date getCreateDate() {
> > >                return this.createDate;
> > >        }
> >
> > >         public void setUser(User user) {
> > >         this.user = user;
> > >         }
> >
> > >        /**
> > >         * @return the title
> > >         */
> > >        public String getTitle() {
> > >                return title;
> > >        }
> >
> > >        /**
> > >         * @param title
> > >         *            the title to set
> > >         */
> > >        public void setTitle(String title) {
> > >                this.title = title;
> > >        }
> >
> > >        /**
> > >         * @return the description
> > >         */
> > >        public String getDescription() {
> > >                return description;
> > >        }
> >
> > >        /**
> > >         * @param description
> > >         *            the description to set
> > >         */
> > >        public void setDescription(String description) {
> > >                this.description = description;
> > >        }
> >
> > > }
> >
>

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