Could you please give more information on the steps needed to solve this, I am new to this and I've wasted an awful lot of time trying to figure this out. Thank you in advance!
On Wednesday, January 11, 2012 1:44:31 PM UTC+2, Cláudio Coelho wrote: > > Solved. Different developers were working with different versions of > gae and the datanucleous plugin was therefore being registered twice. > > On Jan 11, 11:20 am, Cláudio Coelho <ereb...@gmail.com> wrote: > > Hi all, > > I'm using the same helper class (depicted at the bottom of the email) > > to maintain a singleton of the PersistenceManageFactory as I've used > > in previous projects, however, in one of my projects, it was working > > as always, and suddenly I get a NoClassDefFoundError Exception. I made > > sure the .class file was where it was supposed to be, and then I > > further investigated it. Turns out that the line causing the exception > > is the pmfInstance field. Whenever I take that out, the class if > > found, when I have it in, its not found. I have no clue what I've done > > to cause this. We have some issues with mercurial, so in the process > > of fixing a merge I might have done something to cause this, but I > > really can't find anything. It's probably something really simple as > > something for JDO having to be declared somewhere, but I just can't > > find it. > > > > This is probably a rather silly problem, but does anybody have a clue > > of how to solve it? > > > > Cheers > > > > C. > > > > import javax.jdo.JDOHelper; > > import javax.jdo.PersistenceManagerFactory; > > > > public final class PMF { > > private static final PersistenceManagerFactory pmfInstance = > > JDOHelper > > > .getPersistenceManagerFactory("transactions-optional"); > > > > private PMF() { > > } > > > > public static PersistenceManagerFactory get() { > > return pmfInstance; > > } > > > > > > > > > > > > > > > > } -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/bAR6jDuXH2oJ. 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.