Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
If you place the xls file inside src/main/resources it should be picked up for both, the test and the spring configuration On Wed, Apr 17, 2013 at 7:13 PM, Mauricio Salatino wrote: > Great! Good luck! > > > On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard wrote: > >> Know the reason. Maven whe

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
Great! Good luck! On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard wrote: > Know the reason. Maven when it copy it to the target directory modifies > it. Will investigate why. > > > On Wed, Apr 17, 2013 at 11:46 PM, Charles Moulliard wrote: > >> if i change the name (file tobe loaded) then it

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
Know the reason. Maven when it copy it to the target directory modifies it. Will investigate why. On Wed, Apr 17, 2013 at 11:46 PM, Charles Moulliard wrote: > if i change the name (file tobe loaded) then it fails > > Caused by: java.io.FileNotFoundException: > 'data/IntegrationExampleTesti.xls'

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
if i change the name (file tobe loaded) then it fails Caused by: java.io.FileNotFoundException: 'data/IntegrationExampleTesti.xls' cannot be opened because it does not exist at org.drools.core.io.impl.ClassPathResource.getURL(ClassPathResource.java:168) at org.drools.core.io.impl.ClassPathResource

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
Can you try pointing to a non existing location? to see if you get the same error? On Wed, Apr 17, 2013 at 6:30 PM, Charles Moulliard wrote: > As the file exists under target/classes directory, that should be the case > > /target/classes/data/IntegrationExampleTest.xls > > > On Wed, Apr 17

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
As the file exists under target/classes directory, that should be the case /target/classes/data/IntegrationExampleTest.xls On Wed, Apr 17, 2013 at 11:11 PM, Mauricio Salatino wrote: > It could be related with the location of the file: classpath:data/ > IntegrationExampleTest.xls > > Are you

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
It could be related with the location of the file: classpath:data/ IntegrationExampleTest.xls Are you sure that the file is being picked up? On Wed, Apr 17, 2013 at 6:05 PM, Charles Moulliard wrote: > Hi, > > When I try to instantiate an Excel Decision Table using Drools + Spring > (kresource

[rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Charles Moulliard
Hi, When I try to instantiate an Excel Decision Table using Drools + Spring (kresource), I get this error : REMARK: the file is the same as we have in Drools Unit Test (decision-table) Error : Caused by: java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOX