Would that be possible that you have drools dependencies twice? (just an idea...)
-----Message d'origine-----
De : rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] De
la part de timpe
Envoyé : vendredi 28 mai 2010 10:50
À : rules-users(a)lists.jboss.org
Objet : [rules-users] History log with mySQL Database
I'm trying to establish a history log for my Flow. I'm using version 5.0.1 and I
set up my project with maven. So I'm using drools-bam-5.0.1.jar Inside this archive
there is a META-INF folder containing the hibernate-instructions. How can I reconfigure
these settings?
I tried to put the hibernate.cfg.xml and the AuditLog.hbm.xml into the META-INF-folder in
my root Project without success (default Settings from jar-file are used).
While using the drools-bam archive (jar from the maven-repository), I got the following
error:
Not supported session in logger: class
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession
I debugged it and found out that he jumps out in WorkingMemoryLogger in Line
136:
else if (session instanceof CommandBasedStatefulKnowledgeSession) {
WorkingMemoryEventManager eventManager =
((CommandBasedStatefulKnowledgeSession)
session).getCommandService().getSession();
eventManager.addEventListener( (WorkingMemoryEventListener) this );
eventManager.addEventListener( (AgendaEventListener) this );
eventManager.addEventListener( (RuleFlowEventListener) this );
eventManager.addEventListener( (RuleBaseEventListener) this );
} else {
The Session is an instance of
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession
When I add the source-File of the WorkingMemoryLogger into my project, then this error
does not occur.
Any Ideas?
Thanks
Timo
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/History-log-with-mySQ...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
This message contains information that may be privileged or confidential and is the
property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part
thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message.