Re: [rules-users] Drools 4.0.3 download
Hi you can get then from http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-bin.zip http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-brms.zip http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-eclipse3.2.zip http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-eclipse3.3.zip http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-examples.zip http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-src.zip or though our maven repository. On Tue, Apr 8, 2008 at 12:11 PM, Knych, Thomas [EMAIL PROTECTED] wrote: Hi, We've just approved Drools 4.0.3 for use at my company, however I no longer see the link for 4.0.3 available from the download page (http://www.jboss.org/drools/downloads.html). Is it archived somewhere? I'm beginning the process to approve 4.0.4, but it will take awhile - so unless there was a major issue with 4.0.3 I'd like to use that in the interim. Thanks, -Tom ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools plug in installation for eclipse fails
Try using http://downloads.jboss.com/drools/updatesite3.3/ for europa and http://downloads.jboss.com/drools/updatesite3.2/ for 3.2 Let me now if something goes wrong. Thanks On Tue, Mar 25, 2008 at 6:36 PM, Gerrit Smink [EMAIL PROTECTED] wrote: Hi, Like some others I have problems installing the drools plug in using the eclipse software updates utility. I follow exactly the drools manual instructions and supply eclipse with the http://downloads.jboss.com/drools/updatesite/ update site but the message is: No features found on the selecterd site. Since I'm newbie I don't know how to install manually so I'm in trouble. -- View this message in context: http://www.nabble.com/drools-plug-in-installation-for-eclipse-fails-tp16289130p16289130.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] JBoss Drools - Version 4.0.5
] - org.drools.util.AbstractHashTable$SingleIndex is not serializable - [JBRULES-1491 http://jira.jboss.com/jira/browse/JBRULES-1491] - java.io.NotSerializableException: org.drools.util.AbstractHashTable$SingleIndex - [JBRULES-1492 http://jira.jboss.com/jira/browse/JBRULES-1492] - NPE caused by non-shadowed deep object access - [JBRULES-1501 http://jira.jboss.com/jira/browse/JBRULES-1501] - Multiples modify causes variable duplication exception - [JBRULES-1503 http://jira.jboss.com/jira/browse/JBRULES-1503] - Errors on rulebase serialization scenarios - [JBRULES-1505 http://jira.jboss.com/jira/browse/JBRULES-1505] - Fix CCE when using nested accessors to compare Date values - [JBRULES-1506 http://jira.jboss.com/jira/browse/JBRULES-1506] - RuleAgent will not read binary packages from Apache HTTP Server - [JBRULES-1507 http://jira.jboss.com/jira/browse/JBRULES-1507] - Objenesis too heavily used - [JBRULES-1508 http://jira.jboss.com/jira/browse/JBRULES-1508] - NPE in MVELDataProvider - [JBRULES-1510 http://jira.jboss.com/jira/browse/JBRULES-1510] - ObejnesisFactory.getStaticObjenesis() doesn't set OBJENESIS_INSTANCE Feature Request - [JBRULES-1307 http://jira.jboss.com/jira/browse/JBRULES-1307] - Update and expand documentation for decision tables to show actual uses for all keywords - [JBRULES-1338 http://jira.jboss.com/jira/browse/JBRULES-1338] - DirectoryScanner should only take into account relevant files - [JBRULES-1473 http://jira.jboss.com/jira/browse/JBRULES-1473] - Add a configuration parameter to allow Drools to dump all generated java source code Patch - [JBRULES-1452 http://jira.jboss.com/jira/browse/JBRULES-1452] - Improved NullPointerException messages - [JBRULES-1485 http://jira.jboss.com/jira/browse/JBRULES-1485] - Fixes to the documentation Quality Risk - [JBRULES-1475 http://jira.jboss.com/jira/browse/JBRULES-1475] - Teensy spelling error in drools project template Task - [JBRULES-1502 http://jira.jboss.com/jira/browse/JBRULES-1502] - update example to use modify block as default Happy Drooling Drools Team Release Notes - JBoss Drools - Version 4.0.5 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Re: Maven compilation mojo?
Hi Eric, Someone already made a contrib of a maven plugin, I think I did some review on that code but it never went to mainstream. could you please compare your code to the attachment? http://jira.jboss.org/jira/browse/JBRULES-1273 On Fri, Mar 7, 2008 at 1:22 PM, Eric Miles [EMAIL PROTECTED] wrote: I have not performed any tests on this, but I'm sure the Drools guys could comment on it as they provide serialized vs non-serialized support in the framework. I would have to think it would decrease initialization time as you're only de-serializing objects vs compiling a rule set. Of course, your build time will increase :) Our main goal was to limit the number (and size) of the jars we had to include in our application as we already had a very large distributable for our application. Some features of the compilation mojo: - Precompiles drls, ruleflow, and dsl into their individual packages - Supports single package being spread across multiple DRL and rule flow files using same package name. - Supports DSL through a specific naming convention (some work could be done here to be a little more flexible) - Supports compression to decrease serialized package file sizes (Currently gzip, could tweak to support other compressions) - Serializes via XStream (could be tweaked to support different serialization mechanisms) Eric On Fri, 2008-03-07 at 16:57 +0100, Geoffrey De Smet wrote: Sounds interesting. Does it noticeably decrease RuleBase initialization time at runtime? With kind regards, Geoffrey De Smet Eric Miles wrote: Is there a Maven Drools compilation mojo, provided either by the Drools team or some open source project? If not, I have one that I'd be willing to submit. I think it's pretty slick and would only require a few tweaks to truly make it useful (hard coded to currently use XStream serialization). ___ 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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Ant compiler task?
Basically you need to add the drools-ant on your classpath define your compile task taskdef name=rulebase classname=org.drools.contrib.DroolsCompilerAntTask classpathref=drools.classpath / And use the rulebase task as the following example target name=rules rulebase srcdir=${eclipsepath}src/test/resources/rules tofile=${eclipsepath}target/cheese.rules classpathref=cheese.classpath include name=*.drl / include name=*.brl / include name=*.xml / include name=*.dslr / /rulebase /target you can see my test XML file here http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-ant/src/test/resources/DroolsAntTask.xml On Fri, Mar 7, 2008 at 5:59 PM, Eric Miles [EMAIL PROTECTED] wrote: I see numerous references to the Ant task in the documentation but see no documentation on how to use it. Where can I find some? Google turned up nothing... ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] can't install via eclipse update manager
I will check that later. see ya On Sat, Feb 23, 2008 at 7:00 PM, howard goldberg [EMAIL PROTECTED] wrote: eclipse 3.3.1.1 or 3.3.0 Attempt to install 4.04 Got a feature not found error using eclipse update manager for both remote site and archive file. Didn't see any reports in the archives or JIRA. No problem with manual install. Thanks, Howard ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools low concurrency/high synchronization? !NOSIG!
Hi Ingomar, Which drools version are you using? We made improvements on 4.0.4, that fixes concurrency issues on mvel core, so if you aren't using it please do an update and try test against your environment. Please let me know if your problems go away when you upgrade. Thanks On Jan 22, 2008 11:13 AM, Ingomar Otter [EMAIL PROTECTED] wrote: Folks,I am currently trying to scale our implementation by farming out request into mutliple threads. I am on a 4 CPU Mac. A few things I am wondering about: 1. Although I see an increase in CPU load when going from single to multi-threaded processing the throughput increased marginally. I am pretty sure that my measurements are correct. I have checked the GC and this is not the source of congestion. My question here is whether Drools is using lot's of synchronization that may explain this. 2. When I share the RuleBase accross threads (which I think is valid?) I get interesting errors during execution. eg: org.drools.RuntimeDroolsException: Exception executing predicate [EMAIL PROTECTED] atorg.drools.rule.PredicateConstraint.isAllowedCachedRight( PredicateConstraint.java:246) at org.drools.common.TripleBetaConstraints.isAllowedCachedRight( TripleBetaConstraints.java:200) atorg.drools.reteoo.JoinNode.assertObject(JoinNode.java:150) atorg.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject( CompositeObjectSinkAdapter.java:318) atorg.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153) at org.drools.reteoo.Rete.assertObject(Rete.java:175) atorg.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192) at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java :71) at org.drools.common.AbstractWorkingMemory.insert( AbstractWorkingMemory.java:909) atorg.drools.common.AbstractWorkingMemory.insert( AbstractWorkingMemory.java:881) atorg.drools.common.AbstractWorkingMemory.insert( AbstractWorkingMemory.java:682) at.DroolsPD.validate(DroolsPD.java:66) at .DroolsMTRunner.run(DroolsMTRunner.java:30) at java.lang.Thread.run(Thread.java:552) Caused by: org.mvel.CompileException: cannot invoke getter: getSAClass [ declr.class: xxx.AbstractSA; act.class: null] atorg.mvel.optimizers.impl.refl.GetterAccessor.getValue( GetterAccessor.java:52) at org.mvel.optimizers.impl.refl.VariableAccessor.getValue( VariableAccessor.java:39) at org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated( VariableDeepPropertyNode.java:22) atorg.mvel.ast.PropertyASTNode.getReducedValueAccelerated( PropertyASTNode.java:21) at org.mvel.ast.BinaryOperation.getReducedValueAccelerated( BinaryOperation.java:21) at org.mvel.MVELRuntime.execute(MVELRuntime.java:88) at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111) atorg.mvel.MVEL.executeExpression(MVEL.java:235) at org.drools.base.mvel.MVELPredicateExpression.evaluate( MVELPredicateExpression.java:36) atorg.drools.rule.PredicateConstraint.isAllowedCachedRight( PredicateConstraint.java:240) ... 13 more Caused by: java.lang.NullPointerException atsun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) atsun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) atjava.lang.reflect.Method.invoke(Method.java:324) at org.mvel.optimizers.impl.refl.GetterAccessor.getValue( GetterAccessor.java:42) ... 22 more Details: * I use StatelessSessions which are private to the threads * No data is shared between threads (with the exception of the RuleBase, as outline above) * I am on JDK 1.5 I would be grateful for any pointers for 'correct' use of Drools in an MT environment. Cheers, Ingomar Ingomar Otter Chief Technology Officer [EMAIL PROTECTED] Mobile: +49 172 2367867 Valtech GmbH Bahnstraße 16 40212 Düsseldorf Germany Phone: +49 (0)211 179237-0 Fax: +49 211 179237-19 www.valtech.de Geschäftsführer: Ingo Kriescher Amtsgericht Düsseldorf HRB48672 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] JBRMS 4.0.4 issues
Nope, You shouldn't change anything if you are using jboss AS, just if you are using tomcat or other container On Jan 18, 2008 7:40 AM, mmquelo massi [EMAIL PROTECTED] wrote: Hi pope :-P (joking...joking) I do not understand what you wrote here: *5. Unzip the jboss_jsf_libs file and copy the all the files from the lib directory of your lib directory of your Application Server installation. If you have paths to these files already set in your environment, make sure to update the paths to point to the new JAR files in the lib directory of the Application Server installation. * What should I do? Where should I put the .zip file content? I checked the JBOSS_HOME\lib and none of the files you mentioned are in there. Then I checked the JBOSS_HOME\server\default\deploy\jboss- web.deployer\jsf-libs and I found all the files contained in the .zip file you told us. So... Should I overwrite the jsf-libs directory or should I delete it and copy the .zip content into the JBOSS_HOME\lib dir? Thank You anyway Fernando. Massi On Jan 18, 2008 1:49 AM, Fernando Meyer [EMAIL PROTECTED] wrote: Hi peeps, After we received a couple of feedbacks about 4.0.4 drools-jbrms, I did some tests against JBoss 4.2.2 and Tomcat 6.0.x and I have a resolution workaround please check http://wiki.jboss.org/wiki/Wiki.jsp?page=JBRMSjsfdependencies for further explanations I'm waiting your feedbacks about this problem Thanks -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ 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 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] JBRMS 4.0.4 issues
Hi peeps, After we received a couple of feedbacks about 4.0.4 drools-jbrms, I did some tests against JBoss 4.2.2 and Tomcat 6.0.x and I have a resolution workaround please check http://wiki.jboss.org/wiki/Wiki.jsp?page=JBRMSjsfdependenciesfor further explanations I'm waiting your feedbacks about this problem Thanks -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem running JBRMS 4.0.4 on JBoss AS 4.0.5 and AS 4.2.1 and AS 4.2.2
Could you please test it against java 1.5? thanks On Jan 16, 2008 12:49 PM, cristian aliante [EMAIL PROTECTED] wrote: Problem running JBRMS 4.0.4 on JBoss AS 4.0.5 and as 4.2.1 and 4.2.2 I have problems in the run brms, don't start the loggin I have install jdk 1.6.0_01 the error is: 11:42:18,000 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009 11:42:18,015 INFO [JkMain] Jk running ID=0 time=0/47 config=null 11:42:18,031 INFO [Server] JBoss (MX MicroKernel) [ 4.0.5.GA (build: CVSTag=Bran ch_4_0 date=200610162339)] Started in 50s:391ms 11:42:25,609 INFO [STDOUT] ERROR 16-01 11:42:25,609 ( Contexts.java:flushAndDest royContexts:335) could not discover transaction status 11:42:25,625 INFO [STDOUT] ERROR 16-01 11:42:25,609 ( Log4JLogger.java:error:119 )Servlet.service() for servlet default threw exception java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java :2214) at org.apache.catalina.connector.Request.getSession(Request.java :2024) at org.apache.catalina.connector.RequestFacade.getSession (RequestFacade. java:831) at org.jboss.seam.servlet.ServletRequestSessionMap.put(ServletRequestSes sionMap.java:87) at org.jboss.seam.servlet.ServletRequestSessionMap.put (ServletRequestSes sionMap.java:25) at org.jboss.seam.contexts.BasicContext.set(BasicContext.java:80) at org.jboss.seam.Component.newInstance(Component.java:1980) at org.jboss.seam.Component.getInstance(Component.java:1878) at org.jboss.seam.Component.getInstance(Component.java:1857) at org.jboss.seam.Component.getInstance(Component.java:1834) at org.jboss.seam.web.Session.getInstance(Session.java:122) at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts( Contexts.jav a:375) at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java :132) at org.jboss.seam.servlet.ContextualHttpServletRequest.run (ContextualHtt pServletRequest.java:65) at org.jboss.seam.web.ContextFilter.doFilter (ContextFilter.java :37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFi lter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java :202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationF ilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextV alve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke (Securit yAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv e.java:74) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.j ava:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke (CachedConne ctionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java :869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpo int.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor kerThread.java:112) at java.lang.Thread.run(Thread.java:619) thanks for the help. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools 4.0.4 Released
We just released Drools v4.0.4. This is a minor release with a few improvements on existing features and some bug fixes. Release Notes - JBoss Drools - Version 4.0.4 We would like to really thanks all the contributors that helped on getting this release out. From those contributing patches and docs, to those testing and reporting bugs and providing feedback. The list is a bit long to post all names here and I may incur in a mistake forgetting someone, so our open public thank you to you all! Follows the release notes. Happy Drooling Drools Team Release Notes - JBoss Drools - Version 4.0.4 Bug * [JBRULES-1243] - Pattern matching does not allow spaces * [JBRULES-1274] - NPE when using reserved word action as a bound variable, or omitting rule title * [JBRULES-1284] - ClassCastException when using constraint on field of type java.lang.Object containing data of type java.lang.Integer * [JBRULES-1310] - java.lang.NullPointerException at org.drools.rule.builder.dialect.java.JavaConsequenceBuilder.build( JavaConsequenceBuilder.java:54) * [JBRULES-1311] - NPE when compiling rule consequences * [JBRULES-1313] - NullPointerException at JavaConsequenceBuilder.java:54 on RHS for simplest of consequences * [JBRULES-1314] - Error parsing rule that is written in a single line * [JBRULES-1316] - Serialising Both the RuleBase and WorkingMemory throws null pointer * [JBRULES-1317] - Rule Execution Very Slow on Subsequent Session Using the Same Packages * [JBRULES-1321] - org.drools.compiler.DroolsParserException: Unknown error while parsing. org.drools.compiler.DroolsParserException: Unknown error while parsing. * [JBRULES-1325] - OutOfMemory with the use of WorkingMemoryFileLogger * [JBRULES-1336] - Typo in RuleBaseConfiguration(ClassLoader classLoder, Properties properties) -- the ClassLoader specified in the constructor args is not used * [JBRULES-1337] - 'or' with predicate/return val/inline eval with property issue * [JBRULES-1339] - Debugging: Breakpoints are only considered for code with variables * [JBRULES-1340] - JBRMS - Admin - Manage Archived Assets - Open item icon not opening item * [JBRULES-1348] - Incorrect hash code calculation for character attributes in alpha hashing optimization * [JBRULES-1354] - Duplicate parameter error while trying to use pattern bound variables or globals in accumulate function * [JBRULES-1364] - Drl parser 'or' * [JBRULES-1387] - Drools doesn't build with fresh maven2 installation and no repository * [JBRULES-1397] - org.mvel.CompileException: variable already defined within scope * [JBRULES-1410] - Rules with Collect / Accumulate CEs not working correctly when dinamically added to a rulebase * [JBRULES-1412] - ContextEntries should have cache nulled * [JBRULES-1413] - KnowledgeHelper should have cache reset before use. * [JBRULES-1416] - The use of HashKey is not thread safe in CompositeObjectSinkAdapter Feature Request * [JBRULES-1308] - getFactHandle with equality-based assert behavior * [JBRULES-1349] - NotNode and Exists Improvements * [JBRULES-1375] - remove backported concurrency classes, now that we are jdk1.5+ * [JBRULES-1395] - Add support to modify() block in java dialect consequences Patch * [JBRULES-1323] - Add caching to the Objenesis instance and move instance to the RuleBase level Task * [JBRULES-1421] - Update mvel version to 1.2.21 and update mvel templates -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] OutOfMemory with BRMS 4.0.3
Have you had the chance to test against JBoss AS 4.0.2 ? On Jan 10, 2008 1:42 PM, [EMAIL PROTECTED] wrote: Hi, No, I don't use the WorkingMemoryLogger from my client classes in Jboss. And I don't know if the BRMS uses it, I suppose not otherwise more people would have the problem? best regards, Sophie Mikael Larsson [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/01/2008 16:33 Please respond to Rules Users List rules-users@lists.jboss.org To Rules Users List rules-users@lists.jboss.org cc Subject Re: [rules-users] OutOfMemory with BRMS 4.0.3 Hi! Are you using the WorkingMemoryLogger? Here is some information from a previous mail thread (Drools 4.02 or 4.03 memory leak?) on this list: In 4.0.3, there is a memory leak with the use of WorkingMemoryLogger. Maybe it's that ? PS : http://jira.jboss.com/jira/browse/JBRULES-1325 Regards /Mikael [EMAIL PROTECTED] wrote: Hello, I am using Drools BRMS 4.0.3 with tomcat 5.5.25, and I get OutOfMemory exceptions in tomcat regularly. I recently changed the java option of tomcat to add -Xmx512m, but it only resulted in taking a little more time before crashing (3 days, instead of 1 before). The server has nearly no access - it's a development server which is not a lot used at the moment - and there are only a few rules, for tests, so I really don't understand this error. I'm using java 1.5.0 on a linux server. The BRMS is accessed by web, to create and deploy the rules, and queried from another tool (on the same machine but in another server: in JBoss), to insert data in a workingMemory and execute the rules from the deployed package URL. I call the dispose() method on the StatefulSession at the end of the query (but this shouldn't be linked to this error, since this is in JBoss and the OutOfMemory occurs in tomcat...). Any idea? Thanks, Sophie ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- __ Mikael Larsson Redpill AB Tel. + 46 54 15 09 40 Mob. + 46 73 42 41 483 www.redpill.se __ ___ 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 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problems deploying BRMS on Jboss 4.0.1 AS
: jboss.web.deployment:war=drools-jbrms.war,id=-873092459 state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: URL file:/C:/apps/jboss-4.0.1sp1/server/default/tmp/deploy/ tmp7104drools-jbrms-exp.war/ deployment failed MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM: ObjectName: jboss.web.deployment:war=drools-jbrms.war,id=-873092459 state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: URL file:/C:/apps/jboss-4.0.1sp1 /server/default/tmp/deploy/tmp7104drools- jbrms-exp.war/ deployment failed Thanks, Rod ___ 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 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools-ant task and decision tables
Hi Matija, Drools ant doesn't support xls files yet, just brl, xml, rfm and dslr, could you please open a ticket in jira and point that to me? regards On 11/23/07, Matija [EMAIL PROTECTED] wrote: Hi, does the drools-ant task know how to compile (.xls) decision tables, or does it only compile .drl (and .brl, .xml etc.) files? I'm having a bit of trouble getting it working, it keeps giving me the Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel' exception (anyone know what's up with that, as far as I know that class is there along with all the required jars)? I'm trying to determine if it's worth my time trying to resolve the error (I can't use the ant task if it doesn't support decision tables). Regards, M. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] XML Import Sample
http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/xml/ sorry forgot the link ;) On 11/14/07, Fernando Meyer [EMAIL PROTECTED] wrote: Hi, All that you need is understand the drools' xml unit tests. Regards . On 11/14/07, MHersey [EMAIL PROTECTED] wrote: I'm new to Drools and am looking into using the XmlPackageReader to import XML rules. Can someone point me to some sample code? I've found a few snippets from different projects but the information is disconnected. Thanks for any pointers to a noob. Michael -- View this message in context: http://www.nabble.com/XML-Import-Sample-tf4806317.html#a13750536 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] XML Import Sample
Hi, All that you need is understand the drools' xml unit tests. Regards . On 11/14/07, MHersey [EMAIL PROTECTED] wrote: I'm new to Drools and am looking into using the XmlPackageReader to import XML rules. Can someone point me to some sample code? I've found a few snippets from different projects but the information is disconnected. Thanks for any pointers to a noob. Michael -- View this message in context: http://www.nabble.com/XML-Import-Sample-tf4806317.html#a13750536 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] create XML rules with XML parser
Hi, If you mean the appropriate rule then use the following xsd http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/main/resources/META-INF/drools-4.0.xsd Regards On 11/14/07, Raffaele Viola [EMAIL PROTECTED] wrote: Hi all, I want to create automatically the xml containing the rules using a parser like castor, which .xsd I have to use to generate the appropriate java class? Can someone give me some indications? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Missing BRMS Classes
Hi, These classes are under drools-compiler project. http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/brms/ On 11/2/07, Tong Wang [EMAIL PROTECTED] wrote: Greetings, While looking at the source code of BRMS, I found that some classes are missing. For example: org.drools.brms.client.modeldriven.SuggestionCompletionEngine org.drools.brms.client.modeldriven.brl.ActionFieldValue org.drools.brms.client.modeldriven.brl.ActionInsertFact org.drools.brms.client.modeldriven.brl.ActionInsertLogicalFact and a few others, which seem to be classes under the org.drools.brms.client.modeldriven package. I tried the downloadable src zip for 4.0.3 and also checked out src from SVN, but both were missing these classes. However, the BRMS WAR file downloaded was working for me, which indicates that the WAR and the src are out of sync. Thanks, Tong ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Problem running JBRMS 4.0.3 on JBoss AS 4.2.1
) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Thanks, --Aziz ___ rules-users mailing list rules-users at 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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools 4.0.3 Released
http://blog.athico.com/2007/10/drools-403-released.html We just released Drools v4.0.3 http://labs.jboss.com/drools/downloads.html. This is a minor release with a few improvements on existing features and some bug fixes. Release Notes - JBoss Drools - Version 4.0.3 We would like to really thanks all the contributors that helped on getting this release out. From those contributing patches and docs, to those testing and reporting bugs and providing feedback. The list is a bit long to post all names here and I may incur in a mistake forgetting someone, so our open public thank you to you all! Follows the release notes. Happy Drooling Drools Team Bug - [JBRULES-1264 http://jira.jboss.com/jira/browse/JBRULES-1264] - NPE at BaseObjectClassFieldExtractor.getLongValue with null fields - [JBRULES-1266 http://jira.jboss.com/jira/browse/JBRULES-1266] - Composite facts types (OR, AND) not rendering correctly - [JBRULES-1272 http://jira.jboss.com/jira/browse/JBRULES-1272] - DSL : String index out of range: -1 - [JBRULES-1279 http://jira.jboss.com/jira/browse/JBRULES-1279] - Memory leak in release 4.0.2 - [JBRULES-1281 http://jira.jboss.com/jira/browse/JBRULES-1281] - ExecutorService cannot be shared - [JBRULES-1282 http://jira.jboss.com/jira/browse/JBRULES-1282] - Problems uploading models etc. into the BRMS - [JBRULES-1283 http://jira.jboss.com/jira/browse/JBRULES-1283] - Unable to serialize rule base ( NotSerializableException: org.drools.base.FireAllRulesRuleBaseUpdateListener) - [JBRULES-1295 http://jira.jboss.com/jira/browse/JBRULES-1295] - DSL Mapping files does not support comments and empty lines Feature Request - [JBRULES-1252 http://jira.jboss.com/jira/browse/JBRULES-1252] - DrlDumper does not dump import functions Task - [JBRULES-1260 http://jira.jboss.com/jira/browse/JBRULES-1260] - Include eclipse JDT library in drools-eclipse IDE plugin - [JBRULES-1293 http://jira.jboss.com/jira/browse/JBRULES-1293] - Backport for Eclipse 3.3 - [JBRULES-1294 http://jira.jboss.com/jira/browse/JBRULES-1294] - Upgrade to MVEL 1.2.10 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Exception in JBRMS with 4.0.2
Rod, Could you provide more information about this? :For example which application server you are using ? Thanks On 10/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I upgraded from 4.0.1 to 4.0.2 and am getting the following errors when I try to bring up the BRMS in the web-based gui. I get the JBoss Rules screen but it's blank; it doesn't have the login boxes. The console shows: [STDOUT] ERROR 09-10 (Contexts.java:flushAndDestroyContexts: could not discover transaction status [STDOUT] ERROR 09-10 (StandardWrapperValve.java:invoke:278) Servlet.service() for servlet default threw exception java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2284) at org.apache.catalina.connector.Request.getSession(Request.java:2066) at org.apache.catalina.connector.RequestFacade.getSession( RequestFacade.java:833 at org.jboss.seam.servlet.ServletRequestSessionMap.put( ServletRequestSessionMap.java:87) at org.jboss.seam.servlet.ServletRequestSessionMap.put( ServletRequestSessionMap.java:25) Also, when I run my java program that reads the .drl file, builds WorkingMemory, fires the rules, etc., I get this exception: [STDOUT] ERROR 09-10 (Contexts.java:flushAndDestroyContexts: could not discover transaction status [STDOUT] Error calling UnderwritingRule java.lang.ClassCastException: java.util.Collections$EmptyMap If I revert back to the 4.0.1 jar files and 4.0.1 brms .war file, everything works fine again. Could someone tell me how to resolve these errors or point me in the direction to start looking? Did I just not copy in a new file or update somewhere? Thanks, Rod ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools web project in eclipse - Drools Library issue
Hi, You can check the drools insurance example http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-insurance/ Regards On 10/3/07, Malika [EMAIL PROTECTED] wrote: Hello, I started to write web app using drools decision table. Here is what I have in my web project in eclipse 3.3, drools 4.0: 1. A Jsp page that takes input and pass it on to a servlet that fires the rules. 2. Servlet class has import statements: import org.drools.RuleBase; import org.drools.RuleBaseFactory; import org.drools.StatefulSession; import org.drools.StatelessSession; import org.drools.WorkingMemory; and so on.. 3. When I run the jsp on tomcat, it starts but when i hit submit it throws the exception: java.lang.NoClassDefFoundError: org/drools/RuleBase 4. I have drools jar files added under project properties - build path- add external jars from C:\wtp_all_in_one\eclipse\configuration\org.eclipse.osgi\bundles\503\1\.cp\lib. This is showing all drools jar files under Libraries hierarchy. Could anyone please suggest what to do to resolve this error? Thanks and Regards, Malika -- View this message in context: http://www.nabble.com/Drools-web-project-in-eclipse---Drools-Library-issue-tf4564565.html#a13028564 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] ClassNotFound exception running brms example (newbie)
(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at java.util.HashMap.readObject(HashMap.java:1029) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at org.drools.rule.Package.readExternal(Package.java:189) at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:54) at org.drools.agent.URLScanner.readPackage(URLScanner.java:137) at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:109) at org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:88) at org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:327) at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:295) at org.drools.agent.RuleAgent.configure(RuleAgent.java:281) at org.drools.agent.RuleAgent.init(RuleAgent.java:205) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:173) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:145) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:213) at org.acme.insurance.launcher.InsuranceBusiness.loadRuleBase( InsuranceBusiness.java:26) at org.acme.insurance.launcher.InsuranceBusiness.executeExample( InsuranceBusiness.java:14) at org.acme.insurance.launcher.MainClass.main(MainClass.java:13) RuleAgent(insuranceconfig) WARNING (Sun Sep 30 14:02:35 CEST 2007): Was unable to load a class when loading a package. Perhaps it is missing from this appl ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] ClassNotFound exception running brms example (newbie)
sorry, you need to get the latest core version snapshot to correct this problem, plus the new brms as well On 9/30/07, Fernando Meyer [EMAIL PROTECTED] wrote: Hi, Are you using the latest brms build ? if the anwser is not, please download the latest version from https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ it was a missing class in the drools-core library. On 9/30/07, Martin Fuzzey [EMAIL PROTECTED] wrote: Hi, I am trying to run the insurance example with the brms after replacing the client mvel jar with the one used by the brms web app as mentionned on this list I get this exeception (full stacktrace below) java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor adding the drools-compiler-4.0.1.jar to the client classpath fixes this but I thought the rules were supposed to be compiled by the brms. Indeed the documentation says : The rule agent is a component which is embedded in the core runtime of the rules engine. To use this, you don't need any extra components. In fact, if you are using the BRMS, your application should only need to include the drools-core.jar in its classpath, and no other rules specific dependencies. so am I misunderstanding something or is this a bug? Thanks, Martin Fuzzey RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(insuranceconfig) INFO (Sun Sep 30 14:02:33 CEST 2007): Configuring package provider : URLScanner monitoring URLs: http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance/MF1 with local cache dir of /home/martin/tmp RuleAgent(insuranceconfig) EXCEPTION (Sun Sep 30 14:02:34 CEST 2007): org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor . Stack trace should follow. java.lang.ClassNotFoundException: org.drools.rule.builder.dialect.mvel.MVELDialect$ModifyInterceptor at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java :276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java :319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at org.drools.common.DroolsObjectInputStream.resolveClass( DroolsObjectInputStream.java :74) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :351) at java.util.HashMap.readObject (HashMap.java:1029) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke (Method.java:597) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1869) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java :1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java :1329
Re: [rules-users] accumulate funtion in xml
Hi Isabelle, I didn't paid enough attention to your rhs block :) You are welcome and tks for your feedbak. On 9/28/07, Isabelle Hupont [EMAIL PROTECTED] wrote: Hi Fernando!! I have fixed the problem... I didn't changed drools v3 modify(_i) statement by drools v4 update(-i). Now everything works well! Thanks a lot for your attention. Isabelle Hupont wrote: Sorry!! I mixed the .class and. java files!! ;) Here is the source code. I also paste the code I am using to read the rule package: public RuleBase readRulePackage() throws PersistenceException{ // Reads a set of rules from XML file try { PackageBuilder builder = new PackageBuilder(); builder.addPackageFromXml(new InputStreamReader(new FileInputStream(ruleFile))); ruleBase = RuleBaseFactory.newRuleBase(); ruleBase.addPackage(builder.getPackage()); return ruleBase; } catch (Exception e){ e.printStackTrace(); throw new PersistenceException(Error reading rules file); } } thx! http://www.nabble.com/file/p12935779/Instance.java Instance.java Fernando Meyer Camargo wrote: Hi isabelle, When I said instance class, I was meaning your instance source code ;) Regards On 9/28/07, Isabelle Hupont [EMAIL PROTECTED] wrote: Hi Fernando! Mi Instance class is the Weka class I attach Thanks for your attention. Isabelle. http://www.nabble.com/file/p12935480/Instance.class Instance.class Fernando Meyer Camargo wrote: Could you please provide your Instance class ? On 9/27/07, Isabelle Hupont [EMAIL PROTECTED] wrote: Hi! I want to program the following drl rule in xml: rule average calculation no-loop true when _i : Instance() _average : Double() from accumulate(accInst: Instance(), average( accInst.value(tend))) eval(_average 2) then _i.setValue(tend,2000); end For it, I have implemented the following xml file: ?xml version=1.0 encoding=UTF-8? package name=org.prophet.fuzzy xmlns=http://drools.org/drools-4.0; xmlns:xs=http://www.w3.org/2001/XMLSchema-instance; xs:schemaLocation=http://drools.org/drools-4.0 drools-4.0.xsd import name=weka.core.*/ import name=org.prophet.gui.docking.*/ import name=org.prophet.persistence.*/ import name=org.prophet.persistence.hibernate.*/ import name=org.prophet.rules.*/ import name=org.prophet.*/ rule name=Rule1 rule-attribute name=no-loop value=true/ lhs pattern identifier=_i object-type=Instance/ pattern identifier=_average object-type=Double from accumulate pattern identifier=accInst object-type=Instance/ external-function evaluator=average expression=accInst.value(quot;tendquot;)/ /accumulate /from /pattern eval_average lt; 2.0/eval /lhs rhs _i.setValue(tend, 2000.0); manageRuleFired(Rule1, null, _i); modify(_i);/rhs /rule /package And I have the following error when reading the rule package: org.drools.rule.InvalidRulePackage: Rule Compilation error _average cannot be resolved _i cannot be resolved _i cannot be resolved _i__Handle__ cannot be resolved _i cannot be resolved I also have tried to replace the xml identifier pattern by column with no result. Can you help me, please? -- View this message in context: http://www.nabble.com/accumulate-funtion-in-xml-tf4526879.html#a12916380 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- View this message in context: http://www.nabble.com/accumulate-funtion-in-xml-tf4526879.html#a12935480 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http
Re: [rules-users] localhost issue with JBoss and Drools BRMS
just enable the -Djboss.bind.address=0.0.0.0 property in your jboss config On 9/18/07, Peter Docherty [EMAIL PROTECTED] wrote: I am having trouble with the BRMS running under JBoss in that the default for the JBoss app server is to run as localhost but when you change JBoss to use the actual hostname of the machine so that it can be accessed remotely, the repository can't be accessed any more. I know you can export the repository but then you lose all version history. Is there any other solution? Thanks. -- I am using Drools 4.0.1 with JBoss 4.2.1 GA. -- View this message in context: http://www.nabble.com/localhost-issue-with-JBoss-and-Drools-BRMS-tf4474532.html#a12757609 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Deploying BRMS package
Hi, Search in documentation for RuleAgent. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Sep 6, 2007, at 1:42 PM, [EMAIL PROTECTED] wrote: Hello, After building a rules package in BRMS, there is an option to create a 'Snapshot' and/or 'Download binary package'. If you select download, where do you put the .pkg file? How do you deploy the .pkg file and get your application to access it? The documentation does not say where to download the file to or how to use it. Could someone tell me. Thanks, Rod ___ 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] Will this download site be updated
Hi, Use http://labs.jboss.com/drools/downloads.html instead. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 30, 2007, at 11:28 PM, Xiandong Su wrote: Most new users visit here after they have heard jboss rules: http:// labs.jboss.com/jbossrules/downloads Does JBoss plan to update it? Thanks Xiandong ___ 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] I can use RuleAgent without .properties file ???
you can use something like this. Properties p = new Properties(); p.setProperty(url, your url) ... RuleAgent aa = RuleAgent.newRuleAgent( p ) Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 27, 2007, at 6:32 PM, Edgardo wrote: Hi list, I need your help, I need deploy the rules like Web Service, for this, I develop a web service method using the RuleAgent, but the Web Service can't read the .properties file. The question is: Exist any form for initialize RuleAgent without .properties file??? PD1: The problem could be the tomcat, but I am desperate PD2: Sorry for my poor English Thanks :D -- Edgardo Ibañez O. ___ 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] Re: Odd static inner class behavior
Hi Eric, after some tests I noticed that in java language you can't import the same class name twice even if the class is defined in different packages, ie try creating a java file and import both java.awt.List and java.util.List, it won't work, you will get a similar error from javac compiler So, if it is really necessary you can try using two package builders as I did in the following example public void testImportColision () throws Exception { final PackageBuilder builder = new PackageBuilder(); final PackageBuilder builder2 = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass ().getResourceAsStream( nested1.drl ) ) ); builder2.addPackageFromDrl( new InputStreamReader( getClass ().getResourceAsStream( nested2.drl ) ) ); final Package pkg = builder.getPackage(); final Package pkg2 = builder2.getPackage(); final RuleBase ruleBase = getRuleBase(); ruleBase.addPackage( pkg ); ruleBase.addPackage( pkg2 ); final WorkingMemory workingMemory = ruleBase.newStatefulSession(); workingMemory.insert( new FirstClass() ); workingMemory.insert( new SecondClass() ); workingMemory.insert( new FirstClass.AlternativeKey() ); workingMemory.insert( new SecondClass.AlternativeKey() ); workingMemory.fireAllRules(); } Regards Fernando On Aug 1, 2007, at 1:15 PM, Eric Miles wrote: Edson, I was finally able to get around to making a test case to determine if I did in fact see this behavior. I can reproduce it and have opened up a Jira for it. I have also attached my test case for easy reproduction. For your (and other's) knowledge, here is the link: http://jira.jboss.com/jira/browse/JBRULES-1053 Truly odd behavior for sure! Thanks, Eric Edson Tirelli wrote: Eric, Please do! Thanks, Edson 2007/7/26, Eric Miles [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Edson, That certainly makes sense. However I'm fairly certain that in referencing the inner class in rule definition, I always qualified it with the outer class name, ie: DataClass.AlternativeKey() or AnotherClass.AlternativeKey() I appreciate your explaination of the merge process. Rather than have you spend any more time on this, I'll try to put together a test case to ensure I was seeing the behavior I thought I was seeing. I probably won't get around to this until tonight or the weekend. If I was mistaken, I'll let you (and the mailing list) know. If I was not, would you like me to open a JIRA with the attached test case? I would assume that if the inner classes contain the qualified name that the engine should be able to handle that? Thanks, Eric Edson Tirelli wrote: Eric, Thanks, I understand now. What happens is that if both DRL files declare the same package name, all their contents will be merged. It means that you would end up with both imports in the same namespace: import com.company.DataClass.AlternativeKey; import com.company.AnotherClass.AlternativeKey; And so the engine will raise an error saying that it does not know which one you are refering to when you write simply: AlternativeKey I think the engine behavior is correct, since the idea of loading two different files with the same name space into the same package builder is to merge them, or even replace (update) that eventually have the same name. What do you think? Edson 2007/7/26, Eric Miles [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Edson, I have since changed my schema but here was my issue: rule1.drl: import com.company.DataClass.AlternativeKey; import com.company.DataClass; rule Some rule when DataClass.AlternativeKey(someParm == true) then ... end Different drlf file: rule2.drl import com.company.AnotherClass.AlternativeKey; import com.company.AnotherClass; rule Another rule when AnotherClass.AlternativeKey(diffParm == 1) then ... end This was the gist of what I was doing. The outer classes' names were different, it was the INNER class of each of these classes that had the same name. I was actually getting compile errors on the import statements. Like I said, these rules worked fine if loaded separately, but once I tried to put them all int he same
Re: [rules-users] 4.0 Dependencies
The readme_dependencies.txt is at trunk root directory http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/ README_DEPENDENCIES.txt you are missing the antlr runtime library On Aug 17, 2007, at 1:36 PM, Scott Reed wrote: 1) Please tell me where I can find the definitive list of dependencies for the 4.0 release. The manual lists them but also says to look for README_DEPENDENCIES.txt in the lib dir but I do not see it. I am getting the following error: Exception in thread main java.lang.NoSuchMethodError: org.antlr.runtime.DFA.unpackEncodedString(Ljava/lang/String;)[S at org.drools.lang.DRLParser.clinit(DRLParser.java:7223) at org.drools.compiler.DrlParser.getParser(DrlParser.java:204) at org.drools.compiler.DrlParser.parse(DrlParser.java:60) at org.drools.compiler.PackageBuilder.addPackageFromDrl (PackageBuilder.java:158) My classpath has antlr-3.0ea8.jar. 2) What am I missing? ___ 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] Problems with BRMS
Hey felipe, Im going to check the standalone version to see whats going on, thanks for your feedback tks On Aug 14, 2007, at 12:27 PM, Felipe Piccolini wrote: I still have the problem in stand alone version trying to save an uploaded jar with model classes... This works fine in brms.war version in jbossAS 4.0.5. What am I doing wrong?...What can I do to solve this?... I like the way extra constrains are added down side (not in the right side) of the constraint, like this: $p: Person(code == 101 || == 102 || == 104 || == 105 || == 106 || == 107 || because in the actual BRMS GUI this is added aside...making the window larger to the right. and that is awful. Thanks Im having problems using the BRMS 4.0GA and BRMS 4.0 stand alone (v 1.0). Things just crash without reason... importing models crash sometimes, and trying to create LHS in business rules got stall... not showing any option to add fact or whatever... In standalone version I have this error trying to load a model jar: ERROR 13-08 18:14:32,552 (ApplicationContext.java:log:675) Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: org.drools.brms.client.rpc.RuleAsset at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader. deserialize(ServerSerializationStreamReader.java:156) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReade r.readObject(AbstractSerializationStreamReader.java:61) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader. deserializeValue(ServerSerializationStreamReader.java:70) at org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.processCall (GWTRemoteServiceServlet.java:285) at org.jboss.seam.remoting.gwt.GWTRemoteServiceServlet.doPost (GWTRemoteServiceServlet.java:181) at javax.servlet.http.HttpServlet.service (HttpServlet.java:709) at javax.servlet.http.HttpServlet.service (HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.jboss.seam.web.ContextFilter.doFilter (ContextFilter.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.ClassNotFoundException: org.drools.brms.client.rpc.RuleAsset at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java: 188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader. deserialize(ServerSerializationStreamReader.java:135) ... 24 more PD: I checked the classes/enums in my model jar and all of them are Serializable... PD2: Also have this error trying to show rule source from a business rule in the insurance example which is included with the stand alone
Re: [rules-users] Latest Build for 4.0?
These are the same artifacts, just the maven upload was a bit delayed comparing to downloads page. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 5, 2007, at 9:51 AM, Arjun Dhar wrote: Hi, on the user forum, a post was sent to update from http://labs.jboss.com/drools/downloads. (JAR Last updated 24th Jul 07) I also took an update from: http://repository.jboss.com/maven2/org/drools/ (JAR Last updated 31st Jul 07) ...or should I just simply take the latest build from maven ??? A little confused about the latest and/or most stable. Thanks, Arjun ___ 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] nested accessors with Sets
Mark Thanks for you help. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 4, 2007, at 4:00 PM, [EMAIL PROTECTED] wrote: Edson, I opened ticket # 1058 for this - http://jira.jboss.com/jira/browse/ JBRULES-1058 Thank you, Mark -- Original message -- From: Edson Tirelli [EMAIL PROTECTED] Mark, Hmmm, something is going on with mvel integration... bellow must work. There are work arounds (like using plain java code, or using multiple patterns), but I think we need to fix that. Can you please include this info in the ticket. Thanks, []s Edson 2007/8/2, [EMAIL PROTECTED] [EMAIL PROTECTED]: Edson, Thank you for the response. I tried writing the in-line eval as suggested but get this Exception: org.drools.rule.InvalidRulePackage: Unable to determine the used declarations : [Rule name=State, agendaGroup=MAIN, salience=0, no-loop=false] at org.drools.rule.Package.checkValidity(Package.java:408) at org.drools.common.AbstractRuleBase.addPackage( AbstractRuleBase.java:288) at [...] This is my rule: rule State dialect mvel when $ca:CandidateAssociation( eval ( ! nurseDetails.stateLicensures.contains( patientDetails.state ) ) ) then retract( $ca ); end I haven't yet but, plan to open an issue in JIRA as requested Thanks for your help. Mark From: Edson Tirelli [EMAIL PROTECTED] Date: August 2, 2007 6:48:58 PM GMT-03:00 To: Rules Users List rules-users@lists.jboss.org Subject: Re: [rules-users] nested accessors with Sets Mark, Hmmm, something is going on with mvel integration... bellow must work. There are work arounds (like using plain java code, or using multiple patterns), but I think we need to fix that. Can you please include this info in the ticket. Thanks, []s Edson 2007/8/2, [EMAIL PROTECTED] [EMAIL PROTECTED]: Edson, Thank you for the response. I tried writing the in-line eval as suggested but get this Exception: org.drools.rule.InvalidRulePackage: Unable to determine the used declarations : [Rule name=State, agendaGroup=MAIN, salience=0, no- loop=false] at org.drools.rule.Package.checkValidity (Package.java:408) at org.drools.common.AbstractRuleBase.addPackage (AbstractRuleBase.java:288) at [...] This is my rule: rule State dialect mvel when $ca:CandidateAssociation( eval ( ! nurseDetails.stateLicensures.contains( patientDetails.state ) ) ) then retract( $ca ); end I haven't yet but, plan to open an issue in JIRA as requested Thanks for your help. Mark ___ 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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Guided editor (BRL) rules in the drools-examples-brms dont work
Hi Eduardo, Probably you missed some importing statement in your package configuration, check this please; Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 4, 2007, at 4:49 PM, Edgardo wrote: Hi list, I post my problem in the rules-dev list. The problem is execute the Driver is Crazy, Driver is too old and Driver special age Approved rules. I have the problem of the next section: Edgardo wrote: Yes, I did it, in the package configuration. I use the drools-4.0.0-brms version. The problem is at the moment to evaluate the next generate code of the rule: then Rejection fact0 = new Rejection(); fact0.setReason( Driver too old ); insert( fact0 ); If I use the Technical rule text editor, i dont have any problem. Greetings from Chile :) En Fri, 03 Aug 2007 19:06:05 -0400, Mark Proctor [EMAIL PROTECTED] escribió: did you upload your model and import it? Mark Edgardo wrote: Hi rules-dev list, (my english is very poor, sorry) I am interested in using the BRMS of JBoss Rules, but when I use the guided editor, this rules dont work, and in drools-examples-brms example, this dont work too, the error message (in the Driver is Crazy rule)is: RuleAgent(insuranceconfig) INFO (Fri Aug 03 16:05:58 CLT 2007): Adding package called org.acme.insurance org.mvel.CompileException: class or class reference not found: Rejection() at org.mvel.optimizers.impl.asm.ASMAccessorOptimizer.optimizeObjectCr eation(ASMAccessorOptimizer.java:1771) at org.mvel.ast.NewObjectNode.getReducedValueAccelerated (NewObjectNode.java:49) at org.mvel.MVELRuntime.execute (MVELRuntime.java:87) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:98) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:93) at org.mvel.ast.TypedVarNode.getReducedValueAccelerated (TypedVarNode.java:36) at org.mvel.MVELRuntime.execute (MVELRuntime.java:87) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:98) at org.mvel.MVEL.executeExpression(MVEL.java:202) at org.drools.base.mvel.MVELConsequence.evaluate (MVELConsequence.java:32) at org.drools.common.DefaultAgenda.fireActivation (DefaultAgenda.java:545) at org.drools.common.DefaultAgenda.fireNextItem (DefaultAgenda.java:509) at org.drools.common.AbstractWorkingMemory.fireAllRules (AbstractWorkingMemory.java:430) at org.drools.common.AbstractWorkingMemory.fireAllRules (AbstractWorkingMemory.java:392) at org.acme.insurance.launcher.InsuranceBusiness.testDriverCrazy (InsuranceBusiness.java:93) at org.acme.insurance.launcher.InsuranceBusiness.executeExample (InsuranceBusiness.java:19) at org.acme.insurance.launcher.MainClass.main(MainClass.java:13) org.drools.spi.ConsequenceException: org.mvel.CompileException: class or class reference not found: Rejection() at org.drools.common.DefaultAgenda.fireActivation (DefaultAgenda.java:549) at org.drools.common.DefaultAgenda.fireNextItem (DefaultAgenda.java:509) at org.drools.common.AbstractWorkingMemory.fireAllRules (AbstractWorkingMemory.java:430) at org.drools.common.AbstractWorkingMemory.fireAllRules (AbstractWorkingMemory.java:392) at org.acme.insurance.launcher.InsuranceBusiness.testDriverCrazy (InsuranceBusiness.java:93) at org.acme.insurance.launcher.InsuranceBusiness.executeExample (InsuranceBusiness.java:19) at org.acme.insurance.launcher.MainClass.main(MainClass.java:13) Caused by: org.mvel.CompileException: class or class reference not found: Rejection() at org.mvel.optimizers.impl.asm.ASMAccessorOptimizer.optimizeObjectCr eation(ASMAccessorOptimizer.java:1771) at org.mvel.ast.NewObjectNode.getReducedValueAccelerated (NewObjectNode.java:49) at org.mvel.MVELRuntime.execute (MVELRuntime.java:87) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:98) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:93) at org.mvel.ast.TypedVarNode.getReducedValueAccelerated (TypedVarNode.java:36) at org.mvel.MVELRuntime.execute (MVELRuntime.java:87) at org.mvel.CompiledExpression.getValue (CompiledExpression.java:98) at org.mvel.MVEL.executeExpression(MVEL.java:202) at org.drools.base.mvel.MVELConsequence.evaluate (MVELConsequence.java:32) at org.drools.common.DefaultAgenda.fireActivation (DefaultAgenda.java:545) ... 6 more Thanks :), I am waiting for you response... ___ rules-dev mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/rules-dev ___ rules-dev mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/rules-dev -- Edgardo Ibañez O. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Simple JBoss Rules Sample
Hi Robert, Have you tried the drools 4.0.0 examples ? http://labs.jboss.com/ drools/downloads regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Aug 3, 2007, at 1:33 AM, Robert Burdick wrote: Hello All: I am brand new to JBoss Rules / Drools development. I have found the examples with the version 3.0.6 download extremely unenlightening. Can anyone point me to a simple starter application to get a feel for how all of this works? A simple thick client GUI or command line application would be great. Preferably not just a collection og JUnit TestCases, but a real application, no matter how simple, that shows how to exercise the rules engine from Java would be very helpful to me. Thanks, Robert ___ 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] drools-example-brms
Shahad, I've updated drools-example-brms in both trunk and latest GA tag, I also updated the zip file in downloads page with latest drools and Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On 7/30/07, Shahad Ahmed [EMAIL PROTECTED] wrote: Hi Fernando, Removing the compiled package will help, but the problem that myself and the other users have encountered also occurs with the RuleAgent url due to the incorrect version of mvel (see the first part of my earlier post in this thread). I suspect you will also need to update the mvel jar in the lib directory in http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/lib from mvel14-1.2pre5.jar to mvel14-1.2rc1.jar. My main concern is that this problem is in the official 4.0 GA download option Drools 4.0.0 Examples, and consequently a lot of new users may have problems getting the BRMS examples to work. As the examples are often the first thing new users try, then it would be good to fix this and make the fix available on the Drools download page, as well updating the trunk. Regards Shahad On 7/30/07, Fernando Meyer [EMAIL PROTECTED] wrote: Hi Shahad, You are right, the binary in resources directory is deprecated, But as you can see I'm using the RuleAgent url to access deployed stuff ( http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/src/main/brmsdeployedrules.properties ), I think for compatibility issues will be better remove the compiled package in resources dir. Thanks for your feedback Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 30, 2007, at 1:26 PM, Shahad Ahmed wrote: I had the same problem but managed to fix it. I think the problem is that the repository in the BRMS insurance example was built with an old version of the MVEL library (mvel14-1.2pre5.jar) which means that some the MVEL objects defined in the example repository (in file repository_export.xml) have an incorrect serialVersionUID values when they are accessed by the BRMS web-app, which uses a (newer?) version of MVEL mvel14-1.2rc1.jar. Here's how I got the example working: 1. I assume you've already loaded the example repository from repository_export.xml as described in Fernando's instructions for the BRMS example in the drools 4.0GA manual (section 9, which incidentally doesn't have a table of contents entry, so you have to scroll down to near the end of the manual). Click the Packages option on the left-hand side of the BRMS page. Select the org.acme.insurance package in the Explore tab. Click on build, validate and deploy for this package. Then click the Build Package button. This will build a new version of the example, but using the new MVEL library. If the build worked, another button will appear below the Build Package button called create Snapshot for Deployment. Created a new snapshot and call it what you like. 2. Click the Deployment option on the left-hand-side of the BRMS window. Click on the Snapshot tab and then select the org.acme.insurance package. The new snapshot you created should be listed. Click the Open button beside it and copy the displayed Package URI into the brmsdeployedrules.properties file to replace the existing key called url – this is identical to the instructions in the manual. Save the file. 3. In the example eclipse project, remove the mvel14-1.2pre5.jar from the project's java build path libraries. Add in the following jars from the drools 4.0 GA binary distribution: mvel14-1.2rc1.jar drools-core-4.0.0.jar drools-compiler-4.0.0.jar Now run MainClass in the examples eclipse project. Hopefully, you will see the expected output. Note that the exported binary version of the insurance example found in resources/org.acme.insurance.pkg suffers from the same issue. To get that working as well you will need to create a new version of the file by selecting download binary package in step 1, after clicking Build Package. Also note that you get the same problem if you use the BRMS Drools 4.0.0 BRMS Standalone version that comes with Tomcat 5.5 on the download page. To fix that, find the folder drools-jbrms-1.0-standalone\shared\lib and then replace mvel14-1.0-SNAPSHOT.jar with the version of MVEL in the 4.0 GA binary dist - mvel14-1.2rc1.jar. Hope this helps. Shahad On 7/20/07, davidnm [EMAIL PROTECTED] wrote: I did it and i got the same, i forgot to say i´m running it on Tomcat 5.5 could it be the problem? Thanks. Fernando Meyer Camargo wrote: use double \ in your config. file ex. D:\\workspace2\\drools-example-brms\\cache Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 19, 2007, at 9:31 AM, David Nogueras wrote: Hi, I´m
Re: [rules-users] drools-example-brms
Hi Shahad, You are right, the binary in resources directory is deprecated, But as you can see I'm using the RuleAgent url to access deployed stuff (http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/ drools-examples-brms/src/main/brmsdeployedrules.properties ), I think for compatibility issues will be better remove the compiled package in resources dir. Thanks for your feedback Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 30, 2007, at 1:26 PM, Shahad Ahmed wrote: I had the same problem but managed to fix it. I think the problem is that the repository in the BRMS insurance example was built with an old version of the MVEL library (mvel14-1.2pre5.jar) which means that some the MVEL objects defined in the example repository (in file repository_export.xml) have an incorrect serialVersionUID values when they are accessed by the BRMS web-app, which uses a (newer?) version of MVEL mvel14-1.2rc1.jar. Here's how I got the example working: 1. I assume you've already loaded the example repository from repository_export.xml as described in Fernando's instructions for the BRMS example in the drools 4.0GA manual (section 9, which incidentally doesn't have a table of contents entry, so you have to scroll down to near the end of the manual). Click the Packages option on the left-hand side of the BRMS page. Select the org.acme.insurance package in the Explore tab. Click on build, validate and deploy for this package. Then click the Build Package button. This will build a new version of the example, but using the new MVEL library. If the build worked, another button will appear below the Build Package button called create Snapshot for Deployment. Created a new snapshot and call it what you like. 2. Click the Deployment option on the left-hand-side of the BRMS window. Click on the Snapshot tab and then select the org.acme.insurance package. The new snapshot you created should be listed. Click the Open button beside it and copy the displayed Package URI into the brmsdeployedrules.properties file to replace the existing key called url – this is identical to the instructions in the manual. Save the file. 3. In the example eclipse project, remove the mvel14-1.2pre5.jar from the project's java build path libraries. Add in the following jars from the drools 4.0 GA binary distribution: mvel14-1.2rc1.jar drools-core-4.0.0.jar drools-compiler-4.0.0.jar Now run MainClass in the examples eclipse project. Hopefully, you will see the expected output. Note that the exported binary version of the insurance example found in resources/org.acme.insurance.pkg suffers from the same issue. To get that working as well you will need to create a new version of the file by selecting download binary package in step 1, after clicking Build Package. Also note that you get the same problem if you use the BRMS Drools 4.0.0 BRMS Standalone version that comes with Tomcat 5.5 on the download page. To fix that, find the folder drools-jbrms-1.0- standalone\shared\lib and then replace mvel14-1.0-SNAPSHOT.jar with the version of MVEL in the 4.0 GA binary dist - mvel14-1.2rc1.jar. Hope this helps. Shahad On 7/20/07, davidnm [EMAIL PROTECTED] wrote: I did it and i got the same, i forgot to say i´m running it on Tomcat 5.5 could it be the problem? Thanks. Fernando Meyer Camargo wrote: use double \ in your config. file ex. D:\\workspace2\\drools-example-brms\\cache Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 19, 2007, at 9:31 AM, David Nogueras wrote: Hi, I´m trying to run the brms sample and i get the next output: RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): Configuring package provider : URLScanner monitoring URLs: http:// localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/ org.acme.insurance/David2 with local cache dir of D:\workspace2 \drools-example-brms\cache RuleAgent(insuranceconfig) WARNING (Thu Jul 19 14:27:44 CEST 2007): Falling back to local cache. java.lang.NullPointerException at org.drools.agent.FileScanner.readPackage(FileScanner.java: 101) at org.drools.agent.FileScanner.getChangeSet (FileScanner.java:79) at org.drools.agent.FileScanner.loadPackageChanges ( FileScanner.java:57) at org.drools.agent.URLScanner.loadPackageChanges (URLScanner.java:93) at org.drools.agent.RuleAgent.checkForChanges (RuleAgent.java:291) at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java: 259) at org.drools.agent.RuleAgent.configure(RuleAgent.java:228) at org.drools.agent.RuleAgent.init(RuleAgent.java:160) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:169) at org.acme.insurance.launcher.InsuranceBusiness.loadRuleBase
[rules-users] JBoss Drools BRMS Standalone
Now you can download BRMS standalone version, this distribution comes with a built-in Tomcat 5.5.20 web server and the insurance example as demo repository, so it runs out the box. If you want to test BRMS and don't have enough time to deploy, just follow to downloads page http://labs.jboss.com/drools/downloads Brief install guide 1. Install a Java Development Kit (JDK) from http://java.sun.com/ javase/downloads/index.jsp (avoid JREs, Java EEs, Netbeans, etc. on that page - you just want a JDK). 2. Set the JAVA_HOME variable to where you installed Java. Windows installers may do this for you. 3. Run bin/startup.sh (*nix) or bin\startup.bat (Windows). Check that there are no errors on the console. See below for troubleshooting advice. 4. Point your browser at http://localhost/ You should see brms's login box. Problem A common startup problem is when another program has claimed port 80, which BRMS is configured to run on by default. To avoid this port conflict, BRMS's port can be changed in conf/server.xml. If you have installation (or other) problems, ask on the mailing lists or irc. http://labs.jboss.com/drools/irc.html Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Something going on with maven2 repo?
Hey Eric, It takes a few minutes to sync maven2 repository with subversion, please try again in a few minutes. Cheers Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 27, 2007, at 2:45 PM, Eric Miles wrote: I'm trying to attempt to upgrade to 4.0.0 GA again and it looks like the org.drools:drools:4.0.0 artifact is missing on the server. However, unlike yesterday, the core and compiler artifacts now have poms and checksums (which I think was the issue yesterday). Is the release not fully available on the repo yet? Thanks, Eric ___ 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] Problems running brms
Aziz, It was a problem with our last build, please download the latest brms war from http://labs.jboss.com/drools/downloads Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 27, 2007, at 6:17 PM, Aziz Boxwala wrote: I am having a problem running brms. I cannot view any part of the web page except the mast head. I earlier had downloaded and tried out brms 4.0 MR3 and it appeared to work fine. I then downloaded a continuous build release and subsequently the 4.0.0 release. In both of these, I encountered the problem. I am running the brms under JBoss AS 4.2 on Windows Vista. I have used IE 7, Firefox 2.0.0.5 and Safari as the browser. --Aziz ___ 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] Unhappy (hoppy?) jackrabbit
Have you tried to delete both repository and repository.xml ? It always works with corrupted data. BTW, get the latest BRMS build in http://labs.jboss.com/drools/ download/index.html Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 26, 2007, at 10:48 AM, Wagner Rick - rwagne wrote: Fernando, Thanks for the tip about JSF dependencies-- I believe I've gotten past that error with the BRMS. (Downloaded JSF1.3 and copied jsf- api.jar and jsf-impl.jar to Tomcat's lib directory. I also threw in commons beanutils, collections, and digester per a web posting I'd found that advocated these actions.) So now JSF and Tomcat are happy, I can run the sample JSF apps just fine. Back to the BRMS! It seems JackRabbit is unhappy-- it's complaining about the empty custom_nodetypes.xml file I've got in Tomcat's bin/repository/repository/nodetypes directory. Here's the stacktrace: Jul 26, 2007 8:44:18 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener org.drools.repository.RulesRepositoryException: javax.jcr.RepositoryException: internal error: failed to read custom node type definitions stored in custom_nodetypes.xml: Premature end of file.: Premature end of file. at org.drools.brms.server.repository.BRMSRepositoryConfiguration.newSessi on (BRMSRepositoryConfiguration.java:91) I'm afraid I'm new to Jackrabbit, so I tried downloading and building the given release (1.3) and supplying a valid custom_nodetypes.xml from the build-- of course that didn't work. Neither did removing the parts of that file that seemed specific to the Jackrabbit build. Can you please point me in the right direction? Thanks much, Rick ** *** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ** *** ___ 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
[rules-users] [URGENT] Update in BRMS 1.0 released with drools 4.0.0
Hi peeps, For those who downloaded BRMS 1.0 from 4.0.0 (just released), you will need to download the BRMS archive again due a missing step during the yesterdays release process. We are really sorry about that. just follow to downloads page http:// labs.jboss.com/drools/downloads Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] IDE update site and Drools 4.0.0 maven Repository
We have just updated maven repository and drools IDE update site to include drools 4.0.0 GA libraries. You can check both at the following addresses: http://repository.jboss.com/maven2/org/drools/ http://downloads.jboss.com/drools/updatesite/site.xml Last but not less important, remember that the new drools page at jboss.org is http://labs.jboss.com/drools/ as same as the new downloads page http://labs.jboss.com/drools/downloads Fernando Meyer - http://fmeyer.org Y! [EMAIL PROTECTED] Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 8524-1298 JBoss, a division of Red Hat @ www.jboss.com PGP: 0xAB29DA3A ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Trouble with BRMS on newly released 4.0
Hi Rick Have you resolved all seam dependencies? you can access tomcat/ jbossws logs dir ( apache-tomcat/logs ), look for localhost $timestamp.log (where $timestamp is your latest run date) and search for something like this. Jul 25, 2007 3:50:53 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: javax/faces/context/FacesContext Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 25, 2007, at 1:52 PM, Wagner Rick - rwagne wrote: Hi all, Thanks for all the hard work going into 4.0. Could you please help me diagnose a problem I’m having with the BRMS? I’ve installed it on Tomcat 6 and JBossWS1.0.1, but under both when I try to access localhost/drools-jbrms I get only a banner header and a new URL: http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/JBRMS.html The log shows nothing out of the ordinary… Thanks, Rick ** * The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. ** ** ___ 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] JBossRules and JAVA Servlet / JSP (part2)
Hi spilirit, Try copy all your dependencies to the WebContent/WEB-INF/lib instead referring in your project. The Eclipse IDE will automatically add these libs to your classpath and to your exported war. Regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 23, 2007, at 5:33 AM, spilirit wrote: Hi, please find attached a copy of my Eclipse project, Thank you for your HelpTest.zip___ 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] JBossRules and JAVA Servlet / JSP (part2)
Please Mohamed, Attach your demo web project with scource code, then we can try to reproduce this problem. regards Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 20, 2007, at 11:48 AM, Mohammed JBossRules wrote: 2007/7/20, Mohammed JBossRules [EMAIL PROTECTED]: Hi, an other question , when i'm trying to execute the same code in the sample test java file provided by the wizard, I get some other errors : java.lang.NoClassDefFoundError: org/drools/WorkingMemory at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0 (Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1104) at org.apache.catalina.core.StandardWrapper.allocate ( StandardWrapper.java:806) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process (Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run (JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) it works fine if i'm using a simple class, but when i try to use my servlet, it falls; and finally, is it possible to contribute withe a tutorial showing how to set up drools on eclipse and running a DroolsTest sample file,(arabic, english and frensh version) that's all i can propose for the moment. thank you. 2007/7/20, Mohammed JBossRules [EMAIL PROTECTED]: hello, Thank you all for your replays; as you've suggested, what i should import into my build path was not the core and compiler but all the set contained in the drools library, maybe that would help someone later! here is the list of jars antlr-runtime.jar drools-compiler.jar drools-core.jar drools-decisiontables.jar drools-documentation.jar drools-jsr94.jar jsr94.jar junit.jar jxl.jar mvel14.jar xercesImpl.jar xml-apis.jar xpp3.jar xstream.jar Thankyou Mark for the link with kind regards, ps: tried many times to post this mail yesterday but seems that it doesn't work, sorry if you received it more than once! Mohammed JBossRules wrote: Hello, I'm a new user for JBossRules, and I'm feeling like turning around since a while, so i thought that sole body could help... I'm using JBossRules( V4.0.0.12865MR3) on eclipse (Version: 3.3.0 Build id: I20070621-1340) on MS-Windows XP and Java(TM) SE Runtime Environment (build 1.6.0_01-b06) now the problem is how to use my rules (simple rules in a DRL file) in a dynamic project based on JSP/Servlets... i've imported the compiler, the core, jsr94, decisiontable, and also the core 3.2.3 jars to my build path , but when i try to execute the same code i'm having errors like: The import org.drools cannot be resolved but i have imported the core!! what's wrong? help please regards ___ 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 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] NoClassDefFoundError for BaseObjectClassFieldExtractor when running in Tomcat
It seems to be a bug, please could you open a Ticket in jira and provide additional information for that? Thanks Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 18, 2007, at 9:16 AM, Jesse Stockall wrote: The NoClassDefFoundError exception is thrown from within drools code, so it's obviously in the classpath. The problem appears to be with the mechanism used by drools to load it's own code. Jesse On Wed, 2007-18-07 at 02:14 -0300, Fernando Meyer wrote: You should add the drools-core library as a required dependency. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 17, 2007, at 9:55 AM, Jesse Stockall wrote: Tomcat 5.5 Java 1.5 jbossrules-4.0.0.12865MR3 I have an instance of Drools running inside a webapp deployed on Tomcat. The rules have been compiled ahead of time and are loaded in with: InputStream is = PolicyRuntime.class.getResourceAsStream(name); DroolsObjectInputStream in = new DroolsObjectInputStream(is); Package p = (Package) in.readObject(); When run outside Tomcat it loads fine, when run inside Tomcat I get: java.lang.NoClassDefFoundError: org/drools/base/extractors/ BaseObjectClassFieldExtractor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at org.drools.base.ClassFieldExtractorFactory $ByteArrayClassLoader.defineClass(ClassFieldExtractorFactory.java: 455) at org.drools.base.ClassFieldExtractorFactory.getClassFieldExtractor (ClassFieldExtractorFactory.java:114) at org.drools.base.ClassFieldExtractor.init (ClassFieldExtractor.java:77) at org.drools.base.ClassFieldExtractor.init (ClassFieldExtractor.java:57) at org.drools.base.ClassFieldExtractorCache.getExtractor (ClassFieldExtractorCache.java:35) at org.drools.base.ClassFieldExtractor.readResolve (ClassFieldExtractor.java:72) I've tried adding DroolsObjectInputStream.class.getClassLoader () , PolicyRuntime.class.getClassLoader() and Thread.currentThread ().getContextClassLoader() to the constructor of the DroolsObjectInputStream but none had any effect. Thanks Jesse ___ 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 ___ 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] drools-example-brms
use double \ in your config. file ex. D:\\workspace2\\drools-example-brms\\cache Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 19, 2007, at 9:31 AM, David Nogueras wrote: Hi, I´m trying to run the brms sample and i get the next output: RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): Configuring with newInstance=true, secondsToRefresh=30 RuleAgent(insuranceconfig) INFO (Thu Jul 19 14:27:44 CEST 2007): Configuring package provider : URLScanner monitoring URLs: http:// localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/ org.acme.insurance/David2 with local cache dir of D:\workspace2 \drools-example-brms\cache RuleAgent(insuranceconfig) WARNING (Thu Jul 19 14:27:44 CEST 2007): Falling back to local cache. java.lang.NullPointerException at org.drools.agent.FileScanner.readPackage(FileScanner.java:101) at org.drools.agent.FileScanner.getChangeSet (FileScanner.java:79) at org.drools.agent.FileScanner.loadPackageChanges (FileScanner.java:57) at org.drools.agent.URLScanner.loadPackageChanges (URLScanner.java:93) at org.drools.agent.RuleAgent.checkForChanges (RuleAgent.java:291) at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:259) at org.drools.agent.RuleAgent.configure(RuleAgent.java:228) at org.drools.agent.RuleAgent.init(RuleAgent.java:160) at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:169) at org.acme.insurance.launcher.InsuranceBusiness.loadRuleBase (InsuranceBusiness.java:26) at org.acme.insurance.launcher.InsuranceBusiness.executeExample (InsuranceBusiness.java:14) at org.acme.insurance.launcher.MainClass.main(MainClass.java:13) could someone help me? ___ 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] NoClassDefFoundError for BaseObjectClassFieldExtractor when running in Tomcat
You should add the drools-core library as a required dependency. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 17, 2007, at 9:55 AM, Jesse Stockall wrote: Tomcat 5.5 Java 1.5 jbossrules-4.0.0.12865MR3 I have an instance of Drools running inside a webapp deployed on Tomcat. The rules have been compiled ahead of time and are loaded in with: InputStream is = PolicyRuntime.class.getResourceAsStream(name); DroolsObjectInputStream in = new DroolsObjectInputStream(is); Package p = (Package) in.readObject(); When run outside Tomcat it loads fine, when run inside Tomcat I get: java.lang.NoClassDefFoundError: org/drools/base/extractors/ BaseObjectClassFieldExtractor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at org.drools.base.ClassFieldExtractorFactory $ByteArrayClassLoader.defineClass(ClassFieldExtractorFactory.java:455) at org.drools.base.ClassFieldExtractorFactory.getClassFieldExtractor (ClassFieldExtractorFactory.java:114) at org.drools.base.ClassFieldExtractor.init (ClassFieldExtractor.java:77) at org.drools.base.ClassFieldExtractor.init (ClassFieldExtractor.java:57) at org.drools.base.ClassFieldExtractorCache.getExtractor (ClassFieldExtractorCache.java:35) at org.drools.base.ClassFieldExtractor.readResolve (ClassFieldExtractor.java:72) I've tried adding DroolsObjectInputStream.class.getClassLoader() , PolicyRuntime.class.getClassLoader() and Thread.currentThread ().getContextClassLoader() to the constructor of the DroolsObjectInputStream but none had any effect. Thanks Jesse ___ 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] Problem with Drools IDE (Eclipse)
Good Afternoon, Unfortunately, Drools eclipse plugin isn't compatible with Eclipse Europa ( 3.3 ), try using 3.2 instead. Regards. Fernando Meyer http://fmeyer.org [EMAIL PROTECTED] PGP: 0xD804DDFB On Jul 13, 2007, at 10:28 AM, Eric Miles wrote: I attempted to send this last night, but didn't see it show up to the user list so I'm going to try again, I apologize if this was sent more than once. When I attempt to open several views (Working Memory, Agenda, Global, etc) within an JBoss Rules enabled Eclipse, I receive the following error: java.lang.NoClassDefFoundError: org/eclipse/debug/internal/ui/ contexts/provisional/IDebugContextListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass (DefaultClassLoader.java:161) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass (ClasspathManager.java:501) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl (ClasspathManager.java:471) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImp l(ClasspathManager.java:430) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass (ClasspathManager.java:413) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClas s(DefaultClassLoader.java:189) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass (BundleLoader.java:340) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInterna l(BundleLoader.java:408) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass (DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass (DefaultClassLoader.java:161) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass (ClasspathManager.java:501) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl (ClasspathManager.java:471) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImp l(ClasspathManager.java:430) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass (ClasspathManager.java:413) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClas s(DefaultClassLoader.java:189) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass (BundleLoader.java:340) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInterna l(BundleLoader.java:408) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass (BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass (DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass (BundleLoader.java:289) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass (BundleHost.java:227) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass (AbstractBundle.java:1269) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExe cutableExtension(RegistryStrategyOSGI.java:160) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableE xtension(ExtensionRegistry.java:788) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutab leExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createEx ecutableExtension(ConfigurationElementHandle.java:51) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension (WorkbenchPlugin.java:235) at org.eclipse.ui.internal.registry.ViewDescriptor.createView (ViewDescriptor.java:69) at org.eclipse.ui.internal.ViewReference.createPartHelper (ViewReference.java:327) at org.eclipse.ui.internal.ViewReference.createPart (ViewReference.java:227) at org.eclipse.ui.internal.WorkbenchPartReference.getPart (WorkbenchPartReference.java:592) at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2077) at org.eclipse.ui.internal.WorkbenchPage.busyShowView (WorkbenchPage.java:1018) at org.eclipse.ui.internal.WorkbenchPage.access$18 (WorkbenchPage.java:999) at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java: 3666) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.showView (WorkbenchPage.java:3663) at org.eclipse.ui.internal.WorkbenchPage.showView
[rules-users] Examples moving
Hi peeps, Just to be consistence, the drools-example directory now contains examples projects and not an eclipse project anymore: trunk -drools-examples -drools-examples-drl -drools-examples-brms -drools-examples-* Im about to add a xml test project and improve brms examples. Let me know if something isn't working fine. Regards Fernando Meyer Software Engineer - JBoss Rules Core Developer Office: +55 11 3124-6000 Mobile: +55 11 8524-1298 JBoss, a division of Red Hat @ www.jboss.com GPG: 47C0 F16E 0387 F4DF 7EBC 8E3C 7AF1 8D55 AB29 DA3A ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Unexpected token . in primary - Rule Compilation Error
howdy, is your package name right? please paste your rule code. Fernando Meyer [EMAIL PROTECTED] GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB On Jun 29, 2007, at 10:16 PM, McShiv wrote: com.package.FatalSystemException at org.drools.rule.Package.checkValidity(Unknown Source) at org.drools.reteoo.RuleBaseImpl.addPackage(Unknown Source) at com.sentry.underwriting.ruleexecutor.DroolsExecutor.executeRules (DroolsExecutor.java) at com.sentry.underwriting.ruleexecutor.RulesExecutionProcessor.callRules Executor(RulesExecutionProcessor.java:82) at com.sentry.underwriting.ruleexecutor.RulesExecutionProcessor.rulesExec utionprocess(RulesExecutionProcessor.java:65) at com.sentry.underwriting.ruleprocessor.RulesProcessor.processRules (RulesProcessor.java) at com.sentry.underwriting.test.UnderwritingDemo.main (UnderwritingDemo.java:21) Caused by: org.drools.rule.InvalidRulePackage: Rule Compilation error File com/policy/Rule_SpeCodeSpeValProdPlan12_0.java, Line 12, Column 176: Unexpected token . in primary ... 7 more I am using Drools 3.0.6 version. I got the above message when the drl files are added to the RuleBase class. I debugged the code. The error was thrown when ruleBase.addPackage(packageBuilder.getPackage()); line was called in the DroolsExecutor class. Can anyone please suggest me any sollution for this problem. Thanks in addvance. Thanks, McShiv. -- View this message in context: http://www.nabble.com/Unexpected- token-%22.%22-in-primary---Rule-Compilation-Error- tf4002948.html#a11369488 Sent from the drools - user 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] Help Needed.
Hi Rajesh, You MUST use the org.drools.util.BinaryRuleBaseLoader to load a precompiled binary package into your RE classes. public void testLoadAndExecBinary() throws Exception { Person p = new Person(); BinaryRuleBaseLoader loader = new BinaryRuleBaseLoader(); loader.addPackage( this.getClass().getResourceAsStream( / RepoBinPackage.pkg ) ); RuleBase rb = loader.getRuleBase(); StatelessSession sess = rb.newStatelessSession(); sess.execute( p ); assertEquals(42, p.getAge()); } Fernando Meyer [EMAIL PROTECTED] GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB On Jun 1, 2007, at 3:16 AM, Rajesh_Kumar wrote: hi , First of all congratulations to you for JBRMS release. You and your team has done a great job. Micheal I am facing some issue , when I use jbrms. I have written a sample technical rule by following all the steps as mentioned in the document. I am able to download binary package also,but when I tried to use this package in my rule engine class using following code it’s giving some error like … FileInputStream fis = new FileInputStream( C:/drools/ TestPackage.pkg ); ObjectInputStream ois = new ObjectInputStream( fis ); Object objPackage = ois.readObject() ; when ObjectInputStream object tries to read the object , its giving some an error ois.close(); fis.close(); Could you please help me out for this … java.io.InvalidClassException: org.drools.rule.Rule; incompatible types for field salience at java.io.ObjectStreamClass.matchFields(Unknown Source) at java.io.ObjectStreamClass.getReflector(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.util.HashMap.readObject(Unknown Source) 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 java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.drools.rule.PackageCompilationData.readExternal (PackageCompilationData.java:128) at java.io.ObjectInputStream.readExternalData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.drools.rule.Package.readExternal(Package.java:160) at java.io.ObjectInputStream.readExternalData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at com.sample.DroolsTest.readRule(DroolsTest.java:36) at com.sample.DroolsTest.main(DroolsTest.java:17) ___ 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] Localization in DSL
In theory you can write DSLs in any languages, I ain't sure about encoding issues, need to check with tirelli. btw, just try with the japanese encoding and give us your feedback and some screenshots, then we can change that pt_br dsl in jbossrules home ;) We have a ticket to implement i18n internationalization support in BRMS, http://jira.jboss.com/jira/browse/JBRULES-872 It isn't an easy task at moment, because mostly of the BRMS strings are inside widget's code. So, probably this feature will be available on next version's milestones. Contributors are welcome. Fernando Meyer [EMAIL PROTECTED] GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB On Jun 4, 2007, at 11:22 AM, Shigeaki Wakizaka wrote: Hello. I'd like to use Japanese in DSL. Is it possible? Do you have a plan to do the localize-thing with DSL and brand-new BRMS? Thanks in advance Shige ___ 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] A Suggestion
Thanks for your suggestion Jagaran, i'm going to correct this issue. Fernando Meyer [EMAIL PROTECTED] GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB On May 29, 2007, at 1:20 AM, jagaran das wrote: Hi I n BRMS when you upload a Fact model it takes any input you give. I mean let it be a simple file, a war file. But I think it gets reflected if you give only a jar file as input. So it would be nice if we have a check that we can upload only jar file and nothing else. Regards Jagaran Looking for people who are YOUR TYPE? Find them here! ___ 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] Re: JBRMS Query, very imp for me
Howdy jagaran, Can you please give me some informations about your application environment? are you running on jboss AS, tomcat or jetty ? regards Fernando Fernando Meyer [EMAIL PROTECTED] GPG: 5A6D 3374 B055 A513 9A02 A03B 3DB3 7485 D804 DDFB On May 30, 2007, at 12:54 AM, jagaran das wrote: Hi Mark, You are right I would try to use Hibernate to store data in MySql. But I have a different problem. For creating rule package through JBRMS I have done following stuffs: The project is really great. but i am unable to download the binary package. The steps followed by me is as below: 1. created a category. 2. created a package associated with that category. 3.Loaded a fact model which is a bean class and linked it with the package. 4. created some business rules. 5.imported the bean class in the configure package option and saved the changes. 6. created a new snapshot. 7. Build the package and it shown a success message too. 8. Now tried to download the package but it is giving package not found. Please let me know the solution. The message below is shown after i have created all the necessary stuffs. Building a package will collect all the assets, validate and compile into a deployable package. and the message that Package built successfully. But cant down load the package as it is giving the following menage. Status report message /drools-jbrms/org.drools.brms.JBRMS/package/com.sample/LATEST description The requested resource (/drools-jbrms/ org.drools.brms.JBRMS/package/com.sample/LATEST) is not available. Please let me know of the solutions. Mark Proctor [EMAIL PROTECTED] wrote: you lost me, sounds like you don't want to use jackrabbit persistence, but have your own way to store normalised rules in your own database schema - we don't have anything for that at the moment, you'd have to create this yourself. Mark jagaran das wrote: Hey Mark, Nice to receive your post. If we want to store data directly in the database we need some specific rule table and ruleset table and other tables and a persistence service like Hibernate. But we need to pick the values from the gui and arrange it accordingly. Regards JAGARAN Download prohibited? No problem! CHAT from any browser, without download. Did you know? You can CHAT without downloading messenger. Know how! ___ 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