Re: [appengine-java] DWR 3 doesn't work

2011-06-03 Thread Rusty Wright
Look at the entry for ItsNat: http://code.google.com/p/googleappengine/wiki/WillItPlayInJava On 2011-06-03 03:35, draks wrote: Hi, I saw that DWR works on GAE. But whezn I do my test, I've this error: java.lang.NoClassDefFoundError: javax.swing.event.EventListenerList is a restricted class.

Re: [appengine-java] Coding with Adobe Software

2011-05-24 Thread Rusty Wright
InDesign is a page layout program for printing, more or less. You probably could use it to mock up your web pages but it's drastic overkill when you're new to coding. Do your mock ups with static html, as others have pointed out. If you're looking for an html editor, I'd use something like N

Re: [appengine-java] Java => Google app

2011-05-23 Thread Rusty Wright
Sorry, my post was slightly tongue in cheek; sometimes I can't resist sticking a twig into a hornet's nest. On 2011-05-23 08:26, Ugorji wrote: +1 all the way to Jeff's comments. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.

Re: [appengine-java] Java => Google app

2011-05-22 Thread Rusty Wright
Become a fanatic and learn maven; in the long run it does make things easier. Free maven books here: http://www.sonatype.com/Support/Books On 2011-05-21 03:08, programmer wrote: How do I make my java code or jar file an app? -- You received this message because you are subscribed to the Google

Re: [appengine-java] Re: GAE - Java - JSON?

2011-05-20 Thread Rusty Wright
I'm using Stripes (an action based framework, similar to Struts 2 but *way* better) and GSON. Stripes is very flexible and powerful and very well thought out and designed. On 2011-05-20 06:43, Pop Vasile wrote: Thanks guys, great resources. I'm still a bit confused about the approach on GAE

Re: [appengine-java] Lightweight & Best performing MVC framework - Recommendation

2011-01-02 Thread Rusty Wright
Stripes; easy, powerful, and flexible. On 2010-12-29 11:02, Ikai Lan (Google) wrote: Um ... those are like the opposite of lightweight. Here are some I like: Play Framework: probably the most underrated Java framework I've ever see http://www.playframework.org/ Slim3: built for App Engine. C

Re: [appengine-java] Re: MD5 Hash

2010-06-11 Thread Rusty Wright
That looks like a compiler error. On 2010-06-10 11:42, Michael wrote: Any ideas on what is wrong then? On Jun 10, 1:03 pm, Nacho Coloma wrote: That should not be your problem:http://code.google.com/appengine/docs/java/jrewhitelist.html I am using MD5 in AppEngine without issues. On Jun 10

Re: [appengine-java] What Framework to use?

2010-05-21 Thread Rusty Wright
Stripes. http://www.stripesframework.org/display/stripes/Home On 2010-05-21 09:29, hurray! wrote: I am looking for a web framework to use on GAE that 1. Provides pretty URLs 2. Makes passing data to views easier. 3. Is productive. I tried Grails for a small app, but the startup time was too

Re: [appengine-java] Re: App Engine and Spring slow start up

2010-03-01 Thread Rusty Wright
Try using the old way with xml configuration for wiring your beans together. The word on the street is that Spring's component scanning takes a lot of time. luijar wrote: Nope, I am still seeing it. It's quite frustrating. I even tried to reduce Spring init time by removing schema validation

Re: [appengine-java] log4j init fails

2010-02-19 Thread Rusty Wright
I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it. Log4j looks for its configuration file "on the classpath" which means it looks in WEB-INF/classes (and also in all of the jars in the lib directory). AJ Chen

Re: [appengine-java] Re: JDO model issue

