Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-13 Thread mattmadhavan
Hi Mark,
Sorry I forgot to mention. I am using kie-spring to load everything. I am
using spring beanrefCOntext for testing.

I did move the module(Spring) to the META-INF folder. The result is the
same.

Any ideas please?

Thanks
Matt'M



--
View this message in context: 
http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-while-testing-ignores-classes-folfer-tp4030641p4030647.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-13 Thread mattmadhavan
Hi Mark,
This definitely seems to be a problem. I placed my  spring k-module file
called *kmodule-spring-breast.xml * under src/mail/resouces/META-INF folder,
I am still getting the error.

But I am referencing the kmodule-spring-breast.xml from a Spring Test file.

Its looking for the .DRL file in the test-classes -ONLY-. Its becoming a
real pain.

Any suggestions please?

Thanks in advance!

Matt



--
View this message in context: 
http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-while-testing-ignores-classes-folfer-tp4030641p4030649.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-13 Thread Mark Proctor
As i mentioned it’s probably a bug, our path searching does not take into 
account there might be two path roots. You’ll need to submit a self contained 
unit test.
http://docs.jboss.org/drools/release/5.6.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html

One work around is to put all your DRLs into one jar, and use that as a 
dependency. Then the paths are merged.

Mark
On 13 Aug 2014, at 17:57, mattmadhavan mmadha...@facs.org wrote:

 Hi Mark,
 This definitely seems to be a problem. I placed my  spring k-module file
 called *kmodule-spring-breast.xml * under src/mail/resouces/META-INF folder,
 I am still getting the error.
 
 But I am referencing the kmodule-spring-breast.xml from a Spring Test file.
 
 Its looking for the .DRL file in the test-classes -ONLY-. Its becoming a
 real pain.
 
 Any suggestions please?
 
 Thanks in advance!
 
 Matt
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-while-testing-ignores-classes-folfer-tp4030641p4030649.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Starnge problem with AbstractKieModule while testing, ignores classes folfer

2014-08-12 Thread Mark Proctor
The logic for what’s going on can be found here:
https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/ClasspathKieProject.java

Typically the code is looking for the kmodule.xml in a META-INF. When it finds 
it, it goes the root of that. There isn’t any logic to handle dual roots. I’m 
assuming you put the kmodule.xml in the test/resources/META-INF folder?

What we might be able to do is see if there parent is “target” and if there is 
a child classes and test-classes and treat it as a special case.

Mark

On 12 Aug 2014, at 20:38, mattmadhavan mmadha...@facs.org wrote:

 Hello,
 While unit testing some of my DRL files I notice that, *AbstractKieModule *
 does not look at main classpath. It only checks for the target\test-classes
 and not target\classes folder at all!
 
 I see the following warning on the coonsole!
 
 *2014-08-12 14:15:25,426 [AbstractKieModule] [main] WARN  No files found for
 KieBase BREAST_MASTRT_KBase, searching folder
 \working\MeasureMesh\org.facs.ncdb.measuresmesh\target\test-classes
 *
 
 /My configuration is:/
 
 
 
 My .drl files arr in the package org..x.rules.breast.MASTRT of the
 traget/classes folder, but its not loaded!
 
 Any ideas please?
 
 Thanks
 Matt'M
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Starnge-problem-with-AbstractKieModule-while-testing-ignores-classes-folfer-tp4030641.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users