+ if nothing helps regarding the User <-> Org-User <-> Org relationship and openJPA/Spring managing it we might consider changing our database design.
Maybe we use the Org_User table as pure mapping table and do not map a Java Object for it, I think this is the way you would normally do Many-To-Many relations => You use a table but where you put only the User_id and the Org_id. That tables has no mapping to a Java-Object and is just internally known to openJPA. And then we have to add a new table *Users-organizations-Properties* where we put the isModerator Flag (and other properties that might come up in the future). That way you would have in the Users-Object directly the List of Organizations and an extra list with User_org_Properties ... not that beautiful either but I think it would be kind of more *normalized* that way I have some open request on the openJPA mailign list regarding that topic but maybe I will try that option on the weekend and see how it goes. Sebastian 2011/8/19 [email protected] <[email protected]> > Hi Maxim, > > I did not see that message about ClassNotFound Since the thing with the > Fieldvaluesid is fixed too. > But: I see a Log.Warn configuration in the persistance.xml. > > What does that mean actually? We are using slf4j as logging fascade because > Red5 does use it. What Logging does openJPA use and where is it configured? > > + We have some answer on where to put our libraries for openJPA best from > the openJPA Mailing List: > > http://mail-archives.apache.org/mod_mbox/openjpa-users/201108.mbox/%[email protected]%3E > > Sebastian > > > > 2011/8/19 Maxim Solodovnik <[email protected]> > >> Hello Sebastian, >> >> Does it helps with resolving >> 3) Exceptions about openJPA complaining that it cannot find Class xyz >> 114931 openmeetings WARN [http-8088-exec-5] openjpa.Runtime - null >> java.lang.ClassNotFoundException: org.openmeetings.app. >> persistence.beans.user.Usergroups >> at org.apache.openjpa.lib.util.MultiClassLoader.findClass( >> MultiClassLoader.java:216) >> 114975 openmeetings WARN [http-8088-exec-5] openjpa.Runtime - null >> java.lang.ClassNotFoundException: org.openmeetings.app. >> persistence.beans.user.UserContacts >> >> I was not able to see it on my environment (will try to reproduce it on >> weekend) >> >> BTW it need to be documented somewhere: *openmeetings is not compilable >> using jdk.1.7.0* (tried oracle jdk.1.7.0x64 win yesterday). >> In the very beginning openJPA failed to enchance (reports version >> incompatibility) >> Then ClassNotFoundException: >> org.openmeetings.app.persistence.beans.user.Usergroups >> is thrown. (I've tried "ant test") >> >> Upgrading openJPA to latest version: 2.1.1 does not helps. >> Probably will need to spend some time on this in the future. >> >> >> On Fri, Aug 19, 2011 at 03:53, [email protected] < >> [email protected]> wrote: >> >>> Sorry send too fast... >>> >>> so this is the combination of JARs that works for me: >>> >>> delete the JAR: openjpa-2.1.0-all.jar from RED5/lib >>> add the JAR: geronimo-jpa_2.0_spec-1.1.jar (from openJPA binaries >>> download) into RED5/lib >>> (this is actually the javax.persistance.* package that we need) >>> >>> add: openjpa-2.1.0.jar and the depenencies it has to >>> openmeetings/WEB-INF/lib >>> >>> => works from me. >>> >>> However the Issue with the User->Org Ralations remain :D >>> But I think it might be better that, at least as long as we have no other >>> advice in adding the JARs into the Servers/lib I would like to have it in >>> the Webapps/lib, I guess it makes it easier to run multiple instances on one >>> red5 srever that way. >>> >>> Sebastian >>> >>> >>> 2011/8/18 [email protected] <[email protected]> >>> >>> >>>> >>>> -- >>>> Sebastian Wagner >>>> http://www.webbase-design.de >>>> http://openmeetings.googlecode.com >>>> http://www.wagner-sebastian.com >>>> [email protected] >>>> >>> >>> >>> >>> -- >>> Sebastian Wagner >>> http://www.webbase-design.de >>> http://openmeetings.googlecode.com >>> http://www.wagner-sebastian.com >>> [email protected] >>> >> >> >> >> -- >> WBR >> Maxim aka solomax >> > > > > -- > Sebastian Wagner > http://www.webbase-design.de > http://openmeetings.googlecode.com > http://www.wagner-sebastian.com > [email protected] > -- Sebastian Wagner http://www.webbase-design.de http://openmeetings.googlecode.com http://www.wagner-sebastian.com [email protected] -- You received this message because you are subscribed to the Google Groups "OpenMeetings developers" 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/openmeetings-dev?hl=en.
