[CDO] Error while committing the transaction [message #892970] |
Mon, 02 July 2012 04:04  |
Eclipse User |
|
|
|
Hi,
While going through the CDO/Hibernate Store tutorial, I came across the following error. It happens when "transaction.commit()" gets executed. I am using CDO version 4.1.0. Has anyone come across a similar issue? Are there any pointers/suggestions that could help me fix this issue. I have looked through the forum, but I haven't found anything helpful.
[ERROR] Rollback in HibernateStore: org.hibernate.MappingException: Unknown entity: org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1190)
at org.hibernate.type.EntityType.toLoggableString(EntityType.java:494)
at org.hibernate.type.AnyType.toLoggableString(AnyType.java:201)
at org.hibernate.type.CollectionType.renderLoggableString(CollectionType.java:193)
at org.hibernate.type.CollectionType.toLoggableString(CollectionType.java:184)
at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:79)
at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:688)
at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:149)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:487)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:43)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:262)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
|
|
|
Re: [CDO] Error while committing the transaction [message #892988 is a reply to message #892986] |
Mon, 02 July 2012 04:35   |
Eclipse User |
|
|
|
Hi Neera,
Which tutorial do you mean?
gr. Martin
On 07/02/2012 10:33 AM, Eike Stepper wrote:
> Hi Neera,
>
> I hope that Martin (cc'ed) can comment on this.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
> Am 02.07.2012 10:04, schrieb Neeraj Bhusare:
>> Hi,
>> While going through the org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl tutorial, I came across the
>> following error. It happens when "transaction.commit()" gets executed. I am using CDO version 4.1.0. Has anyone come
>> across a similar issue? Are there any pointers/suggestions that could help me fix this issue. I have looked through
>> the forum, but I haven't found anything helpful.
>> [ERROR] Rollback in HibernateStore: org.hibernate.MappingException: Unknown entity:
>> org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
>> at org.hibernate.internal.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:1190)
>> at org.hibernate.type.EntityType.toLoggableString(EntityType.java:494)
>> at org.hibernate.type.AnyType.toLoggableString(AnyType.java:201)
>> at org.hibernate.type.CollectionType.renderLoggableString(CollectionType.java:193)
>> at org.hibernate.type.CollectionType.toLoggableString(CollectionType.java:184)
>> at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:79)
>> at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
>> at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
>> at
>> org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
>>
>> at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
>> at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:688)
>> at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:149)
>> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:487)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:43)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
>> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
>> at
>> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:262)
>>
>> at
>> org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:96)
>>
>> at
>> org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
>>
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
>> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
>> at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
>> at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
|
|
Re: [CDO] Error in QuickStartTest example client [message #898667 is a reply to message #898648] |
Fri, 27 July 2012 02:43   |
Eclipse User |
|
|
|
Hi Jim,
Just for my curiosity (and to update the CDO hibernate store wiki), what did you miss or change to get this working?
gr. Martin
On 07/27/2012 06:41 AM, Jim Mitzel wrote:
> OK, Looks like it was an RTFM thing. Apparently the eclipse environment wasn't setup sufficiently. One comment on
> eclipse...
> I am surprised that there isn't more mention by folks or by eclipse on their excellent help that is built in to the
> product.
> I think because it is not mentioned much I tended to go hunting for information on then net, sort of assuming the help
> wasn't all
> that helpful. I also think that when you install/launch eclipse for the first time, it should walk you through the
> configuration
> better and open the help topic on it. Anyways, I'm glad the test is passing now.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Re: [CDO] Error in QuickStartTest example client [message #901039 is a reply to message #898833] |
Thu, 09 August 2012 10:02   |
Eclipse User |
|
|
|
Hi,
I'm using the same tutorial (http://wiki.eclipse.org/CDO/Hibernate_Store/Tutorial) and have the same exception:
Neeraj Bhusare wrote on Mon, 02 July 2012 04:04
[ERROR] Rollback in HibernateStore: org.hibernate.MappingException: Unknown entity: org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
I've done all suggestions on this thread and I'm still stuck with this exception.
I've tried two SGBD (mysql and H2DB), two JDK (1.5, 1.7), I've added org.eclipse.emf.ecore.change to client project dependencies, and disabled teneo.mapping.persistence_xml without any effects.
With JDK 1.5, I can't launch the server, I get an exception: java.lang.UnsupportedClassVersionError: Bad version number in .class file.
I think one of my plug-in is not compatible with 1.5, but I've not investigated.
Without Hibernate Store, the QuickStartTest is working.
The strangest thing is if I run the HibernateQueryTest on an empty database, the testSimpleQueries pass, not the others. If I run it a second time in the same database, the same test give me this exception :
org.eclipse.emf.cdo.util.CommitException: Rollback in HibernateStore: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [SalesOrder#48]
at org.hibernate.internal.SessionFactoryImpl$1$1.handleEntityNotFound(SessionFactoryImpl.java:245)
at org.hibernate.event.internal.DefaultLoadEventListener.returnNarrowedProxy(DefaultLoadEventListener.java:283)
at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:249)
at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:149)
at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:992)
at org.hibernate.internal.SessionImpl.access$1900(SessionImpl.java:170)
at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2336)
at org.hibernate.internal.SessionImpl.get(SessionImpl.java:892)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateUtil.getCDORevision(HibernateUtil.java:468)
at org.eclipse.emf.cdo.server.internal.hibernate.tuplizer.CDOReferenceGetter.get(CDOReferenceGetter.java:47)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValues(AbstractEntityTuplizer.java:606)
at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValues(AbstractEntityPersister.java:4258)
at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:76)
at org.hibernate.internal.util.EntityPrinter.toString(EntityPrinter.java:121)
at org.hibernate.event.internal.AbstractFlushingEventListener.logFlushResults(AbstractFlushingEventListener.java:131)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:107)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1127)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStoreAccessor.doWrite(HibernateStoreAccessor.java:721)
at org.eclipse.emf.cdo.spi.server.StoreAccessorBase.write(StoreAccessorBase.java:149)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext.write(TransactionCommitContext.java:487)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:43)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLoop(InternalCommitContext.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(ProgressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicatingCommit(CommitTransactionIndication.java:262)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTransactionIndication.indicating(CommitTransactionIndication.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CDOServerIndicationWithMonitoring.indicating(CDOServerIndicationWithMonitoring.java:109)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating(IndicationWithMonitoring.java:86)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedInput(IndicationWithResponse.java:92)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:328)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(IndicationWithResponse.java:65)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(IndicationWithMonitoring.java:65)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:253)
at org.eclipse.net4j.signal.Signal.run(Signal.java:149)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactionStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:85)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1134)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.commit(CDOTransactionImpl.java:1154)
at org.eclipse.emf.cdo.examples.hibernate.client.HibernateQueryTest.setUp(HibernateQueryTest.java:77)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Do you have any ideas on how I can solve this ?
Cheers.
|
|
|
|
|
|
|
Re: [CDO] Error in QuickStartTest example client [message #901300 is a reply to message #901072] |
Fri, 10 August 2012 12:40   |
Eclipse User |
|
|
|
Thanks Christophe, it is on my todo list to update the wiki with this..
gr. Martin
On 08/09/2012 05:36 PM, Christoph Keimel wrote:
> Hi All,
>
> I've been doing the tutorial just recently. I had problems with the included CDOHibernateServer.launch. I seemed that
> not all necessary bundles were loaded. I didn't verify this, but after creating my own cdo_hibernate_server.product it
> worked.
>
> I created a new Product configuration based on CDOHibernateServer launch configuration, added:
> - org.eclipse.cdo.server.product
> - com.mysql.jdbc
> - org.apache.log4j
> and hit "Add Required Plug-ins".
>
> This is my product definition:
> <product name="CDO Hibernate Test Server" uid="org.eclipse.emf.cdo.examples.hibernate.server.localhost"
> id="org.eclipse.emf.cdo.server.product.tcp_h2" application="org.eclipse.emf.cdo.server.app" version="1.0.0"
> useFeatures="false" includeLaunchers="true">
>
> <configIni use="default">
> </configIni>
>
> <launcherArgs>
> <programArgs>-debug -console</programArgs>
> <vmArgs>-Xms40m
> -Xmx1024m
> -Ddebug=true
>
> -Dlog4j.debug=true
> -Dnet4j.config="${resource_loc:/org.eclipse.emf.cdo.examples.hibernate.server/config}"
> -Dorg.osgi.service.http.port=8080
>
> -Dosgi.console.enable.builtin=true</vmArgs>
> <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
> </launcherArgs>
>
> <windowImages/>
>
> <launcher>
> <solaris/>
> <win useIco="false">
> <bmp/>
> </win>
> </launcher>
>
> <vm>
> <windows
> include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5</windows>
>
> </vm>
>
> <plugins>
> <plugin id="com.mysql.jdbc"/>
> <plugin id="javax.persistence"/>
> <plugin id="javax.servlet"/>
> <plugin id="org.apache.commons.logging"/>
> <plugin id="org.apache.log4j"/>
> <plugin id="org.dom4j"/>
> <plugin id="org.eclipse.ant.core"/>
> <plugin id="org.eclipse.core.contenttype"/>
> <plugin id="org.eclipse.core.expressions"/>
> <plugin id="org.eclipse.core.filesystem"/>
> <plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
> <plugin id="org.eclipse.core.jobs"/>
> <plugin id="org.eclipse.core.resources"/>
> <plugin id="org.eclipse.core.resources.win32.x86" fragment="true"/>
> <plugin id="org.eclipse.core.runtime"/>
> <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
> <plugin id="org.eclipse.core.variables"/>
> <plugin id="org.eclipse.emf.cdo"/>
> <plugin id="org.eclipse.emf.cdo.common"/>
> <plugin id="org.eclipse.emf.cdo.examples.hibernate.log4j" fragment="true"/>
> <plugin id="org.eclipse.emf.cdo.examples.hibernate.server"/>
> <plugin id="org.eclipse.emf.cdo.server"/>
> <plugin id="org.eclipse.emf.cdo.server.db"/>
> <plugin id="org.eclipse.emf.cdo.server.hibernate"/>
> <plugin id="org.eclipse.emf.cdo.server.hibernate.teneo"/>
> <plugin id="org.eclipse.emf.cdo.server.net4j"/>
> <plugin id="org.eclipse.emf.cdo.server.product"/>
> <plugin id="org.eclipse.emf.common"/>
> <plugin id="org.eclipse.emf.ecore"/>
> <plugin id="org.eclipse.emf.ecore.change"/>
> <plugin id="org.eclipse.emf.ecore.xmi"/>
> <plugin id="org.eclipse.emf.teneo"/>
> <plugin id="org.eclipse.emf.teneo.annotations"/>
> <plugin id="org.eclipse.emf.teneo.hibernate.mapper"/>
> <plugin id="org.eclipse.equinox.app"/>
> <plugin id="org.eclipse.equinox.common"/>
> <plugin id="org.eclipse.equinox.http.jetty"/>
> <plugin id="org.eclipse.equinox.http.registry"/>
> <plugin id="org.eclipse.equinox.http.servlet"/>
> <plugin id="org.eclipse.equinox.preferences"/>
> <plugin id="org.eclipse.equinox.registry"/>
> <plugin id="org.eclipse.jetty.continuation"/>
> <plugin id="org.eclipse.jetty.http"/>
> <plugin id="org.eclipse.jetty.io"/>
> <plugin id="org.eclipse.jetty.security"/>
> <plugin id="org.eclipse.jetty.server"/>
> <plugin id="org.eclipse.jetty.servlet"/>
> <plugin id="org.eclipse.jetty.util"/>
> <plugin id="org.eclipse.net4j"/>
> <plugin id="org.eclipse.net4j.db"/>
> <plugin id="org.eclipse.net4j.db.h2"/>
> <plugin id="org.eclipse.net4j.tcp"/>
> <plugin id="org.eclipse.net4j.util"/>
> <plugin id="org.eclipse.osgi"/>
> <plugin id="org.eclipse.osgi.services"/>
> <plugin id="org.eclipse.team.core"/>
> <plugin id="org.h2"/>
> <plugin id="org.hibernate"/>
> </plugins>
>
> <configurations>
> <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
> <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
> <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
> </configurations>
>
> </product>
>
>
> Versions:
> EMF 2.8.0.v20120608
> CDO 4.1.0.v20120612
> Teneo CDO 2.0.0.v20120709
> MySql Server 5.5
>
> I also had to change to hibernate.dialect to "org.hibernate.dialect.MySQL5InnoDBDialect".
>
> Even though J2SE-1.5 is defined in the product, I have JDK 1.6 installed and use it to run server and client.
>
> Hope this helps ...
>
> Greetings
> Christoph
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Re: [CDO] Error in QuickStartTest example client [message #920749 is a reply to message #912058] |
Sun, 23 September 2012 07:50  |
Eclipse User |
|
|
|
Hi,
I changed the launch configuration and for mysql now use the MysqlInnodb5 dialect (all pushed to the cdo4.2 git
repository). So hopefully this all works better now.
The absence of a log4j.properties should normally not result in a not working system, only a few additional lines in the
log. The cdo example hibernate server launch has a log4j.debug set.
gr. Martin
On 09/12/2012 11:46 PM, Mark Rowe wrote:
> Quote:
>> Edit: another difference is the inclusion of org.eclipse.emf.cdo.examples.hibernate.log4j Project !
>
>
> I too have been struggling with this problem for a long time.
>
> I believe that the reason for the
> Unknown entity: org.eclipse.emf.cdo.internal.common.revision.CDORevisionImpl
>
> is because the log4j.properties is not being found. Assuming that you have log4j debugging turned on:
>
> -Dlog4j.debug=true
>
> You will see the following messages when you try to start the server:
>
> log4j:WARN No appenders could be found for logger (org.jboss.logging).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See ***cant post the link*****#noconfig for more info.
>
> This is because although the log4j.properties is right there in your /src folder, this folder is not appearing on the
> final classpath (there are many discussions about plugin / product runtime classpaths).
>
> The simple solution is to include the following in the VM arguments (Launching tab)
>
> -Dlog4j.configuration=file:/home/markrowe/log4j.properties
>
> and put log4j.properties in your home directory.
> I am sure there is a much better way of putting this file in your classpath or pointing log4j.configuration to the right
> place.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.58017 seconds