Hi Mario,<br>i have tried to put it every where.<br><br>The strange thing is that if i use 5.3 it is with file under /home/myhomefolder and if i use 5.4 i get this error:<br><br>ERROR [2012-06-01 17:37:27,588] [VSensorLoader-Thread0] (ExpertSystemManager.java:63) - Unable to Analyse Expression $vehicle_type == type && geoIsWithinDistance0.evaluate( $location, source.getGeometry() ):<br>
[java] [Error: unable to resolve method using strict-mode: org.dfms.model.mapfeature.Route.geoIsWithinDistance0()]<br> [java] [Near : {... cle_type == type && geoIsWithinDistance0.evaluate( ....}]<br> [java] ^ : [Rule name='VehicleAtRouteStart-event']<br>
[java] Unable to Analyse Expression $vehicle_type == type && geoIsWithinDistance0.evaluate( $location, source.getGeometry() ):<br> [java] [Error: unable to resolve method using strict-mode: org.dfms.model.mapfeature.Route.geoIsWithinDistance0()]<br>
[java] [Near : {... cle_type == type && geoIsWithinDistance0.evaluate( ....}]<br> [java] ^ : [Rule name='VehicleAtRouteStart-update']<br><br>where geo<xxxx> are custom evaluator.<br>
<br>What do you think?<br><br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 5:29 PM, Mario Fusco <span dir="ltr"><<a href="mailto:mario.fusco@gmail.com" target="_blank">mario.fusco@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matteo,<br>
<br>
Drools loads conf files from several places and merge them including home<br>
directory, meta-inf directory, etc. This is the class that does this job and<br>
as you can see it isn't changed in the last year:<br>
<br>
<a href="https://github.com/mariofusco/droolsjbpm-knowledge/blob/master/knowledge-api/src/main/java/org/drools/util/ChainedProperties.java" target="_blank">https://github.com/mariofusco/droolsjbpm-knowledge/blob/master/knowledge-api/src/main/java/org/drools/util/ChainedProperties.java</a><br>
<br>
In particular, as you can see at line 71, it should try to load the conf<br>
file also from your home folder. I don't know why it is not working in your<br>
case. Probably are you launching it with the wrong user? Alternatively you<br>
could also try to put that conf file in a folder named META_INF in your<br>
classpath.<br>
<br>
I hope this helps,<br>
Mario<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-drools-packagebuilder-conf-tp4017706p4017723.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-drools-packagebuilder-conf-tp4017706p4017723.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>