Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Error while committing the transaction(Error while committing the transaction)
[CDO] Error while committing the transaction [message #892970] Mon, 02 July 2012 08:04 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
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)


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: [CDO] Error while committing the transaction [message #892986 is a reply to message #892970] Mon, 02 July 2012 08:33 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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)


Re: [CDO] Error while committing the transaction [message #892988 is a reply to message #892986] Mon, 02 July 2012 08:35 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 while committing the transaction [message #892989 is a reply to message #892988] Mon, 02 July 2012 08:42 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Here is the link to the tutorial - http://wiki.eclipse.org/CDO/Hibernate_Store/Tutorial

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: [CDO] Error in QuickStartTest example client [message #898589 is a reply to message #892970] Thu, 26 July 2012 17:46 Go to previous messageGo to next message
Jim Mitzel is currently offline Jim MitzelFriend
Messages: 4
Registered: July 2012
Junior Member
Hello, I was just trying the same tests yesterday and have the same error. Info on my setup: Juno Eclipse, CDO 4.1, using Hibernate Store, error occurs with both hsqldb and mysql. See attached image for installation details.


The error is occurring when executing QuickStartTest.java
from org.eclipse.emf.cdo.examples.hibernate.client
(master branch from the Git repository).
Before running the test I drop the cdohibernate database and then re-create it so it is clean.

The only changes I made to the server config was to un-comment the mysql section, change the dialect to be compatible with latest MySQL 'MySQL5InnoDBDialect'.

I did have to add a dependency to the client project to org.eclipse.emf.ecore.change as well.

I am a newbie with eclipse and java but if you give some tips what to look at I am can probably do it. Embarrassed

Output to the server console .txt file and database structure xml file is attached.

Thanks in advance for any suggestions. I am hoping to use eclipse and CDO to create an RCP application.

Here is the stack trace from the junit test:
Quote:
org.eclipse.emf.cdo.util.CommitException: 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)

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.QuickStartTest.testCreatePersist(QuickStartTest.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
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)


index.php/fa/10903/0/
Re: [CDO] Error in QuickStartTest example client [message #898599 is a reply to message #898589] Thu, 26 July 2012 19:22 Go to previous messageGo to next message
Jim Mitzel is currently offline Jim MitzelFriend
Messages: 4
Registered: July 2012
Junior Member
Oops! That was not the server console output. I am attaching the correct console output here.

I guess I should also have said I am doing all the testing on a Windows 7 64 bit machine. The JRE and Eclipse Juno are 32 bit versions.

My main concern is not whether there is a bug in the test, but if there is an issue with the Hibernate Store. I will try to do a little debug tracing.
Re: [CDO] Error in QuickStartTest example client [message #898648 is a reply to message #898599] Fri, 27 July 2012 04:41 Go to previous messageGo to next message
Jim Mitzel is currently offline Jim MitzelFriend
Messages: 4
Registered: July 2012
Junior Member
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.
Re: [CDO] Error in QuickStartTest example client [message #898667 is a reply to message #898648] Fri, 27 July 2012 06:43 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 #898833 is a reply to message #898667] Fri, 27 July 2012 21:02 Go to previous messageGo to next message
Jim Mitzel is currently offline Jim MitzelFriend
Messages: 4
Registered: July 2012
Junior Member
Two things:

1. Under Preferences->Installed JREs: Make sure it points to your jdk folder, not the jre.

2. Under Preferences->Installed JREs->Execution Environments: Select J2SE-1.5 in left panel and then put a check mark for your jdk in the right panel to set it to compatible.

[Updated on: Fri, 27 July 2012 21:07]

Report message to a moderator

Re: [CDO] Error in QuickStartTest example client [message #901039 is a reply to message #898833] Thu, 09 August 2012 14:02 Go to previous messageGo to next message
Nicolas Cousin is currently offline Nicolas CousinFriend
Messages: 2
Registered: August 2012
Junior Member
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 #901053 is a reply to message #901039] Thu, 09 August 2012 14:29 Go to previous messageGo to next message
Hassan BAZOUN is currently offline Hassan BAZOUNFriend
Messages: 54
Registered: April 2012
Member
hi all,

i have exactly the same problem, i surffed the net but i found nothing Crying or Very Sad
can any one help us find a solution or lead us to the way out of this dark tunnel??

cheers,
Re: [CDO] Error in QuickStartTest example client [message #901072 is a reply to message #901053] Thu, 09 August 2012 15:36 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
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=&quot;${resource_loc:/org.eclipse.emf.cdo.examples.hibernate.server/config}&quot;
-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
Re: [CDO] Error in QuickStartTest example client [message #901165 is a reply to message #901072] Fri, 10 August 2012 07:59 Go to previous messageGo to next message
Nicolas Cousin is currently offline Nicolas CousinFriend
Messages: 2
Registered: August 2012
Junior Member
Thanks,

Your solution is great !

I just changed the launch configuration from Run an application to Run a product (org.eclipse.emf.cdo.server.product.tcp_h2), and everything is working fine now.

Edit: another difference is the inclusion of org.eclipse.emf.cdo.examples.hibernate.log4j Project !

Thanks a lot.

[Updated on: Fri, 10 August 2012 09:14]

Report message to a moderator

Re: [CDO] Error in QuickStartTest example client [message #901251 is a reply to message #901165] Fri, 10 August 2012 13:42 Go to previous messageGo to next message
Hassan BAZOUN is currently offline Hassan BAZOUNFriend
Messages: 54
Registered: April 2012
Member
Thanks Nicolas and Christoph
its working Smile
Re: [CDO] Error in QuickStartTest example client [message #901300 is a reply to message #901072] Fri, 10 August 2012 16:40 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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 #912058 is a reply to message #901165] Wed, 12 September 2012 21:46 Go to previous messageGo to next message
Mark Rowe is currently offline Mark RoweFriend
Messages: 23
Registered: January 2012
Junior Member
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.
Re: [CDO] Error while committing the transaction [message #920748 is a reply to message #892989] Sun, 23 September 2012 11:48 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Old thread.. I changed the launch configuration for the example project, so hopefully this works better now.

gr. Martin

On 07/02/2012 10:42 AM, Neeraj Bhusare wrote:
> Here is the link to the tutorial - http://wiki.eclipse.org/CDO/Hibernate_Store/Tutorial


--

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 11:50 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
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
Previous Topic:Problem with cross references
Next Topic:[CDO] Schema evolution
Goto Forum:
  


Current Time: Thu Mar 28 12:50:43 GMT 2024

Powered by FUDForum. Page generated in 0.04380 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top