2010-02-08 Thread Rusty Wright
I agree with Jake; relationships are tricky. Likewise with his pointing out that having race be in two Results will be a problem; that won't fly. Another way would be to have a List in Race, and add your Results to that. But you're still going to have parenting problems when you have the same

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
Oops; more stumbling. I think it's usually Commons Logging that causes problems with tomcat, and perhaps elsewhere, not log4j. slf4j is a Commons Logging alternative. Rusty Wright wrote: What I just wrote is probably confusing; I'm using slf4j with logback for logging, not l

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
e sure that any problems with the logging aren't being caused by tomcat's logging (but since gae isn't using tomcat that shouldn't be an issue here). Also, logback is more actively supported (and it's written by the same guy who wrote log4j). Rusty Wright wrote: I

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
I also vote for slf4j. If you need a "for example", here's my logback.xml file, which lives in the WEB-INF/classes directory: %5level: [%thread] %class.%method.%line: %message%n

Re: [appengine-java] Re: One-to-many querying for a child instance

2010-01-27 Thread Rusty Wright
ram");, the colon is not valid. As expected I got an exception org.datanucleus.store.query.QueryCompilerSyntaxException: Explicit parameters defined for query, yet implicit parameter syntax (":nameParam") found On Jan 27, 4:39 pm, Rusty Wright wrote: Do you need a colon in front of

[appengine-java] problem with documentation

2010-01-27 Thread Rusty Wright
When I'm learning something new one of the things that slows me down is poor documentation. I think the app engine java documentation Storing Data could be improved if it used consistent terminology in the area of entity groups, which is a crucial part of understanding how the data store works

Re: [appengine-java] Re: One-to-many querying for a child instance

2010-01-27 Thread Rusty Wright
Do you need a colon in front of nameParam? query.setFilter("name == :nameParam"); Sydney wrote: The query returns no result. ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment ()); ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(".")) {

Re: [appengine-java] Re: how to add field to entity

2010-01-27 Thread Rusty Wright
I think you can also use the java transient keyword to tell JDO/JPA to not persist it. Andrei wrote: Ok, i forgot to put @NotPersistent On Jan 26, 1:15 pm, Andrei wrote: Thanks, i'll try What i do not understand, this value is not stored in db On Jan 26, 1:06 pm, John Patterson wrote: Yo

Re: [appengine-java] Enforcing unique constraint

2010-01-18 Thread Rusty Wright
In your class, if you have a Collection of entities that you want to not have duplicates you can make it a Set, and be sure that you've provided a proper equals() and hashCode() for your entities; specifically, do not include the primary key because it starts out null when you instantiate the e

Re: [appengine-java] entity collections and equals/hashCode

2010-01-14 Thread Rusty Wright
That's my understanding. For example, if your objects have collections, when you add a new object to the collection its id isn't set, then after you persist the outer object the new object is persisted and its id is set. jopaki wrote: Using GAE/J JDO, must one implement equals/hashCode based

Re: [appengine-java] Any examples for low level datastore? or suggest another way?

2010-01-14 Thread Rusty Wright
Joel Weight wrote a data store service that I thought was easy to understand. Reading his code made me realize that what's in the data store is basically the fields of the object, without the object itself; therefore to "re-hydrate" an object from the data store, you first instantiate/new the

Re: [appengine-java] question for Max Ross

2010-01-12 Thread Rusty Wright
ng on the last few weeks, and once this work is done it unlocks a ton of good stuff, including unowned relationships. Max On Mon, Jan 11, 2010 at 11:50 PM, Rusty Wright <mailto:rwright.li...@gmail.com>> wrote: If I understand things correctly, it seems to me that a class would

[appengine-java] question for Max Ross

2010-01-11 Thread Rusty Wright
If I understand things correctly, it seems to me that a class would have a field @Persistent(defaultFetchGroup = "true") List myClassKeys; // keys are from MyClass objects instead of @Persistent(defaultFetchGroup = "true") List list; because in the latter case, when an object is added to t

Re: [appengine-java] Re: Maven

2010-01-11 Thread Rusty Wright
It looks like the folder http://www.mvnsearch.org/maven2/com/google/appengine/appengine-api-1.0-labs/1.3.0/ has finally been fixed (as of January 9). drone wrote: No, central repo has 1.2.0 and 1.2.1 only. 1.3.0 is available at http://www.mvnsearch.org/maven2/com/google/appengine/appengine-j

Re: [appengine-java] Re: App Engine SDK 1.3.0 & maven repo

2010-01-08 Thread Rusty Wright
typo:http://www.mvnsearch.org/maven2/com/google/appengine/orm/datanucleus-... It's a space in the version folder name :-( Please, there are a significant number ofmavenusers out here that would appreciate this... .../Andreas On 15 Dec, 20:11, Rusty Wright wrote: Here I am, yet anothermavenuser whi

Re: [appengine-java] jsp work directory

2010-01-08 Thread Rusty Wright
What do you mean by "work directory"? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- 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

Re: [appengine-java] jpa query

2010-01-08 Thread Rusty Wright
Just out of curiosity, what happens when you do it with a parameter? Also note that I've simplified your query; I'm looking at the DataNucleus example for an implicit parameter (http://xrl.in/47e5). Query query = pm.newQuery("select from com.testing.model.Usertest.class where username = :name

Re: [appengine-java] [ANN] DataNucleus AccessPlatform 2.0 released

2010-01-08 Thread Rusty Wright
If we're getting the DataNucleus jars by way of maven dependencies, do you recommend that we wait until Google updates their stuff before we use 2.0 or can we start using your 2.0 version now? datanucleus wrote: The next generation of DataNucleus AccessPlatform has now been released. This inc

Re: [appengine-java] Adding boolean / int field to data model impossible ?

2010-01-07 Thread Rusty Wright
Use the object types instead of the primitive types; that is, use Boolean instead of boolean, and Integer instead of int. They can be null. Then in your getter for them, check to see if they're null and if so, set them to whatever default value you've chosen, and then return it, unboxed (for

Re: [appengine-java] Re: How to query objects with criterias defined in child entities

2010-01-02 Thread Rusty Wright
cords in GAE (e.g. more then 1000 users have defined > a skill "Java")? > > Thanks again > > > > > > > On 31 Dez. 2009, 19:36, Rusty Wright wrote: >> Stand it on its head; instead of User having a Collection of Skill, Skill >> has a Colle

Re: [appengine-java] Re: New Data Field NullPointer

2010-01-02 Thread Rusty Wright
As a workaround, avoid primitives; use, for example, Integer instead. Then in your getter, return its value as a primitive, and also check to see if it's null, and if so, set it to whatever default you prefer. public final class Zzz { Integer number; public int getNumber() { if

Re: [appengine-java] New Data Field NullPointer

2009-12-31 Thread Rusty Wright
I forgot to add that missing fields are always (I think) returned as null by the datastore. Rusty Wright wrote: > It's the GAE datastore. When you add a new field, say an int, it uses > null for the missing field in the datastore, then when it tries to unbox > it; i.e., (

Re: [appengine-java] New Data Field NullPointer

2009-12-31 Thread Rusty Wright
It's the GAE datastore. When you add a new field, say an int, it uses null for the missing field in the datastore, then when it tries to unbox it; i.e., ((Integer) null).intValue() you get the NPE. Jeffrey Goetsch wrote: > Why do I get a NullPointerException when I add a new primitive field to

Re: [appengine-java] Re: JPA Uses Annotations Only

2009-12-31 Thread Rusty Wright
http://www.datanucleus.org/products/accessplatform_1_0/jdo/index.html vvernon wrote: > Great, how do you set up the XML files when it's used on App Engine? > > On Dec 30, 11:31 am, datanucleus wrote: >> DataNucleus supports all types of input ... JPA annotations, JPA XML, >> JDO annotations, JD

Re: [appengine-java] How to query objects with criterias defined in child entities

2009-12-31 Thread Rusty Wright
Stand it on its head; instead of User having a Collection of Skill, Skill has a Collection of User Keys (ignoring the levels part). For the Level, add a layer of nesting; Skill has a Collection of Level, and each Level has a Collection of User Keys. reini77 wrote: > Hi, > > I'm trying to imp

[appengine-java] data loads for tests

2009-12-29 Thread Rusty Wright
I'm working on a gizmo for making it easier to load data into the local data store (e.g., desktop) when doing tests. The file format is xml; a sample follows. I'm using Apache Xerces and SAX; this is my first adventure with parsing an xml file. Basically, the structure of the xml is that the

Re: [appengine-java] Re: need comment on using @transactional on service layer

2009-12-29 Thread Rusty Wright
the jdo-gae-context.xml is only used for integration tests. Yes, it duplicates the transactions defined in the service layer, but it's configured so that any transaction already started by the service layer will be inherited by the dao layer, so it won't start a new transaction. The nontransac

Re: [appengine-java] Chat Time transcript for December 16, 2009

2009-12-18 Thread Rusty Wright
Regarding the question about better performance by writing entities in different entity groups; that's not an option if you're using JDO is it, doesn't JDO require a transaction around writes? Jason (Google) wrote: > This past Wednesday, the App Engine team hosted the latest session of > its bi

Re: [appengine-java] embedding parent object in parent-child relation with jdo

2009-12-18 Thread Rusty Wright
Try making the parent's primary key be Key instead of String. Eugene Kuleshov wrote: > I am using the app engine SDK 1.3.0 with the latest Google Eclipse > plugin. > > Currently, in order to be able to run queries on attributes of the > parent object I have to embed parent object into a chil

Re: [appengine-java] two entities into the same entity group - unowned relationship

2009-12-18 Thread Rusty Wright
My understanding is that the only way objects can be in the same entity group with GAE is they have a parent/child relationship (or grandparent/grandchild etc.). aswath satrasala wrote: > I have two classes with unowned relationship. I am making tenant key as > a key field in the MasterUserLo

Re: [appengine-java] Re: Finding abandoned child entities

2009-12-18 Thread Rusty Wright
If you're using com.google.appengine.api.datastore.Key for your primary keys, it has a getParent() method which returns null when the object doesn't have a parent. Also, your code is fetching a List of Entity, and Entity also has a getParent() which returns null if there is no parent. m seler

Re: [appengine-java] How to retrieve the system generated key

2009-12-16 Thread Rusty Wright
See also http://xrl.in/411y and scroll down to makePersistent; "It must be called in the context of an active transaction, or a JDOUserException is thrown." Saurabh Mehta wrote: > Hi, > > How can we get the value of a newly created key (system-generated), as > soon as after we save the entity.

Re: [appengine-java] How to retrieve the system generated key

2009-12-16 Thread Rusty Wright
I think you may need a transaction, http://xrl.in/411x PersistenceManager pm = pmf.getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); {users code to persist objects} tx.commit(); } finally { if (tx.isActive()) { tx.rollback();

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-15 Thread Rusty Wright
"handler" servlet. >>> To execute your task you could either call the url directly in a >>> browser, from your GWT client or from other server side code. But you >>> probably want to use the TaskQueue to schedule the call for some time >>> in the futu

[appengine-java] App Engine SDK 1.3.0 & maven repo

2009-12-15 Thread Rusty Wright
Here I am, yet another maven user whining about some new release not being correct in the maven repo. The appengine-api-1.0-labs directory has a 1.3.0 directory, but in it are jars named with 1.2.8: http://www.mvnsearch.org/maven2/com/google/appengine/appengine-api-1.0-labs/1.3.0/appengine-api-

Re: [appengine-java] Introducing App Engine SDK 1.3.0

2009-12-15 Thread Rusty Wright
The Google Boys are cooking! It hasn't even been 2 weeks since the last release. Jason (Google) wrote: > Hi Everyone. We just released version 1.3.0 of the App Engine SDK for > both Python and Java. The most notable change is the new experimental > Blobstore API which allows billed apps to stor

Re: [appengine-java] any header test for task queues (like "X-AppEngine-Cron: true" for crons)?

2009-12-14 Thread Rusty Wright
http://code.google.com/appengine/docs/java/taskqueue/overview.html Then search for the string x- And it documents the 3 headers. Prashant wrote: > Hi, > > Requests from the Cron Service contains a HTTP header: X-AppEngine-Cron: > true > Is there any header added by Task Queue Service??? >

Re: [appengine-java] Lazy Loading, Spring MVC and PersistenceManager Closing

2009-12-14 Thread Rusty Wright
Something to investigate: http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/jdo/support/OpenPersistenceManagerInViewFilter.html Shortened: http://xrl.in/408b Al wrote: > Hi > > I just wanted to confirm that I am using the PersistenceManager in the > correct manner...

Re: [appengine-java] Re: How to define parent persistent class without identity field

2009-12-13 Thread Rusty Wright
Another way you could look at is that by using things like customerId and accountId as your database primary keys you're mixing your business stuff with the database persistence stuff. If you create a primary key in the base class and call it something like id, you can still have the accountId

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-13 Thread Rusty Wright
ow to explain what the entry point is > within the java code, or where the code is that actually executes what > the task queue is supposed to do? Does anyone know how to ask the > question Im trying to ask?! > > On Dec 13, 8:22 pm, Rusty Wright wrote: >> Heh, I'm on the

Re: [appengine-java] How to query user in the datastore

2009-12-13 Thread Rusty Wright
The USER('a...@gmail.com') part looks strange to me. That syntax says to me that there's a database function USER(), which I'm guessing there is not. I'm thinking you want to do something like select ... where user.email = 'aaa.gmail.com' Leon wrote: > Hi All, > > I stored an entity in

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-13 Thread Rusty Wright
d if so I apologise for asking stupid questions, > or making incorrect/confusing statements, but it seems theres no real > way of figuring out this stuff until you just try to implement it! Ive > learnt a huge amount about web development and in particular GWT/GAE > over the last 4-5 mo

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-13 Thread Rusty Wright
Thanks; I looked at that as well. If I remember correctly it hasn't been updated since May of this year. Yoichi wrote: > Google App Engine has a Maven Plugin project. > > http://code.google.com/p/maven-gae-plugin/ > > Unfortunately there is no manual and I can't figure out how to use it, > wh

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-12 Thread Rusty Wright
cess caused the automaton to dequeue the task (but not if it returned an error; then the automaton retries). Rusty Wright wrote: > The docs say "The default queue will call the request handler at the URL > /worker ..." So it sounds to me that if you were, for example, using &g

Re: [appengine-java] Re: google guice @transactional at service layer

2009-12-12 Thread Rusty Wright
Sorry I wasn't clear about that; the tweaking wasn't for big table, it was just for my convenience, so that I could use everywhere @TransactionalReadWrite instead of @Transactional( readOnly = false, rollbackFor = Throwable.class, propagation = Propagation.REQUIRED,

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
ren't doing a full JVM startup every warm up, are they? > Seems they could load it into the JVM memory.. then page it out to > disk or something. Somehow has to be a way to keep it scalable to many > 1000s of users, while not taking 7 seconds to "wake up" > > > &

Re: [appengine-java] Re: where I should put the Task Queue code?

2009-12-12 Thread Rusty Wright
The docs say "The default queue will call the request handler at the URL /worker ..." So it sounds to me that if you were, for example, using Spring MVC, and had a Spring controller with @Controller @RequestMapping("/worker") public final class WorkerController { @RequestMapping(method = Re

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
spring xml files are pretty much bare of any bean definitions. Eduardo Ramírez wrote: > > On Sat, Dec 12, 2009 at 20:06, Rusty Wright <mailto:rwright.li...@gmail.com>> wrote: > > I'm using Spring and I've heard that it makes apps slow to start > wit

Re: [appengine-java] Statistics and JUnit

2009-12-12 Thread Rusty Wright
I think the stats only work on google's servers, not your desktop (or test environment). David Fuelling wrote: > I'm running some JUnit tests to excercise my data-layer classes using > the TestEnvironment patter implementing ApiProxy.Environment (i.e., so > I can test my code's datastore operati

Re: [appengine-java] Re: Logging in JUnit tests

2009-12-12 Thread Rusty Wright
I'm using slf4j and logback, and the slf4j adapters for jakarta commons logging etc., that re-route things through slf4j. Here's my maven "dependency pom" so you can see what I'm using. After that is my logback.xml file (everything goes to the console). If you're using maven, be sure and do a

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-12 Thread Rusty Wright
http://www.datanucleus.org/downloads/maven2 1.1.1 1.1.1 1.2.8 1.0.4 1.1.6 1.1.4 1.1.5 1.0.0 Philippe Marschall wrote: > > On Dec 5, 7:45 pm, Rusty Wright wrote: >> Is it possible to use the

Re: [appengine-java] google guice @transactional at service layer

2009-12-12 Thread Rusty Wright
Very good question; I'd like to know the answer to that as well. I'm using Spring's @transaction stuff. I tweaked it slightly to make read-only and read/write annotations; @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Transactional( readOnly = true

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
I should say that Spring 3.0.0.RC3 needs the latest version of any and all Spring projects you may be including; it's not just Spring Security. Rusty Wright wrote: > rc3 runs on gae for me (finally). The error I was getting previously, > NoClassDefFoundError: > org/spring

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-12 Thread Rusty Wright
rc3 runs on gae for me (finally). The error I was getting previously, NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService was because I was using Spring Security 3.0.0.RC1; rc3 needs the latest Spring Security, 3.0.0.RC2. asianCoolz wrote: > any update on

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-12 Thread Rusty Wright
gs I could do to possibly/hopefully reduce its startup time. Brian wrote: > Before: / 200 9743ms 11464cpu_ms 264api_cpu_ms > After: / 200 6894ms 7335cpu_ms 199api_cpu_ms > > > Better, but not really good enough. > > > On Dec 11, 4:22 pm, Rusty Wright wrote: >> htt

Re: [appengine-java] Re: Fast MVC Framework for GAE?

2009-12-11 Thread Rusty Wright
http://googleappengine.blogspot.com/ See Dec 8 entry, "Request performance in Java". Brian wrote: > I have 2 actions and something like 12 java classes total.. so don't > think that is my problem. > > Nicolas: What is this pre-compilation you speak of? Anything under 5 > would be good enough fo

Re: [appengine-java] Google App for Web Application

2009-12-11 Thread Rusty Wright
http://code.google.com/appengine/docs/ Click on Storing Data under Java in the left menu. Also click on Java in the Getting Started menu on the left. You don't create the table; there are no tables, although JPA will pretend that there are. Just start storing data. Watch the videos from the

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-10 Thread Rusty Wright
rk around, but doable. > > > Cheers, > MArco > > > On Dec 5, 7:45 pm, Rusty Wright wrote: >> Is it possible to use the GAE Eclipse plugin if you're using Maven? Maven >> uses a different directory structure so I'm guessing that's why the GAE >>

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-10 Thread Rusty Wright
uding the jar in my > war/WEB-INF/lib. > > Then, I got the 404 "Error: NOT_FOUND" problem and the log posted in > my ealier post. > > I don't get any problem when running locally within eclipse. I only > got problem after deploying onto the appspot server. >

Re: [appengine-java] Re: FinalizableReferenceQueue error

2009-12-10 Thread Rusty Wright
Are you sure the slowness is caused by whatever is generating this exception? fhtino wrote: > Vince, > > ok, it's harmless, but the response is very slow. 5000ms or more > instead of 200ms. > In my case it's a problem. > > Any idea/solution? > > > fabrizio > > On Dec 5, 7:07 pm, Vince

Re: [appengine-java] FetchType.Lazy produces JDODetachedFieldAccessException while FetchType.EAGER does not...

2009-12-10 Thread Rusty Wright
Are you mixing ORMs? @OneToOne is JPA and @Embedded is JDO? Perhaps you can combine them; if so, I didn't know that. Beyond that, try adding it to the default fetch group; @Persistent(embedded = "true", defaultFetchGroup = "true") public Set getWords() David Fuelling wrote: > I have

Re: [appengine-java] possible to split web.xml ?

2009-12-08 Thread Rusty Wright
I'll bet you could if you were using maven. It has this thing where it filters the configuration files (e.g., web.xml) before it puts them in the war file. Read all about it in the free book, "Maven: The Definitive Guide", http://www.sonatype.com/documentation/books Prashant wrote: > Hi, >

Re: [appengine-java] What's the right way to use PersistenceManager?

2009-12-08 Thread Rusty Wright
My understanding is that the persistence manager factory can be a single instance that's shared, but the persistence manager, which the persistence manager factory produces, must not be shared. Your DaoBase can have a setter for the persistence manager factory, but not for the persistence manag

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-08 Thread Rusty Wright
t; [mobisociety/1.338292022072629898].: log4j:WARN Please > initialize the log4j system properly. > > >6. > I 12-07 05:33PM 30.695 > > javax.servlet.ServletContext log: > org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf > ok) > >

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-05 Thread Rusty Wright
What do you mean by "no log"? I often need to change the console web page's filter level to debug to see some error messages. Wong wrote: > Points to add > > I'm using Spring 3.0.0 RC1 > > >id="tilesViewResolver"> >value="org.springframework.web.servlet.view.tiles2.Ti

[appengine-java] eclipse plugin and maven?

2009-12-05 Thread Rusty Wright
Is it possible to use the GAE Eclipse plugin if you're using Maven? Maven uses a different directory structure so I'm guessing that's why the GAE plugin doesn't recognize the project as a GAE web app. -- You received this message because you are subscribed to the Google Groups "Google App Eng

Re: [appengine-java] FinalizableReferenceQueue error

2009-12-05 Thread Rusty Wright
his (search > for FinalizableReferenceQueue). > > Vince > > On Sat, Dec 5, 2009 at 1:00 PM, Rusty Wright <mailto:rwright.li...@gmail.com>> wrote: > > I always get this exception when my app does its first datastore > query. I think it's causing me other

[appengine-java] FinalizableReferenceQueue error

2009-12-05 Thread Rusty Wright
I always get this exception when my app does its first datastore query. I think it's causing me other problems. Is there anything I can do to fix this? com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue : Failed to start reference finalizer thread. Reference clean

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-05 Thread Rusty Wright
nCreationException: Error >> creating bean with name >> 'org.springframework.context.annotation.internalPersistenceAnnotationProces貞or': >> Initialization of bean failed; nested exception is >> java.lang.NoClassDefFoundError: javax/naming/NamingException >> >> On Dec 2, 12:44 am, Rusty Wright wrote: >>

Re: [appengine-java] Re: Spring MVC with annotations

2009-12-01 Thread Rusty Wright
Is there anything helpful in the error log? You can view it on the dashboard; https://appengine.google.com/ Rafael Reuber wrote: > Hi Toby, > > The error only happens when I try to access the application > through the GAE. It's funny, In my computer it work! > The GAE throws erro, wh

Re: [appengine-java] Re: need comment on using @transactional on service layer

2009-11-29 Thread Rusty Wright
Mine are hand written. asianCoolz wrote: > may i know are you generating the domain jdo pojo or handwritten? > > -- > > 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...@g

Re: [appengine-java] need comment on using @transactional on service layer

2009-11-28 Thread Rusty Wright
To me your code looks like a DAO, not a service. This pdf is my reference for understanding the difference between the DAO and service layers: http://apress.com/book/downloadfile/2625 Here's an example of how I'm doing it; I have transactions in the service layer, not the dao layer: http://

Re: [appengine-java] redirect /file.jsp

2009-11-27 Thread Rusty Wright
Here's what I use in my index.jsp to redirect to a url mapped to an action bean/controller; i.e., I use the jstl redirect tag instead of response.redirect(): <%-- isElIgnored="false" needed for GAE --%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageE

Re: [appengine-java] redirect /file.jsp

2009-11-27 Thread Rusty Wright
What happens if instead you do response.sendRedirect(response.encodeRedirectURL("blah.jsp")); Don wrote: > Hi, > > Trivial question for the gurus here, > > if i do: > response.redirect("bla.jsp") > I get > "WARNING: Can not serve /bla.jsp directly. You need to include it in > in your a

Re: [appengine-java] Implementing Authorize.NET Integration with Custom Domain.

2009-11-25 Thread Rusty Wright
For item 1, my usual response is to have a look at Spring Security (aka Acegi). It's probably the most flexible. For item 2, my memory of how Authorize.net's credit card service works (which is similar to CyberSource's Hosted Order Page) is that at the point (page) where the customer enters th

Re: [appengine-java] Re: Is there a recommended way to differentiate between production and dev GAE environments?

2009-11-24 Thread Rusty Wright
The filesystem is read only on app engine; would trying to create a file, in WEB-INF for example, work? I'm wondering if there are corner cases I'm not thinking of where that might fail and falsely report that you're on app engine; for example, if you were doing integration tests under Hudson.

Re: Solved : Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-24 Thread Rusty Wright
r contains > DIgester and Collection classes, but on GAE server you need it. So > download those jars and keep them in your lib folder. > > I dont miss JAXB any more :) > > Thanks, > Ravi. > > > > On Sun, Nov 22, 2009 at 8:13 PM, Rusty Wright <mailto:rwright.li

Re: [appengine-java] Re: problem with using session.getAttribute()

2009-11-24 Thread Rusty Wright
Did you enable sessions? http://code.google.com/appengine/docs/java/config/appconfig.html See the section near the end, Enabling Sessions. Steph wrote: > I also have the same issue when retrieving session objects from a > servlet filter, and running in the local sandbox. > > On Nov 21, 10:11 p

Re: [appengine-java] Help:I can't make a object persistent completely.

2009-11-23 Thread Rusty Wright
Try @Persistent(defaultFetchGroup = "true") on anything that's not listed in the Core Value Types table on http://code.google.com/appengine/docs/java/datastore/dataclasses.html Jolam wrote: > This is the object: > ___ > > @PersistenceCapable(identityType = IdentityType.APP

Re: [appengine-java] JDO x JPA

2009-11-23 Thread Rusty Wright
If you look at Max's examples and test code he does everything in both JDO and JPA, so it seems to me that it's a coin toss. I went with JDO because I heard that it's not as strongly oriented to relational sql databases. Rafael Reuber wrote: > Hi there, > > What's the better suport for G

Re: [appengine-java] A web service with security (java)

2009-11-23 Thread Rusty Wright
How about Google Accounts? http://code.google.com/appengine/docs/java/users/ Or, if you want something even more widespread, there's OpenID; http://openid.net/ On the OpenID site, look at the list at the bottom, "Who is using OpenID". Yiming Li wrote: > Hi Andrey, > I don't know t

Re: [appengine-java] Ancestor queries in JPQL? / Getting "Key of parameter value does not have a parent"

2009-11-23 Thread Rusty Wright
ePersist, @PreUpdate, and the JDO StoreCallback interface, which I didn't know about. Ikai L (Google) wrote: > I'm happy to add this to the official docs if it isn't clear. I think > this makes sense under the JPA section or the section about ancestor > queries. &g

Re: [appengine-java] Ancestor queries in JPQL? / Getting "Key of parameter value does not have a parent"

2009-11-22 Thread Rusty Wright
There are way too many hidden secrets, like this parent-pk query, that are buried throughout the App Engine documentation. It would really be nice if these things were more clearly documented. Ikai L (Google) wrote: > Hey Todd, > > There are a few different things you can do here: > > 1. Use

Re: [appengine-java] Re: A web service with security (java)

2009-11-22 Thread Rusty Wright
There's also Spring Security (aka Acegi). Andrey wrote: > Now I can (partly) answer the question by myself :) > > 1) In the simplest situation it's easy to develop a stateless web > service (the userName and userPassword can be passed straight into the > request url). > 2) To simplify the transf

Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-22 Thread Rusty Wright
Here are some bookmarks I have for xml: http://www.xom.nu/ http://www.smooks.org/mediawiki/index.php?title=Main_Page http://jibx.sourceforge.net/ http://xstream.codehaus.org/ http://castor.org/ I'll be trying castor. Ravi wrote: > Hi Few days back i asked a question that which libraries can be

Re: [appengine-java] IOException on uploading app

2009-11-19 Thread Rusty Wright
I had a problem with newlines inside things in the web.xml. For example, this wouldn't work: sample006-gae It needed to be sample006-gae david jones wrote: > heya, > > i'm quite (well, very) new to the google app engine and am just trying > to upload a very basic start

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-18 Thread Rusty Wright
Excellent; thanks. I also took out the "uber catch" I was thinking I needed; it was late at night and I was awash in catch blocks. ted stockwell wrote: > > On Nov 17, 10:27 pm, Rusty Wright wrote: >> Ah, thanks. So if I knew how many servers my cloud is made of then

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread Rusty Wright
I think my try/catch is missing a catch at the end: catch (final Throwable ex) { exception = ex; break; // fail } Rusty Wright wrote: > Ah, thanks. So if I knew how many servers my cloud is made of then I > should use that number

Re: [appengine-java] How to resize images with high quality?

2009-11-17 Thread Rusty Wright
Can you convert its format with the images service? Gif is 8 bits per pixel so if it's resizing it in that format I can understand why it would end up ugly (when it's merging pixels it's choosing the result color from the existing limited 256 color palette). If you can convert its format, try

Re: [appengine-java] Re: Concurrency In Transaction

2009-11-17 Thread Rusty Wright
etry } this.log.debug("retryCount: {}, exception: {}", Integer.valueOf(retryCount), ExceptionUtils.getFullStackTrace(exception)); } throw (exception); } ted stockwell wrote: > > On Nov 17,

  1   2   >