Re: [appengine-java] Re: "SQL injection" on App Engine ?
My point wasn't that an attacker could perform the same exploits that have been accomplished with SQL injection, but that an attacker could induce the application to do something that the developer didn't intend (such as disclose sensitive data) by causing the query to return something other than what the developer planned for. Consider the same sort of attack with a different target: String name = request.getParameter("name"); String q = "select from Employee where managerID == " + this.loggedInUser + " && lastName == '" + name + "'"; Seems to be vulnerable to elevation of privilege: name=Balmer || managerID == BillG -- 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-j...@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: JSP Question - Errors with servlet mapping
http://groups.google.com/group/google-appengine-java/browse_thread/thread/93ab73891be5518e http://groups.google.com/group/google-appengine-java/browse_thread/thread/dd17f4150950374c&usg=AFQjCNHcdbQAaW_akVBTvb70Cu6zw_pRVg -- 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-j...@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] when testing on my local network, why is index.html not read by default when referencing directory?
I am writing an application where I am hitting my local app engine from my mobile phone. I notice that when i deploy this app to the app engine, referencing a directory causes GAE/j to serve up the index.html file sitting in that directory. This is expected. However, if I test locally, and I hit this directory via url, I get a 403 error. Example: url="sencha/examples/tabs2" If i manually add /index.html to the end, it works fine locally. Problem is all the samples I am going through reference the directory and expect it to serve index.html. Any ideas how I can make this work locally for testing? Thank you. TF -- 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-j...@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] JSP Question - Errors with servlet mapping
I'm attempting to use web.xml to map URL-Paths to specific .jsp files rather than mapping JavaServlets. However I'm questioning whether or nor this is a proper usage due to a strange compiler error. When I use the mappings, the JSP compiler tells me it is unable to compile the given file. However, when I browse to the file's path, it compiles without a problem. I've been searching the documentation but haven't been able to find any explicit answer. Thanks in advance. - Max -- 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-j...@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] Cygwin Vista Newbie
seems like a question for the android ndk forum rather than this one... On Sat, Jan 8, 2011 at 11:07 AM, John Handal wrote: > Error Message from Cygwin: > > Juan-PC /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/samples > $ ndk-build > Android NDK: Could not find application project directory ! > Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. > > /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/build/core/build-local. > mk:85: *** Android NDK: Aborting. Stop. > > > > System Variable : NDK_PROJECT_PATH > Variable value : > ;C:\Users\Juan\Desktop\NDK\NDK5.0\android-ndk-r5\build\core\build-local.mk > > Runing Windows Vista > > > > What's wrong with the NDK_PROJECT_PATH > > [?] THX > > > > -- > 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-j...@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. > -- -- A. Stevko === "If everything seems under control, you're just not going fast enough." M. Andretti -- 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-j...@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. <<361.gif>>
[appengine-java] When/Is @Embedded necessary?
I noticed, at least I couldn't see anything different, that if I omit this annotation in a field, the behavior of the Persistence Manager is the same when it comes to make an entity persistent. I'm talking about fields which type are marked as @EmbeddedOnly. @PersistenceCapable(detachable = "true") @EmbeddedOnly public class Child { … } @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") public class Parent { @Persistent @Embedded private Child child1; @Persistent private Child child2; } Am I missing something here or there would be no difference in treatment between child1 and child2? Would it be better to use @PersistenceCapable(embeddedOnly = "true") in the Child instead of @EmbeddedOnly? -- 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-j...@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: wicket ajax on gae
I saw some tutorials about deploying wicket app to gae , they did not mention any problem with resource loading , I think I am the only one having problems deploying wicket app , is there any article which tells more about resource handling with wicket in gae ? On Jan 8, 10:22 am, Didier Durand wrote: > Hi, > > The issue is that when you upload on GAE (i.e copy the files in the > cloud), all what it sees is the file that you 've copied to the > appropriate subdir of the /war in your eclipse project: if you don't > copy them to /war/x/y/z, it just won't work because needed classes > won't be present. > > regards > didier > > On Jan 8, 3:07 pm, fachhoch wrote: > > > > > > > > > this same application if I deploy to jetty it works, finding all these > > resources are not problem when deployed to tomcat , weblogic, jetty > > any other server .its wicket way of handling the resources , all these > > resources are in the wicket jar files,I am assuming there would be > > some means to tell app engine how to load wicket resources is there > > any setting for app engine ? > > > On Jan 8, 1:07 am, Didier Durand wrote: > > > > Hi, > > > > After analyzing your error messages, I think that you need to create > > > a /app/resources in your /war created by the jdk, copy in it all the > > > files and subdirs mentions in your error message: wicket-ajax.js, > > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > > modal.js, after you located them in you dev env, redeploy the app and > > > that should be better. > > > > Don't forget to allow access to those files via the directives > > > ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat... > > > > It may help even if we don't know yet if your application uses only > > > classes from the JRE white list (http://code.google.com/appengine/docs/ > > > java/jrewhitelist.html) as external classes. > > > > Let us know how your progress. > > > > regards > > > > didier > > > > On Jan 8, 2:16 am, fachhoch wrote: > > > > > Please help me with the issue , I am trying to deploy wicket in > > > > google app engine, i was able to bring up the home page ,then for > > > > further testing I added a simple ajaxlink , when I click on the > > > > link nothing happens then I enabled logging of wicket > > > > and saw this in logs > > > > > [code] > > > > > FINE: ending request for page [Page class = > > > > org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request > > > > [method = GET, protocol = HTTP/1.1, requestURL > > > > =http://localhost:/app/, > > > > contentType = null, contentLength = -1, contextPath = , pathInfo = > > > > null, requestURI = /app/, servletPath = /app/, pathTranslated = null] > > > > Jan 8, 2011 1:04:01 AM > > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > > WARNING: No file found for: /app/resources/ > > > > org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js > > > > Jan 8, 2011 1:04:01 AM > > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > > WARNING: No file found for: /app/resources/ > > > > org.apache.wicket.markup.html.WicketEventReference/wicket-event.js > > > > Jan 8, 2011 1:04:01 AM > > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > > WARNING: No file found for: /app/resources/ > > > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > > > modal.css > > > > Jan 8, 2011 1:04:01 AM > > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > > WARNING: No file found for: /app/resources/ > > > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > > > modal.js > > > > [/code] > > > > > please advice me how to resolve this ? I am running the app with > > > > google eclipse plugin. -- 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-j...@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] Cygwin Vista Newbie
Error Message from Cygwin: Juan-PC /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/samples $ ndk-build Android NDK: Could not find application project directory ! Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. /cygdrive/c/users/juan/desktop/ndk/ndk5.0/android-ndk-r5/build/core/build-local. mk:85: *** Android NDK: Aborting. Stop. System Variable : NDK_PROJECT_PATH Variable value : ;C:\Users\Juan\Desktop\NDK\NDK5.0\android-ndk-r5\build\core\build-local.mk Runing Windows Vista What's wrong with the NDK_PROJECT_PATH [?] THX -- 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-j...@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. <<361.gif>>
[appengine-java] Re: new bee need suggestion on persistance
Thanks for your thoughtful response, Matthew. My disapointment is with the lack of support for superclass-table in the GAE/J implementation of mapping for JDO. I haven't thought deeply enough to have a strong feeling for the difficulties that could be introduced by an implementation that stored instances of subclasses in one entity kind, but previous discussions including Max Ross left me with the feeling that it was mostly a question of incremental effort rather than an major architectural concern. Of course, my previous experience with JDO/JPA in ORM scenarios may be leading to a bias in my thinking. Much of the persistent model in my application is working well (so far) with an agnostic set of annotations; it could run on a relational DB. If the JDO mapping for the GAE datastore included support for superclass-table, I'd feel that I could define a more efficient model that would also allow my to write queries more simply. Best Regards, John On Fri, Jan 7, 2011 at 16:57, Matthew Adams wrote: > You appear to be talking about two different things here: JDO ORM > specs & GAEJ's JDO support. I'll take each one independently. > > 1. JDO ORM Specification > > If you're referring to JDO, the specification, as distinct from GAEJ's > DataNucleus plugin for BigTable, then you are referring to the > object-relational features of the specification. I can assure you (as > a member of the JDO expert group) that the inheritance mapping that > you are describing here is fully supported. It's commonly known as > table-per-hierarchy, and JDO supports it. See section 15.7 (p.209) of > the JDO 3.0 specification (available via > http://db.apache.org/jdo/specifications.html and quoted below). You > would just specify new-table for the base class's inheritance mapping > and superclass-table for each subclass's inheritance mappings. > > In fact, (JDO 2.0 & later) standardizes many different inheritance > mapping strategies, including not only table-per-hierarchy, > table-per-class & table-per-concrete-class, but also any mix thereof. > From the specification: > > > > 15.7 Inheritance > Each class can declare an inheritance strategy. Three strategies are > supported by standard metadata: > new-table, superclass-table, and subclass-table. > • new-table creates a new table for the fields of the class. > • superclass-table maps the fields of the class into the superclass table. > • subclass-table forces subclasses to map the fields of the class to > their own table. > > Using these strategies, standard metadata directly supports several > common inheritance patterns, as > well as combinations of these patterns within a single inheritance > hierarchy. > One common pattern uses one table for an entire inheritance hierarchy. > A column called the discriminator > column is used to determine to which class each row belongs. This > pattern is achieved by a > strategy of new-table for the base class, and superclass-table for all > subclasses. These are the default > strategies for base classes and subclasses when no explicit strategy is > given. > > Another pattern uses multiple tables joined by their primary keys. In > this pattern, the existence of a > row in a table determines the class of the row. A discriminator column > is not required, but may be > used to increase the efficiency of certain operations. This pattern is > achieved by a strategy of newtable > for the base class, and new-table for all subclasses. In this case, > the join element specifies the > columns to be used for associating the columns in the table mapped by > the subclass(es) and the table > mapped by the superclass. > > A third pattern maps fields of superclasses and subclasses into > subclass tables. This pattern is > achieved by a strategy of subclass-table for the base class, and > new-table for direct subclasses. > > > > There are no restrictions placed on how a class specifies its > inheritance mapping. While I do not advocate deep inheritance > hierarchies, but the top 3 classes of a hierarchy could be mapped to > one table, the next 2 classes can be to their own tables, and anything > below that to another single table. Really it's up to you and how > your app uses the object graph -- its performance usually varies as a > function of how its used and how its inheritance is mapped. > > 2. GAEJ's JDO support > > This is where I was a little bit surprised as I read through your > example. You are discussing mapping features that I don't believe > apply to Google's BigTable-based persistence, unless I'm missing > something. BigTable focuses on entities and entity groups, which are > a different beast than relational tables. In fact, whereas tables and > their structure maps to classes, BigTable's schema seems to be more > focused on the objects than the classes. While I don't have any real > production experience using BigTable, that is my understanding. > Someone please correct me if I'm wrong about that. > > So, which use of JDO were you
[appengine-java] Re: wicket ajax on gae
Hi, The issue is that when you upload on GAE (i.e copy the files in the cloud), all what it sees is the file that you 've copied to the appropriate subdir of the /war in your eclipse project: if you don't copy them to /war/x/y/z, it just won't work because needed classes won't be present. regards didier On Jan 8, 3:07 pm, fachhoch wrote: > this same application if I deploy to jetty it works, finding all these > resources are not problem when deployed to tomcat , weblogic, jetty > any other server .its wicket way of handling the resources , all these > resources are in the wicket jar files,I am assuming there would be > some means to tell app engine how to load wicket resources is there > any setting for app engine ? > > On Jan 8, 1:07 am, Didier Durand wrote: > > > Hi, > > > After analyzing your error messages, I think that you need to create > > a /app/resources in your /war created by the jdk, copy in it all the > > files and subdirs mentions in your error message: wicket-ajax.js, > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > modal.js, after you located them in you dev env, redeploy the app and > > that should be better. > > > Don't forget to allow access to those files via the directives > > ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat... > > > It may help even if we don't know yet if your application uses only > > classes from the JRE white list (http://code.google.com/appengine/docs/ > > java/jrewhitelist.html) as external classes. > > > Let us know how your progress. > > > regards > > > didier > > > On Jan 8, 2:16 am, fachhoch wrote: > > > > Please help me with the issue , I am trying to deploy wicket in > > > google app engine, i was able to bring up the home page ,then for > > > further testing I added a simple ajaxlink , when I click on the > > > link nothing happens then I enabled logging of wicket > > > and saw this in logs > > > > [code] > > > > FINE: ending request for page [Page class = > > > org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request > > > [method = GET, protocol = HTTP/1.1, requestURL > > > =http://localhost:/app/, > > > contentType = null, contentLength = -1, contextPath = , pathInfo = > > > null, requestURI = /app/, servletPath = /app/, pathTranslated = null] > > > Jan 8, 2011 1:04:01 AM > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > WARNING: No file found for: /app/resources/ > > > org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js > > > Jan 8, 2011 1:04:01 AM > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > WARNING: No file found for: /app/resources/ > > > org.apache.wicket.markup.html.WicketEventReference/wicket-event.js > > > Jan 8, 2011 1:04:01 AM > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > WARNING: No file found for: /app/resources/ > > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > > modal.css > > > Jan 8, 2011 1:04:01 AM > > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > > WARNING: No file found for: /app/resources/ > > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > > modal.js > > > [/code] > > > > please advice me how to resolve this ? I am running the app with > > > google eclipse plugin. > > -- 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-j...@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: The import com.google.appengine cannot be resolved
Yes, I did it, it is there in the link. It works very nicely. Cheers. -- Kido. On 8 January 2011 14:24, Didier Durand wrote: > Hi, > > I checked it: interesting! > > Can we obtain the source code of it ? > didier > > On Jan 8, 1:43 pm, Cesar Ruiz wrote: > > Hey Ddier, thank you for helping. > > > > I found a better way, that having a same object in a separated way, > (Imagine > > the case when I need to do the same for 20 objects). > > > > The answer is here, it works sweetly. > > > > http://blog.js-development.com/2010/02/gwt-app-engine-and-app-engine-... > > > > Thank you very much. > > > > On 8 January 2011 07:16, Didier Durand wrote: > > > > > Hi, > > > > > You only have to move the source file of your class from src/package/ > > > name/of/your/appl/client (where it is now) to src/package/name/of/your/ > > > appl/server and change all the references of users of this classes to > > > new name : i.e. package.name.of.your.appl.client to > > > package.name.of.your.appl.srv. > > > > > Then your source code is ready to be compiled and you shouldn't get > > > any more complaint from GWT requiring the source code. > > > > > But, you'll still have to write the dto object that I mentionned > > > earlier and that Ikai Lan from Google also recommends in your new > > > question of this forum (http://groups.google.com/group/google- > > > appengine-java/browse_thread/thread/df0426ab46e25905#) > > > > > regards > > > > > didier > > > > > On Jan 7, 4:13 pm, Cesar Ruiz wrote: > > > > Indeed, I am using GWT, oh I understand what you're saying. But the > pojo > > > > that will contain the Text attribute is in the client side (in the > same > > > > package that the MainEntryPoint.java). > > > > > > @Entity > > > > @Table(name = "book") > > > > public class Book implements Serializable { > > > > > > @Id > > > > @GeneratedValue(strategy = GenerationType.IDENTITY) > > > > private Long id; > > > > private String name; > > > > private String uriPath; > > > > private Text content; > > > > > > getters and setters... > > > > > > The method on the server side is: > > > > > > public Book setBookContent(String bookName, String content) throws > > > > GeneralException, BookNotFoundException, NullParameterException { > > > > entityManager = EMF.get().createEntityManager(); > > > > Book book = null; > > > > Text contentText = new Text(content); > > > > try { > > > > book = loadBookByName(bookName); > > > > book.setContent(contentText); //here the pojo will have > the > > > > Text attribute, but the pojo is in the client side > > > > saveBook(book); > > > > } catch (BookNotFoundException b) { > > > > } finally { > > > > entityManager.close(); > > > > } > > > > return book; > > > > } > > > > > > Will I have to move the pojo Book in the server side. If yes can you > > > please > > > > give me a hand, because the other day I tried and I couldnt. > > > > > > Thank you for you help. > > > > > > -- > > > > Kido. > > > > > > On 7 January 2011 15:31, Didier Durand > wrote: > > > > > > > I think that I understand through the words "inheritance & module": > > > > > aren't you using Google Web Toolkit ? (GWT) > > > > > > > If yes, you can't use the Text class in you front-end: you have to > use > > > > > a String in the front-end move it to the server via the GWT RPC and > > > > > then convert it to a Text in an annotated Pojo that you will then > be > > > > > able to store in the datastore > > > > > > > regards > > > > > > > didier > > > > > > > On Jan 7, 3:08 pm, Cesar Ruiz wrote: > > > > > > I realized the jar is included aproperly in the classpath, As it > does > > > it > > > > > > automatically when choosing GAE as a server. > > > > > > > > I also manually added the jar in the classpath, but nothing > happens > > > > > > > > It still is throwing the error. > > > > > > > > The import com.google.appengine cannot be resolved > > > > > > [ERROR] Hint: Check the inheritance chain from your module; it > may > > > not > > > > > be > > > > > > inheriting a required module or a module may not be adding its > source > > > > > path > > > > > > entries properly > > > > > > > > -- > > > > > > kido. > > > > > > > > On 7 January 2011 15:04, Didier Durand > > > wrote: > > > > > > > > > No, you don't need the source code: I use Text very often based > on > > > the > > > > > > > compiled version that is in the jar > appengine-api-1.0-sdk-1.3.8.jar > > > > > > > (for v 1.3.8 under Eclipse) > > > > > > > > > Just obtain from somebody else how to put this jar in you > classpath > > > > > > > and everything will be ok > > > > > > > > > btw, did you install the App Engine SDK in your Netbeans? When > > > > > > > properly done, it should take care of your classpath issue as > it > > > does > > > > > > > under Eclipse (classpath is set up properly for all needed jars > by > > > the > > > > > > > SDK there) > > >
[appengine-java] Need Google guidance!
I am trying to step into my own business world & run my own company in near future & decided to adopt Google Cloud (Google App Engine for Java + GWT + JPA). However I need an idea that matchs the demand in my local area Egypt - Middle East. I would like Google Strategic/Analytic Planning guidance to help me getting some idea (to implement) about my area/local community needs based on view point of Google past an current experience. (I hope I am clear enough :-)) -- 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-j...@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: wicket ajax on gae
this same application if I deploy to jetty it works, finding all these resources are not problem when deployed to tomcat , weblogic, jetty any other server .its wicket way of handling the resources , all these resources are in the wicket jar files,I am assuming there would be some means to tell app engine how to load wicket resources is there any setting for app engine ? On Jan 8, 1:07 am, Didier Durand wrote: > Hi, > > After analyzing your error messages, I think that you need to create > a /app/resources in your /war created by the jdk, copy in it all the > files and subdirs mentions in your error message: wicket-ajax.js, > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > modal.js, after you located them in you dev env, redeploy the app and > that should be better. > > Don't forget to allow access to those files via the directives > ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat... > > It may help even if we don't know yet if your application uses only > classes from the JRE white list (http://code.google.com/appengine/docs/ > java/jrewhitelist.html) as external classes. > > Let us know how your progress. > > regards > > didier > > On Jan 8, 2:16 am, fachhoch wrote: > > > > > > > > > Please help me with the issue , I am trying to deploy wicket in > > google app engine, i was able to bring up the home page ,then for > > further testing I added a simple ajaxlink , when I click on the > > link nothing happens then I enabled logging of wicket > > and saw this in logs > > > [code] > > > FINE: ending request for page [Page class = > > org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request > > [method = GET, protocol = HTTP/1.1, requestURL =http://localhost:/app/, > > contentType = null, contentLength = -1, contextPath = , pathInfo = > > null, requestURI = /app/, servletPath = /app/, pathTranslated = null] > > Jan 8, 2011 1:04:01 AM > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > WARNING: No file found for: /app/resources/ > > org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js > > Jan 8, 2011 1:04:01 AM > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > WARNING: No file found for: /app/resources/ > > org.apache.wicket.markup.html.WicketEventReference/wicket-event.js > > Jan 8, 2011 1:04:01 AM > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > WARNING: No file found for: /app/resources/ > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > modal.css > > Jan 8, 2011 1:04:01 AM > > com.google.appengine.tools.development.LocalResourceFileServlet doGet > > WARNING: No file found for: /app/resources/ > > org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/ > > modal.js > > [/code] > > > please advice me how to resolve this ? I am running the app with > > google eclipse plugin. -- 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-j...@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: The import com.google.appengine cannot be resolved
Hi, I checked it: interesting! Can we obtain the source code of it ? didier On Jan 8, 1:43 pm, Cesar Ruiz wrote: > Hey Ddier, thank you for helping. > > I found a better way, that having a same object in a separated way, (Imagine > the case when I need to do the same for 20 objects). > > The answer is here, it works sweetly. > > http://blog.js-development.com/2010/02/gwt-app-engine-and-app-engine-... > > Thank you very much. > > On 8 January 2011 07:16, Didier Durand wrote: > > > Hi, > > > You only have to move the source file of your class from src/package/ > > name/of/your/appl/client (where it is now) to src/package/name/of/your/ > > appl/server and change all the references of users of this classes to > > new name : i.e. package.name.of.your.appl.client to > > package.name.of.your.appl.srv. > > > Then your source code is ready to be compiled and you shouldn't get > > any more complaint from GWT requiring the source code. > > > But, you'll still have to write the dto object that I mentionned > > earlier and that Ikai Lan from Google also recommends in your new > > question of this forum (http://groups.google.com/group/google- > > appengine-java/browse_thread/thread/df0426ab46e25905#) > > > regards > > > didier > > > On Jan 7, 4:13 pm, Cesar Ruiz wrote: > > > Indeed, I am using GWT, oh I understand what you're saying. But the pojo > > > that will contain the Text attribute is in the client side (in the same > > > package that the MainEntryPoint.java). > > > > @Entity > > > @Table(name = "book") > > > public class Book implements Serializable { > > > > @Id > > > @GeneratedValue(strategy = GenerationType.IDENTITY) > > > private Long id; > > > private String name; > > > private String uriPath; > > > private Text content; > > > > getters and setters... > > > > The method on the server side is: > > > > public Book setBookContent(String bookName, String content) throws > > > GeneralException, BookNotFoundException, NullParameterException { > > > entityManager = EMF.get().createEntityManager(); > > > Book book = null; > > > Text contentText = new Text(content); > > > try { > > > book = loadBookByName(bookName); > > > book.setContent(contentText); //here the pojo will have the > > > Text attribute, but the pojo is in the client side > > > saveBook(book); > > > } catch (BookNotFoundException b) { > > > } finally { > > > entityManager.close(); > > > } > > > return book; > > > } > > > > Will I have to move the pojo Book in the server side. If yes can you > > please > > > give me a hand, because the other day I tried and I couldnt. > > > > Thank you for you help. > > > > -- > > > Kido. > > > > On 7 January 2011 15:31, Didier Durand wrote: > > > > > I think that I understand through the words "inheritance & module": > > > > aren't you using Google Web Toolkit ? (GWT) > > > > > If yes, you can't use the Text class in you front-end: you have to use > > > > a String in the front-end move it to the server via the GWT RPC and > > > > then convert it to a Text in an annotated Pojo that you will then be > > > > able to store in the datastore > > > > > regards > > > > > didier > > > > > On Jan 7, 3:08 pm, Cesar Ruiz wrote: > > > > > I realized the jar is included aproperly in the classpath, As it does > > it > > > > > automatically when choosing GAE as a server. > > > > > > I also manually added the jar in the classpath, but nothing happens > > > > > > It still is throwing the error. > > > > > > The import com.google.appengine cannot be resolved > > > > > [ERROR] Hint: Check the inheritance chain from your module; it may > > not > > > > be > > > > > inheriting a required module or a module may not be adding its source > > > > path > > > > > entries properly > > > > > > -- > > > > > kido. > > > > > > On 7 January 2011 15:04, Didier Durand > > wrote: > > > > > > > No, you don't need the source code: I use Text very often based on > > the > > > > > > compiled version that is in the jar appengine-api-1.0-sdk-1.3.8.jar > > > > > > (for v 1.3.8 under Eclipse) > > > > > > > Just obtain from somebody else how to put this jar in you classpath > > > > > > and everything will be ok > > > > > > > btw, did you install the App Engine SDK in your Netbeans? When > > > > > > properly done, it should take care of your classpath issue as it > > does > > > > > > under Eclipse (classpath is set up properly for all needed jars by > > the > > > > > > SDK there) > > > > > > > regards > > > > > > > didier > > > > > > > On Jan 7, 2:54 pm, Cesar Ruiz wrote: > > > > > > > :( . When I see the com.google.appengine.api.datastore and look > > for > > > > the > > > > > > > class Text, I try to open it but I it says: "no source code". I > > think > > > > I > > > > > > need > > > > > > > the sourse code, rather than the .class. > > > > > > > > I'm stuck :(. > > > > > > > > On 7 January 2011 14:51, Didier D
Re: [appengine-java] Re: The import com.google.appengine cannot be resolved
Hey Ddier, thank you for helping. I found a better way, that having a same object in a separated way, (Imagine the case when I need to do the same for 20 objects). The answer is here, it works sweetly. http://blog.js-development.com/2010/02/gwt-app-engine-and-app-engine-data.html Thank you very much. On 8 January 2011 07:16, Didier Durand wrote: > Hi, > > You only have to move the source file of your class from src/package/ > name/of/your/appl/client (where it is now) to src/package/name/of/your/ > appl/server and change all the references of users of this classes to > new name : i.e. package.name.of.your.appl.client to > package.name.of.your.appl.srv. > > Then your source code is ready to be compiled and you shouldn't get > any more complaint from GWT requiring the source code. > > But, you'll still have to write the dto object that I mentionned > earlier and that Ikai Lan from Google also recommends in your new > question of this forum (http://groups.google.com/group/google- > appengine-java/browse_thread/thread/df0426ab46e25905#) > > regards > > didier > > On Jan 7, 4:13 pm, Cesar Ruiz wrote: > > Indeed, I am using GWT, oh I understand what you're saying. But the pojo > > that will contain the Text attribute is in the client side (in the same > > package that the MainEntryPoint.java). > > > > @Entity > > @Table(name = "book") > > public class Book implements Serializable { > > > > @Id > > @GeneratedValue(strategy = GenerationType.IDENTITY) > > private Long id; > > private String name; > > private String uriPath; > > private Text content; > > > > getters and setters... > > > > The method on the server side is: > > > > public Book setBookContent(String bookName, String content) throws > > GeneralException, BookNotFoundException, NullParameterException { > > entityManager = EMF.get().createEntityManager(); > > Book book = null; > > Text contentText = new Text(content); > > try { > > book = loadBookByName(bookName); > > book.setContent(contentText); //here the pojo will have the > > Text attribute, but the pojo is in the client side > > saveBook(book); > > } catch (BookNotFoundException b) { > > } finally { > > entityManager.close(); > > } > > return book; > > } > > > > Will I have to move the pojo Book in the server side. If yes can you > please > > give me a hand, because the other day I tried and I couldnt. > > > > Thank you for you help. > > > > -- > > Kido. > > > > On 7 January 2011 15:31, Didier Durand wrote: > > > > > I think that I understand through the words "inheritance & module": > > > aren't you using Google Web Toolkit ? (GWT) > > > > > If yes, you can't use the Text class in you front-end: you have to use > > > a String in the front-end move it to the server via the GWT RPC and > > > then convert it to a Text in an annotated Pojo that you will then be > > > able to store in the datastore > > > > > regards > > > > > didier > > > > > On Jan 7, 3:08 pm, Cesar Ruiz wrote: > > > > I realized the jar is included aproperly in the classpath, As it does > it > > > > automatically when choosing GAE as a server. > > > > > > I also manually added the jar in the classpath, but nothing happens > > > > > > It still is throwing the error. > > > > > > The import com.google.appengine cannot be resolved > > > > [ERROR] Hint: Check the inheritance chain from your module; it may > not > > > be > > > > inheriting a required module or a module may not be adding its source > > > path > > > > entries properly > > > > > > -- > > > > kido. > > > > > > On 7 January 2011 15:04, Didier Durand > wrote: > > > > > > > No, you don't need the source code: I use Text very often based on > the > > > > > compiled version that is in the jar appengine-api-1.0-sdk-1.3.8.jar > > > > > (for v 1.3.8 under Eclipse) > > > > > > > Just obtain from somebody else how to put this jar in you classpath > > > > > and everything will be ok > > > > > > > btw, did you install the App Engine SDK in your Netbeans? When > > > > > properly done, it should take care of your classpath issue as it > does > > > > > under Eclipse (classpath is set up properly for all needed jars by > the > > > > > SDK there) > > > > > > > regards > > > > > > > didier > > > > > > > On Jan 7, 2:54 pm, Cesar Ruiz wrote: > > > > > > :( . When I see the com.google.appengine.api.datastore and look > for > > > the > > > > > > class Text, I try to open it but I it says: "no source code". I > think > > > I > > > > > need > > > > > > the sourse code, rather than the .class. > > > > > > > > I'm stuck :(. > > > > > > > > On 7 January 2011 14:51, Didier Durand > > > wrote: > > > > > > > > > Hi, > > > > > > > > > Sorry: I work only on Eclipse. But, I guess other people of > this > > > forum > > > > > > > knowing Netbeans will take over. > > > > > > > > > Good luck! > > > > > > > > > didier > > > > > > > > > On Jan 7, 2:35 pm, Cesa
[appengine-java] Re: Help! Error: Forbidden
Strange - as suddenly as it appeared, just as suddenly it's gone - but I'm sure I used the right login also before On Jan 8, 1:36 pm, Steel wrote: > Error: Forbidden Your client does not have permission to get URL > /admin/editOffer from this server. > what happened? I'm admin onhttps://appengine.google.com/, but I get this > error when I try to access my own pages with admin role -- 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-j...@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] Help! Error: Forbidden
Error: Forbidden Your client does not have permission to get URL /admin/editOffer from this server. what happened? I'm admin on https://appengine.google.com/, but I get this error when I try to access my own pages with admin role -- 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-j...@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: JSP problem
Thank you soOO much.. very helpful ! On Jan 7, 5:15 pm, kartik kudada wrote: > Hi Shoubhik, > > When you declare like this <% a = 100; %> , after compilation > this becomes local declaration inside service method of generated servlet. > > But when you declare like this <%! int a = 300; %> , after compilation it > becomes class level declaration. > > Hence when you say a = <%= a %>, <%= this.a %> > *a* gives the local variable and when you say *this.a* it gives class level > variable. > > > > > > > > On Fri, Jan 7, 2011 at 4:17 PM, Shoubhik wrote: > > > > <% a = 100; %> > > <% int a = 200; %> > > <%! int a = 300; %> > > a = <%= a %>, <%= this.a %> > > > > > this gives : > > > a = 200, 100 > > > Could you please tell me what's happening ? > > > -- > > 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-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://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 google-appengine-j...@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.