Home » Modeling » EMF » [CDO] Hibernate classloading problems
[CDO] Hibernate classloading problems [message #429647] |
Tue, 28 April 2009 18:10 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
I'm sure that other people have had this problem before as well, so I'm hoping
for some help.
I was working with CDO to do some persisting of my emf model to a database. I
started with the default horizontal mapping provided by CDO, but found that it
was terribly slow (ending with more than a minute to commit about 10000
objects). So, I decided to try to use the hibernate mapping, but now I'm ending
with NoClassDefFound errors. The culprit comes on a simple line:
return CDOHibernateUtil.createStore(new TeneoHibernateMappingProvider());
My stack trace is this:
java.lang.NoClassDefFoundError: org/hibernate/Interceptor
at
org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
at ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
at
ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
at
ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
at
ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
I've tried to follow the set-up guidlines for teneo, etc. That is, I have a
plugin that contains the hibernate jars, and the packages are exported.
Eclipse-BuddyPolicy is set to dependent, and the dependency is re-exported in my
plugin. So, any ideas? Using CDO version 1.0.8. Thanks.
Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429651 is a reply to message #429647] |
Tue, 28 April 2009 19:01 |
|
Del,
I hope that Martin or others can help with the Hibernate questions.
But I'd like to point out that the performance of the DBStore has been
drastically improved in the 2.0 stream.
With some special configuration properties (e.g. turn off auditing, ...)
it should scale pretty well now.
Maybe Stefan can explain more details when he is back from vacation next
week...
Cheers
/Eike
----
http://thegordian.blogspot.com
Del Myers schrieb:
> I'm sure that other people have had this problem before as well, so
> I'm hoping for some help.
>
> I was working with CDO to do some persisting of my emf model to a
> database. I started with the default horizontal mapping provided by
> CDO, but found that it was terribly slow (ending with more than a
> minute to commit about 10000 objects). So, I decided to try to use the
> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
> culprit comes on a simple line:
>
> return CDOHibernateUtil.createStore(new TeneoHibernateMappingProvider());
>
> My stack trace is this:
>
> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
> at
> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>
> at
> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>
> at
> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>
> at
> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> I've tried to follow the set-up guidlines for teneo, etc. That is, I
> have a plugin that contains the hibernate jars, and the packages are
> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
> Thanks.
>
> Del
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Hibernate classloading problems [message #429653 is a reply to message #429651] |
Tue, 28 April 2009 19:08 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
Yes, and I would prefer to use the DBStore as well (I don't want to have to
distribute hibernate), but I don't usually like to develop in the milestone
releases of Eclipse. Though I may just suck-it-up for this one because I don't
want to have to scrap EMF and my CDO work.
If I were to go to Galileo and CDO 2, do you have any other tips for performance
enhancements?
Del
Eike Stepper wrote:
> Del,
>
> I hope that Martin or others can help with the Hibernate questions.
>
> But I'd like to point out that the performance of the DBStore has been
> drastically improved in the 2.0 stream.
> With some special configuration properties (e.g. turn off auditing, ...)
> it should scale pretty well now.
> Maybe Stefan can explain more details when he is back from vacation next
> week...
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
> Del Myers schrieb:
>> I'm sure that other people have had this problem before as well, so
>> I'm hoping for some help.
>>
>> I was working with CDO to do some persisting of my emf model to a
>> database. I started with the default horizontal mapping provided by
>> CDO, but found that it was terribly slow (ending with more than a
>> minute to commit about 10000 objects). So, I decided to try to use the
>> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
>> culprit comes on a simple line:
>>
>> return CDOHibernateUtil.createStore(new TeneoHibernateMappingProvider());
>>
>> My stack trace is this:
>>
>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>> at
>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>
>> at
>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>
>> at
>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>
>> at
>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>
>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>> have a plugin that contains the hibernate jars, and the packages are
>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>> Thanks.
>>
>> Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429654 is a reply to message #429653] |
Tue, 28 April 2009 19:18 |
|
Del Myers schrieb:
> Yes, and I would prefer to use the DBStore as well (I don't want to
> have to distribute hibernate), but I don't usually like to develop in
> the milestone releases of Eclipse. Though I may just suck-it-up for
> this one because I don't want to have to scrap EMF and my CDO work.
>
> If I were to go to Galileo and CDO 2, do you have any other tips for
> performance enhancements?
I'd definitely start here:
http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
Cheers
/Eike
----
http://thegordian.blogspot.com
>
> Del
>
> Eike Stepper wrote:
>> Del,
>>
>> I hope that Martin or others can help with the Hibernate questions.
>>
>> But I'd like to point out that the performance of the DBStore has been
>> drastically improved in the 2.0 stream.
>> With some special configuration properties (e.g. turn off auditing, ...)
>> it should scale pretty well now.
>> Maybe Stefan can explain more details when he is back from vacation next
>> week...
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>
>> Del Myers schrieb:
>>> I'm sure that other people have had this problem before as well, so
>>> I'm hoping for some help.
>>>
>>> I was working with CDO to do some persisting of my emf model to a
>>> database. I started with the default horizontal mapping provided by
>>> CDO, but found that it was terribly slow (ending with more than a
>>> minute to commit about 10000 objects). So, I decided to try to use the
>>> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
>>> culprit comes on a simple line:
>>>
>>> return CDOHibernateUtil.createStore(new
>>> TeneoHibernateMappingProvider());
>>>
>>> My stack trace is this:
>>>
>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>> at
>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>
>>>
>>> at
>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>
>>>
>>> at
>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>
>>>
>>> at
>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>
>>>
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>
>>>
>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>> have a plugin that contains the hibernate jars, and the packages are
>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>> Thanks.
>>>
>>> Del
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Hibernate classloading problems [message #429660 is a reply to message #429654] |
Tue, 28 April 2009 20:52 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to follow the
instructions in this little tutorial:
http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
I need to have the "Lazy Populating Package Registry", but
config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
Del
Eike Stepper wrote:
> Del Myers schrieb:
>> Yes, and I would prefer to use the DBStore as well (I don't want to
>> have to distribute hibernate), but I don't usually like to develop in
>> the milestone releases of Eclipse. Though I may just suck-it-up for
>> this one because I don't want to have to scrap EMF and my CDO work.
>>
>> If I were to go to Galileo and CDO 2, do you have any other tips for
>> performance enhancements?
> I'd definitely start here:
> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>> Del
>>
>> Eike Stepper wrote:
>>> Del,
>>>
>>> I hope that Martin or others can help with the Hibernate questions.
>>>
>>> But I'd like to point out that the performance of the DBStore has been
>>> drastically improved in the 2.0 stream.
>>> With some special configuration properties (e.g. turn off auditing, ...)
>>> it should scale pretty well now.
>>> Maybe Stefan can explain more details when he is back from vacation next
>>> week...
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>>
>>>
>>>
>>> Del Myers schrieb:
>>>> I'm sure that other people have had this problem before as well, so
>>>> I'm hoping for some help.
>>>>
>>>> I was working with CDO to do some persisting of my emf model to a
>>>> database. I started with the default horizontal mapping provided by
>>>> CDO, but found that it was terribly slow (ending with more than a
>>>> minute to commit about 10000 objects). So, I decided to try to use the
>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
>>>> culprit comes on a simple line:
>>>>
>>>> return CDOHibernateUtil.createStore(new
>>>> TeneoHibernateMappingProvider());
>>>>
>>>> My stack trace is this:
>>>>
>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>> at
>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>
>>>>
>>>> at
>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>
>>>>
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>>
>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>> have a plugin that contains the hibernate jars, and the packages are
>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>> Thanks.
>>>>
>>>> Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429662 is a reply to message #429660] |
Tue, 28 April 2009 21:25 |
|
Del Myers schrieb:
> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
> follow the instructions in this little tutorial:
> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>
> I need to have the "Lazy Populating Package Registry", but
> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
Nothing, it's the default now ;-)
Cheers
/Eike
----
http://thegordian.blogspot.com
>
> Del
>
> Eike Stepper wrote:
>> Del Myers schrieb:
>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>> have to distribute hibernate), but I don't usually like to develop in
>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>
>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>> performance enhancements?
>> I'd definitely start here:
>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>> Del
>>>
>>> Eike Stepper wrote:
>>>> Del,
>>>>
>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>
>>>> But I'd like to point out that the performance of the DBStore has been
>>>> drastically improved in the 2.0 stream.
>>>> With some special configuration properties (e.g. turn off auditing,
>>>> ...)
>>>> it should scale pretty well now.
>>>> Maybe Stefan can explain more details when he is back from vacation
>>>> next
>>>> week...
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>>
>>>>
>>>>
>>>> Del Myers schrieb:
>>>>> I'm sure that other people have had this problem before as well, so
>>>>> I'm hoping for some help.
>>>>>
>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>> database. I started with the default horizontal mapping provided by
>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>> minute to commit about 10000 objects). So, I decided to try to use
>>>>> the
>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors.
>>>>> The
>>>>> culprit comes on a simple line:
>>>>>
>>>>> return CDOHibernateUtil.createStore(new
>>>>> TeneoHibernateMappingProvider());
>>>>>
>>>>> My stack trace is this:
>>>>>
>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>> at
>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>
>>>>>
>>>>>
>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>
>>>>>
>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>> Thanks.
>>>>>
>>>>> Del
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Hibernate classloading problems [message #429664 is a reply to message #429660] |
Tue, 28 April 2009 21:52 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
And now, HSQLDBDataSource won't load either! Same basic problem as I mentioned
with hibernate before, but now CDO can't find org.hsqldb.jdbc.jdbcDataSource. It
is definitely in my plugin, and it is definitely being exported. What is going on?
java.lang.NoClassDefFoundError: org/hsqldb/jdbc/jdbcDataSource
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:166)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:574)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:544)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:475)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:463)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:443)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:194)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:376)
at
org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:449)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:156)
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:138)
at ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:87)
at
ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:122)
at
ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
at
ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getTrace Session(CDOProgramSketch.java:164)
at
ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:106)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Del Myers wrote:
> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
> follow the instructions in this little tutorial:
> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>
> I need to have the "Lazy Populating Package Registry", but
> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>
> Del
>
> Eike Stepper wrote:
>> Del Myers schrieb:
>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>> have to distribute hibernate), but I don't usually like to develop in
>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>
>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>> performance enhancements?
>> I'd definitely start here:
>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>> Del
>>>
>>> Eike Stepper wrote:
>>>> Del,
>>>>
>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>
>>>> But I'd like to point out that the performance of the DBStore has been
>>>> drastically improved in the 2.0 stream.
>>>> With some special configuration properties (e.g. turn off auditing,
>>>> ...)
>>>> it should scale pretty well now.
>>>> Maybe Stefan can explain more details when he is back from vacation
>>>> next
>>>> week...
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>>
>>>>
>>>>
>>>> Del Myers schrieb:
>>>>> I'm sure that other people have had this problem before as well, so
>>>>> I'm hoping for some help.
>>>>>
>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>> database. I started with the default horizontal mapping provided by
>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>> minute to commit about 10000 objects). So, I decided to try to use the
>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
>>>>> culprit comes on a simple line:
>>>>>
>>>>> return CDOHibernateUtil.createStore(new
>>>>> TeneoHibernateMappingProvider());
>>>>>
>>>>> My stack trace is this:
>>>>>
>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>> at
>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>
>>>>>
>>>>>
>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>
>>>>>
>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>> Thanks.
>>>>>
>>>>> Del
> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
> follow the instructions in this little tutorial:
> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>
> I need to have the "Lazy Populating Package Registry", but
> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>
> Del
>
> Eike Stepper wrote:
>> Del Myers schrieb:
>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>> have to distribute hibernate), but I don't usually like to develop in
>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>
>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>> performance enhancements?
>> I'd definitely start here:
>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://thegordian.blogspot.com
>>
>>
>>> Del
>>>
>>> Eike Stepper wrote:
>>>> Del,
>>>>
>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>
>>>> But I'd like to point out that the performance of the DBStore has been
>>>> drastically improved in the 2.0 stream.
>>>> With some special configuration properties (e.g. turn off auditing,
>>>> ...)
>>>> it should scale pretty well now.
>>>> Maybe Stefan can explain more details when he is back from vacation
>>>> next
>>>> week...
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>>
>>>>
>>>>
>>>> Del Myers schrieb:
>>>>> I'm sure that other people have had this problem before as well, so
>>>>> I'm hoping for some help.
>>>>>
>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>> database. I started with the default horizontal mapping provided by
>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>> minute to commit about 10000 objects). So, I decided to try to use the
>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors. The
>>>>> culprit comes on a simple line:
>>>>>
>>>>> return CDOHibernateUtil.createStore(new
>>>>> TeneoHibernateMappingProvider());
>>>>>
>>>>> My stack trace is this:
>>>>>
>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>> at
>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>
>>>>>
>>>>>
>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>
>>>>>
>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>> Thanks.
>>>>>
>>>>> Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429665 is a reply to message #429662] |
Tue, 28 April 2009 21:53 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
OK, that's good news. Thanks.
:)
Eike Stepper wrote:
> Del Myers schrieb:
>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>> follow the instructions in this little tutorial:
>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>
>> I need to have the "Lazy Populating Package Registry", but
>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
> Nothing, it's the default now ;-)
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>> Del
>>
>> Eike Stepper wrote:
>>> Del Myers schrieb:
>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>> have to distribute hibernate), but I don't usually like to develop in
>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>
>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>> performance enhancements?
>>> I'd definitely start here:
>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>>
>>>
>>>> Del
>>>>
>>>> Eike Stepper wrote:
>>>>> Del,
>>>>>
>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>
>>>>> But I'd like to point out that the performance of the DBStore has been
>>>>> drastically improved in the 2.0 stream.
>>>>> With some special configuration properties (e.g. turn off auditing,
>>>>> ...)
>>>>> it should scale pretty well now.
>>>>> Maybe Stefan can explain more details when he is back from vacation
>>>>> next
>>>>> week...
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>> Del Myers schrieb:
>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>> I'm hoping for some help.
>>>>>>
>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>> database. I started with the default horizontal mapping provided by
>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>> minute to commit about 10000 objects). So, I decided to try to use
>>>>>> the
>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors.
>>>>>> The
>>>>>> culprit comes on a simple line:
>>>>>>
>>>>>> return CDOHibernateUtil.createStore(new
>>>>>> TeneoHibernateMappingProvider());
>>>>>>
>>>>>> My stack trace is this:
>>>>>>
>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>> at
>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>
>>>>>>
>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>>> Thanks.
>>>>>>
>>>>>> Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429666 is a reply to message #429664] |
Tue, 28 April 2009 22:55 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
Never mind, I was just forgetting to export the version number of the packages.
I'm guessing that is what was going wrong with hibernate as well.
And, wow, the new CDO mapping is a LOT faster. My commits went from taking more
than a minute to taking less than a second! Good work!
Del
Del Myers wrote:
> And now, HSQLDBDataSource won't load either! Same basic problem as I
> mentioned with hibernate before, but now CDO can't find
> org.hsqldb.jdbc.jdbcDataSource. It is definitely in my plugin, and it is
> definitely being exported. What is going on?
>
> java.lang.NoClassDefFoundError: org/hsqldb/jdbc/jdbcDataSource
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:166)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:574)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:544)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:475)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:463)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:443)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:194)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:376)
>
> at
> org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:449)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
>
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:88)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:156)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:138)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:87)
>
> at
> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:122)
>
> at
> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>
> at
> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getTrace Session(CDOProgramSketch.java:164)
>
> at
> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:106)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
>
> Del Myers wrote:
>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>> follow the instructions in this little tutorial:
>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>
>> I need to have the "Lazy Populating Package Registry", but
>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>
>> Del
>>
>> Eike Stepper wrote:
>>> Del Myers schrieb:
>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>> have to distribute hibernate), but I don't usually like to develop in
>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>
>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>> performance enhancements?
>>> I'd definitely start here:
>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>>
>>>
>>>> Del
>>>>
>>>> Eike Stepper wrote:
>>>>> Del,
>>>>>
>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>
>>>>> But I'd like to point out that the performance of the DBStore has been
>>>>> drastically improved in the 2.0 stream.
>>>>> With some special configuration properties (e.g. turn off auditing,
>>>>> ...)
>>>>> it should scale pretty well now.
>>>>> Maybe Stefan can explain more details when he is back from vacation
>>>>> next
>>>>> week...
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>> Del Myers schrieb:
>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>> I'm hoping for some help.
>>>>>>
>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>> database. I started with the default horizontal mapping provided by
>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>> minute to commit about 10000 objects). So, I decided to try to use
>>>>>> the
>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors.
>>>>>> The
>>>>>> culprit comes on a simple line:
>>>>>>
>>>>>> return CDOHibernateUtil.createStore(new
>>>>>> TeneoHibernateMappingProvider());
>>>>>>
>>>>>> My stack trace is this:
>>>>>>
>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>> at
>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>
>>>>>>
>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>>> Thanks.
>>>>>>
>>>>>> Del
>
>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>> follow the instructions in this little tutorial:
>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>
>> I need to have the "Lazy Populating Package Registry", but
>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>
>> Del
>>
>> Eike Stepper wrote:
>>> Del Myers schrieb:
>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>> have to distribute hibernate), but I don't usually like to develop in
>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>
>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>> performance enhancements?
>>> I'd definitely start here:
>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://thegordian.blogspot.com
>>>
>>>
>>>> Del
>>>>
>>>> Eike Stepper wrote:
>>>>> Del,
>>>>>
>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>
>>>>> But I'd like to point out that the performance of the DBStore has been
>>>>> drastically improved in the 2.0 stream.
>>>>> With some special configuration properties (e.g. turn off auditing,
>>>>> ...)
>>>>> it should scale pretty well now.
>>>>> Maybe Stefan can explain more details when he is back from vacation
>>>>> next
>>>>> week...
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>> Del Myers schrieb:
>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>> I'm hoping for some help.
>>>>>>
>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>> database. I started with the default horizontal mapping provided by
>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>> minute to commit about 10000 objects). So, I decided to try to use
>>>>>> the
>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound errors.
>>>>>> The
>>>>>> culprit comes on a simple line:
>>>>>>
>>>>>> return CDOHibernateUtil.createStore(new
>>>>>> TeneoHibernateMappingProvider());
>>>>>>
>>>>>> My stack trace is this:
>>>>>>
>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>> at
>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>
>>>>>>
>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That is, I
>>>>>> have a plugin that contains the hibernate jars, and the packages are
>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the dependency
>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version 1.0.8.
>>>>>> Thanks.
>>>>>>
>>>>>> Del
|
|
|
Re: [CDO] Hibernate classloading problems [message #429671 is a reply to message #429666] |
Wed, 29 April 2009 06:09 |
|
Del Myers schrieb:
> Never mind, I was just forgetting to export the version number of the
> packages. I'm guessing that is what was going wrong with hibernate as
> well.
Hey, I'm glad that I went to bed between reading about your classloading
problem and answering :P
>
> And, wow, the new CDO mapping is a LOT faster. My commits went from
> taking more than a minute to taking less than a second! Good work!
Good to hear that! And you will find out that the 2.0 stream not offers
greatly improved performance but also a lot of new functionality and
configurability. Since Ganymede we added 141 enhancements:
https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advan ced&short_desc_type=allwordssubstr&short_desc=&c lassification=Modeling&product=EMF&component=CDO& ;component=Net4j&long_desc_type=allwordssubstr&long_ desc=&bug_file_loc_type=allwordssubstr&bug_file_loc= &status_whiteboard_type=allwordssubstr&status_whiteb oard=&keywords_type=allwords&keywords=&bug_statu s=RESOLVED&bug_status=VERIFIED&resolution=FIXED& bug_severity=enhancement&emailtype1=substring&email1 =&emailtype2=substring&email2=&bugidtype=include &bug_id=&votes=&chfieldfrom=&chfieldto=Now&a mp;chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+ as+last+time&field0-0-0=noop&type0-0-0=noop&valu e0-0-0=
and fixed 151 bugs:
https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advan ced&short_desc_type=allwordssubstr&short_desc=&c lassification=Modeling&product=EMF&component=CDO& ;component=Net4j&long_desc_type=allwordssubstr&long_ desc=&bug_file_loc_type=allwordssubstr&bug_file_loc= &status_whiteboard_type=allwordssubstr&status_whiteb oard=&keywords_type=allwords&keywords=&bug_statu s=RESOLVED&bug_status=VERIFIED&resolution=FIXED& bug_severity=blocker&bug_severity=critical&bug_sever ity=major&bug_severity=normal&bug_severity=minor& ;bug_severity=trivial&emailtype1=substring&email1=&a mp;emailtype2=substring&email2=&bugidtype=include&am p;bug_id=&votes=&chfieldfrom=&chfieldto=Now& chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+ last+time&known_name=Galileo-Enhancements&query_base d_on=Galileo-Enhancements&field0-0-0=noop&type0-0-0= noop&value0-0-0=
Cheers
/Eike
----
http://thegordian.blogspot.com
>
> Del
>
> Del Myers wrote:
>> And now, HSQLDBDataSource won't load either! Same basic problem as I
>> mentioned with hibernate before, but now CDO can't find
>> org.hsqldb.jdbc.jdbcDataSource. It is definitely in my plugin, and it
>> is definitely being exported. What is going on?
>>
>> java.lang.NoClassDefFoundError: org/hsqldb/jdbc/jdbcDataSource
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:166)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:574)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:544)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:475)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:463)
>>
>> at
>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:443)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:194)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:376)
>>
>> at
>> org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:449)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
>>
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:88)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:156)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:138)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:87)
>>
>> at
>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:122)
>>
>> at
>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>
>> at
>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getTrace Session(CDOProgramSketch.java:164)
>>
>> at
>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:106)
>>
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>
>>
>> Del Myers wrote:
>>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>>> follow the instructions in this little tutorial:
>>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>>
>>> I need to have the "Lazy Populating Package Registry", but
>>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>>
>>> Del
>>>
>>> Eike Stepper wrote:
>>>> Del Myers schrieb:
>>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>>> have to distribute hibernate), but I don't usually like to develop in
>>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>>
>>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>>> performance enhancements?
>>>> I'd definitely start here:
>>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>>
>>>>
>>>>> Del
>>>>>
>>>>> Eike Stepper wrote:
>>>>>> Del,
>>>>>>
>>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>>
>>>>>> But I'd like to point out that the performance of the DBStore has
>>>>>> been
>>>>>> drastically improved in the 2.0 stream.
>>>>>> With some special configuration properties (e.g. turn off
>>>>>> auditing, ...)
>>>>>> it should scale pretty well now.
>>>>>> Maybe Stefan can explain more details when he is back from
>>>>>> vacation next
>>>>>> week...
>>>>>>
>>>>>> Cheers
>>>>>> /Eike
>>>>>>
>>>>>> ----
>>>>>> http://thegordian.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> Del Myers schrieb:
>>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>>> I'm hoping for some help.
>>>>>>>
>>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>>> database. I started with the default horizontal mapping provided by
>>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>>> minute to commit about 10000 objects). So, I decided to try to
>>>>>>> use the
>>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound
>>>>>>> errors. The
>>>>>>> culprit comes on a simple line:
>>>>>>>
>>>>>>> return CDOHibernateUtil.createStore(new
>>>>>>> TeneoHibernateMappingProvider());
>>>>>>>
>>>>>>> My stack trace is this:
>>>>>>>
>>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>>> at
>>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>>
>>>>>>>
>>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That
>>>>>>> is, I
>>>>>>> have a plugin that contains the hibernate jars, and the packages
>>>>>>> are
>>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the
>>>>>>> dependency
>>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version
>>>>>>> 1.0.8.
>>>>>>> Thanks.
>>>>>>>
>>>>>>> Del
>>
>>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>>> follow the instructions in this little tutorial:
>>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>>
>>> I need to have the "Lazy Populating Package Registry", but
>>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>>
>>> Del
>>>
>>> Eike Stepper wrote:
>>>> Del Myers schrieb:
>>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>>> have to distribute hibernate), but I don't usually like to develop in
>>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>>
>>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>>> performance enhancements?
>>>> I'd definitely start here:
>>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>> ----
>>>> http://thegordian.blogspot.com
>>>>
>>>>
>>>>> Del
>>>>>
>>>>> Eike Stepper wrote:
>>>>>> Del,
>>>>>>
>>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>>
>>>>>> But I'd like to point out that the performance of the DBStore has
>>>>>> been
>>>>>> drastically improved in the 2.0 stream.
>>>>>> With some special configuration properties (e.g. turn off
>>>>>> auditing, ...)
>>>>>> it should scale pretty well now.
>>>>>> Maybe Stefan can explain more details when he is back from
>>>>>> vacation next
>>>>>> week...
>>>>>>
>>>>>> Cheers
>>>>>> /Eike
>>>>>>
>>>>>> ----
>>>>>> http://thegordian.blogspot.com
>>>>>>
>>>>>>
>>>>>>
>>>>>> Del Myers schrieb:
>>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>>> I'm hoping for some help.
>>>>>>>
>>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>>> database. I started with the default horizontal mapping provided by
>>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>>> minute to commit about 10000 objects). So, I decided to try to
>>>>>>> use the
>>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound
>>>>>>> errors. The
>>>>>>> culprit comes on a simple line:
>>>>>>>
>>>>>>> return CDOHibernateUtil.createStore(new
>>>>>>> TeneoHibernateMappingProvider());
>>>>>>>
>>>>>>> My stack trace is this:
>>>>>>>
>>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>>> at
>>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>>
>>>>>>>
>>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That
>>>>>>> is, I
>>>>>>> have a plugin that contains the hibernate jars, and the packages
>>>>>>> are
>>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the
>>>>>>> dependency
>>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version
>>>>>>> 1.0.8.
>>>>>>> Thanks.
>>>>>>>
>>>>>>> Del
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Hibernate classloading problems [message #429672 is a reply to message #429671] |
Wed, 29 April 2009 06:16 |
|
Eike Stepper schrieb:
> [...]
>> And, wow, the new CDO mapping is a LOT faster. My commits went from
>> taking more than a minute to taking less than a second! Good work!
>>
> Good to hear that! And you will find out that the 2.0 stream not offers
>
Should have been "not *only* offers" :P
> greatly improved performance but also a lot of new functionality and
> configurability. Since Ganymede we added 141 enhancements:
>
> https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advan ced&short_desc_type=allwordssubstr&short_desc=&c lassification=Modeling&product=EMF&component=CDO& ;component=Net4j&long_desc_type=allwordssubstr&long_ desc=&bug_file_loc_type=allwordssubstr&bug_file_loc= &status_whiteboard_type=allwordssubstr&status_whiteb oard=&keywords_type=allwords&keywords=&bug_statu s=RESOLVED&bug_status=VERIFIED&resolution=FIXED& bug_severity=enhancement&emailtype1=substring&email1 =&emailtype2=substring&email2=&bugidtype=include &bug_id=&votes=&chfieldfrom=&chfieldto=Now&a mp;chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+ as+last+time&field0-0-0=noop&type0-0-0=noop&valu e0-0-0=
>
> and fixed 151 bugs:
>
> https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advan ced&short_desc_type=allwordssubstr&short_desc=&c lassification=Modeling&product=EMF&component=CDO& ;component=Net4j&long_desc_type=allwordssubstr&long_ desc=&bug_file_loc_type=allwordssubstr&bug_file_loc= &status_whiteboard_type=allwordssubstr&status_whiteb oard=&keywords_type=allwords&keywords=&bug_statu s=RESOLVED&bug_status=VERIFIED&resolution=FIXED& bug_severity=blocker&bug_severity=critical&bug_sever ity=major&bug_severity=normal&bug_severity=minor& ;bug_severity=trivial&emailtype1=substring&email1=&a mp;emailtype2=substring&email2=&bugidtype=include&am p;bug_id=&votes=&chfieldfrom=&chfieldto=Now& chfieldvalue=&cmdtype=doit&order=Reuse+same+sort+as+ last+time&known_name=Galileo-Enhancements&query_base d_on=Galileo-Enhancements&field0-0-0=noop&type0-0-0= noop&value0-0-0=
>
> Cheers
> /Eike
>
> ----
> http://thegordian.blogspot.com
>
>
>
>> Del
>>
>> Del Myers wrote:
>>
>>> And now, HSQLDBDataSource won't load either! Same basic problem as I
>>> mentioned with hibernate before, but now CDO can't find
>>> org.hsqldb.jdbc.jdbcDataSource. It is definitely in my plugin, and it
>>> is definitely being exported. What is going on?
>>>
>>> java.lang.NoClassDefFoundError: org/hsqldb/jdbc/jdbcDataSource
>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:166)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:574)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:544)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:475)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass_LockClassLoader(ClasspathManager.java:463)
>>>
>>> at
>>> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:443)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:194)
>>>
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:376)
>>>
>>> at
>>> org.eclipse.osgi.internal.loader.SingleSourcePackage.loadCla ss(SingleSourcePackage.java:33)
>>>
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:449)
>>>
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
>>>
>>> at
>>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
>>>
>>> at
>>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:88)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:156)
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:138)
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:87)
>>>
>>> at
>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:122)
>>>
>>> at
>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>
>>> at
>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getTrace Session(CDOProgramSketch.java:164)
>>>
>>> at
>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:106)
>>>
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>
>>>
>>>
>>> Del Myers wrote:
>>>
>>>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>>>> follow the instructions in this little tutorial:
>>>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>>>
>>>> I need to have the "Lazy Populating Package Registry", but
>>>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>>>
>>>> Del
>>>>
>>>> Eike Stepper wrote:
>>>>
>>>>> Del Myers schrieb:
>>>>>
>>>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>>>> have to distribute hibernate), but I don't usually like to develop in
>>>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>>>
>>>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>>>> performance enhancements?
>>>>>>
>>>>> I'd definitely start here:
>>>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>>> Del
>>>>>>
>>>>>> Eike Stepper wrote:
>>>>>>
>>>>>>> Del,
>>>>>>>
>>>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>>>
>>>>>>> But I'd like to point out that the performance of the DBStore has
>>>>>>> been
>>>>>>> drastically improved in the 2.0 stream.
>>>>>>> With some special configuration properties (e.g. turn off
>>>>>>> auditing, ...)
>>>>>>> it should scale pretty well now.
>>>>>>> Maybe Stefan can explain more details when he is back from
>>>>>>> vacation next
>>>>>>> week...
>>>>>>>
>>>>>>> Cheers
>>>>>>> /Eike
>>>>>>>
>>>>>>> ----
>>>>>>> http://thegordian.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Del Myers schrieb:
>>>>>>>
>>>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>>>> I'm hoping for some help.
>>>>>>>>
>>>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>>>> database. I started with the default horizontal mapping provided by
>>>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>>>> minute to commit about 10000 objects). So, I decided to try to
>>>>>>>> use the
>>>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound
>>>>>>>> errors. The
>>>>>>>> culprit comes on a simple line:
>>>>>>>>
>>>>>>>> return CDOHibernateUtil.createStore(new
>>>>>>>> TeneoHibernateMappingProvider());
>>>>>>>>
>>>>>>>> My stack trace is this:
>>>>>>>>
>>>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>>>> at
>>>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>>>
>>>>>>>>
>>>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That
>>>>>>>> is, I
>>>>>>>> have a plugin that contains the hibernate jars, and the packages
>>>>>>>> are
>>>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the
>>>>>>>> dependency
>>>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version
>>>>>>>> 1.0.8.
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> Del
>>>>>>>>
>>>> OK, I'm trying 2.0 now, but all of my code is broken. I'm trying to
>>>> follow the instructions in this little tutorial:
>>>> http://wiki.eclipse.org/Run_a_CDO_container_inside_eclipse_r untime
>>>>
>>>> I need to have the "Lazy Populating Package Registry", but
>>>> config.setLazyPopulatingPackageRegistry() is now missing. What do I do?
>>>>
>>>> Del
>>>>
>>>> Eike Stepper wrote:
>>>>
>>>>> Del Myers schrieb:
>>>>>
>>>>>> Yes, and I would prefer to use the DBStore as well (I don't want to
>>>>>> have to distribute hibernate), but I don't usually like to develop in
>>>>>> the milestone releases of Eclipse. Though I may just suck-it-up for
>>>>>> this one because I don't want to have to scrap EMF and my CDO work.
>>>>>>
>>>>>> If I were to go to Galileo and CDO 2, do you have any other tips for
>>>>>> performance enhancements?
>>>>>>
>>>>> I'd definitely start here:
>>>>> http://wiki.eclipse.org/Tweaking_CDO_Performance ;-)
>>>>>
>>>>> Cheers
>>>>> /Eike
>>>>>
>>>>> ----
>>>>> http://thegordian.blogspot.com
>>>>>
>>>>>
>>>>>
>>>>>> Del
>>>>>>
>>>>>> Eike Stepper wrote:
>>>>>>
>>>>>>> Del,
>>>>>>>
>>>>>>> I hope that Martin or others can help with the Hibernate questions.
>>>>>>>
>>>>>>> But I'd like to point out that the performance of the DBStore has
>>>>>>> been
>>>>>>> drastically improved in the 2.0 stream.
>>>>>>> With some special configuration properties (e.g. turn off
>>>>>>> auditing, ...)
>>>>>>> it should scale pretty well now.
>>>>>>> Maybe Stefan can explain more details when he is back from
>>>>>>> vacation next
>>>>>>> week...
>>>>>>>
>>>>>>> Cheers
>>>>>>> /Eike
>>>>>>>
>>>>>>> ----
>>>>>>> http://thegordian.blogspot.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Del Myers schrieb:
>>>>>>>
>>>>>>>> I'm sure that other people have had this problem before as well, so
>>>>>>>> I'm hoping for some help.
>>>>>>>>
>>>>>>>> I was working with CDO to do some persisting of my emf model to a
>>>>>>>> database. I started with the default horizontal mapping provided by
>>>>>>>> CDO, but found that it was terribly slow (ending with more than a
>>>>>>>> minute to commit about 10000 objects). So, I decided to try to
>>>>>>>> use the
>>>>>>>> hibernate mapping, but now I'm ending with NoClassDefFound
>>>>>>>> errors. The
>>>>>>>> culprit comes on a simple line:
>>>>>>>>
>>>>>>>> return CDOHibernateUtil.createStore(new
>>>>>>>> TeneoHibernateMappingProvider());
>>>>>>>>
>>>>>>>> My stack trace is this:
>>>>>>>>
>>>>>>>> java.lang.NoClassDefFoundError: org/hibernate/Interceptor
>>>>>>>> at
>>>>>>>> org.eclipse.emf.cdo.server.hibernate.CDOHibernateUtil.create Store(CDOHibernateUtil.java:28)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createStor e(HSQLDataPortal.java:213)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.createRepo sitory(HSQLDataPortal.java:149)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.init(HSQLD ataPortal.java:84)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.hsqldb.CDO.internal.HSQLDataPortal.getSession (HSQLDataPortal.java:117)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.internal.CDOProgramSketch.getPorta l(CDOProgramSketch.java:153)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.runTest(PersistTraceJob.java:172)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at
>>>>>>>> ca.uvic.chisel.javasketch.persistence.internal.PersistTraceJ ob.run(PersistTraceJob.java:105)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>>>>
>>>>>>>>
>>>>>>>> I've tried to follow the set-up guidlines for teneo, etc. That
>>>>>>>> is, I
>>>>>>>> have a plugin that contains the hibernate jars, and the packages
>>>>>>>> are
>>>>>>>> exported. Eclipse-BuddyPolicy is set to dependent, and the
>>>>>>>> dependency
>>>>>>>> is re-exported in my plugin. So, any ideas? Using CDO version
>>>>>>>> 1.0.8.
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> Del
>>>>>>>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Sat May 11 00:04:35 GMT 2024
Powered by FUDForum. Page generated in 0.04048 seconds
|