How to feed camel-server with kmodules using kie-ci?
by wogo
Hi,
I am trying to integrate drools-camel-server-example and kie-ci (6.0.1)
plugin.
My goal is to load modules from maven (built/deployed from kie-wb).
Maven configuration looks fine, as MavenSettings are initialized while
debugging (I see my repos).
I do everything locally to make things simpler.
Standalone code (from Eclipse) works fine with kie-cie - I execute
"Underage" rule from mortgages example.
I have built server with all kie-cie dependencies, however none of kmodules
deployed in Maven is loaded.
What am I missing? Is there anything special required in
knowledge-services.xml (I have used a default one provided originally in
.war)?
Do you have an example of mortgages obtained via camel-server?
Regards,
Wojciech
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-feed-camel-server-with-kmodules-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 7 months
Drools workbench camel integration
by Ashok Babu
Hi,
We are looking for the way to consume the DRLs managed in the Drools
workbench in the camel and expose them as services to the clients.
We have tried it with the sample examples (with drl files) provided in the
camel integration example and found it working. Using drools 6.0.1, now how
the workbench knowledge base should be added to the camel knowledge
services?
Searched a lot, could not find a reference/help on this regard? We are
looking for XML element like below for the file based integration
<kie:kbase name="kbase1" packages="org.drools.server"> <kie:ksession
name="ksession1" type="stateless"/> </kie:kbase>
>From the Java application, we are able to run against the workbench
knowledgebase dynamically (using maven release id). How this should be
integrated with camel services?
Regards,
Anton
10 years, 7 months
Consume Dymanic rules from application
by Anton
Hi,
I have been trying to consume the dynamic rules from another application..
Could not accomplish this..
Following is the setup, please identify what has been missed.
Have workbench 6.0.1 working
Able to create rules and build and deploy
Have the rules at local maven repository
Able to see the rules in the remote repository as well. Thru
http://localhost:8080/context/maven2
I have Kie-ci-6.0.1.jar in my external applications classpath
Added the repository details in settings.xml both at
mavenhome/conf/settings.xml and user_home/.m2/settings.xml
Still I am not able to use the rules from the remore repository. Please
point out anything I am missing.
Regards,
Anton
--
View this message in context: http://drools.46999.n3.nabble.com/Consume-Dymanic-rules-from-application-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 7 months
Drools Declaring New Types To Use Across Multiple Files
by Jan Šťastný
Hi,
can anybody tell me, how can I declare a type which I can use in
multiple files?
Sure, I can create a java class and then import to respective files. But
I was wondering whether there was a solution which wouldn't demand
compilation of source code after each change of rules (extending the
rules with new type which is java class would require that).
Any suggestion appreciated.
Regards
Jan
10 years, 7 months
KIE API for Decision Tables Templates
by Andrei Ermicioi
Hi there!
I was looking on web to find if KIE provide any API for reading the Decision Tables from XLS/CSV and I was not able to find :(
Can somebody point me where I can find that or just to tell me if such API exist or not.
Thank you.
--
Andrei Ermicioi aka erani,
Software Engineer at CaseNet
Phone: +420 776 424 143
Skype: aermicioi_casenet
________________________________
CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within including any attachments is only for the recipient(s) to which it is intended and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of; or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please send the e-mail back by replying to the sender and permanently delete the entire message and its attachments from all computers and network systems involved in its receipt.
10 years, 7 months
What is the compatibility matric of kie workbench 6.0.x and 6.1.x?
by Shrinath Managuli
Hi,
Will workbench 6.0 deploy on jdk7 and jee 6 and will the same work for 6.1.x?
I'm trying to deploy on WAS 8.5.5 running jdk 7.
Thanks,
Shrinath Managuli
[Aspire Systems]
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
10 years, 7 months
Memory leak due CompositeClassLoader
by Romain Thouvenin
Hello,
I am working on a Web application that uses a third-party component that
uses Drools 5.2.1 (I know this is old, but this is not my choice).
While investigating memory leaks in my application, I found out that after
redeploying the webapp in the application server (Weblogic), the leaking
class loader is referenced by:
org.drools.util.CompositeClassLoader.classLoaders
This is because when that class is instantiated by
org.drools.util.ClassLoaderUtil, the initial list of class loaders
includes the context class loader of the current thread, which is the
class loader of my webapp. But the class loader of CompositeClassLoader is
not the same as my webapp, so when I redeploy my webapp
CompositeClassLoader continues to exist and keep that reference to the
webapp class loader, which is therefore never garbage-collected.
Browsing a bit through the code, I see no reference to
CompositeClassLoader.removeClassLoader that could remove the faulty
reference.
So my questions are:
1) Is my investigation correct?
2) I found this thread on the list:
http://drools.46999.n3.nabble.com/permgen-leak-td4027038i20.html
Is this the same issue as mine, meaning that it is fixed in 5.6.0 and 6.0?
If yes, pushing this third-party component to upgrade is really the only
solution I have?
I am not at all a knowledgeable user of drools, I just happen to be user
of that third-party component, that is why I wanted confirmation of my
findings.
Thanks for your help!
Romain
10 years, 7 months
Linkage Error In execute method
by Karan Malhotra
Hi All,
We have recently upgraded our application from 5.1.0 to 5.4.0.Final.
Everything worked well until this was deployed at Production Envr. We started getting multiple Linkage Error in execute method of Stateless KnowledgeSession.
StackTrace:
Exception: java.util.concurrent.ExecutionException: java.lang.LinkageError: loader (instance oforg/drools/rule/JavaDialectRuntimeData$PackageClassLoader): attemptedduplicate class definition for name: "OffBarCapping/Rule_Off_Bar_Tariff_Capping_13_2a4a909def69414bbd60cdfdac9ad807"|
OffBarCapping/Rule_Off_Bar_Tariff_Capping_16_6b6f1282708449448fc434e820fa8e1f# at OffBarCapping.Rule_Off_Bar_Tariff_Capping_16_6b6f1282708449448fc434e820fa8e1fPredicate0InvokerGenerated.evaluate(Unknown Source)# at OffBarCapping.Rule_Off_Bar_Tariff_Capping_16_6b6f1282708449448fc434e820fa8e1fPredicate0Invoker.evaluate(Unknown Source)# at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:299)# at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)# at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:497)# at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:382)# at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:235)# at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:240)# at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:337)# at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:298)# at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:888)# at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:847)# at org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:269)# at org.drools.impl.StatelessKnowledgeSessionImpl.execute(StatelessKnowledgeSessionImpl.java:294)#
1. Some surfing on the internet referred us to a similar JIRA issue:- JBRULES-3675<https://issues.jboss.org/browse/JBRULES-3675>
It says this has been fixed in 6.0.0. We were not in a position to upgrade to 6.0.0 right away and hence decide to apply a patch in drools-core-5.4.0.Final.jar
Drools: 5.4.0
public Class<?> More ...fastFindClass( final String name ) {
Class<?> cls = findLoadedClass( name );
if (cls == null) {
final byte[] clazzBytes = this.store.read( convertClassToResourcePath( name ) );
if (clazzBytes != null) {
String pkgName = name.substring( 0,
name.lastIndexOf( '.' ) );
if (getPackage( pkgName ) == null) {
definePackage( pkgName,
"",
"",
"",
"",
"",
"",
null );
}
cls = defineClass( name,
clazzBytes,
0,
clazzBytes.length,
PROTECTION_DOMAIN );
}
if (cls != null) {
resolveClass( cls );
}
}
return cls;
}
Path applied:-
public Class fastFindClass(String name)
{
Class cls = findLoadedClass(name);
if(cls == null)
{
byte clazzBytes[] = store.read(JavaDialectRuntimeData.convertClassToResourcePath(name));
if(clazzBytes != null)
{
String pkgName = name.substring(0, name.lastIndexOf('.'));
if(!existingPackages.contains(pkgName))
{
synchronized(this)
{
if(!existingPackages.contains(pkgName))
{
if(getPackage(pkgName) == null)
{
definePackage(pkgName, "", "", "", "", "", "", null);
}
existingPackages.add(pkgName);
}
}
}
cls = defineClass(name, clazzBytes, 0, clazzBytes.length, JavaDialectRuntimeData.access$000());
}
if(cls != null)
{
resolveClass(cls);
}
}
return cls;
}
But we are still getting this Error.
Let me know if any one did face a similar issue and solution for the same.
Thanks and regards,
Karan Malhotra
The contents of this email, including the attachments, are PRIVILEGED AND CONFIDENTIAL to the intended recipient at the email address to which it has been addressed. If you receive it in error, please notify the sender immediately by return email and then permanently delete it from your system. The unauthorized use, distribution, copying or alteration of this email, including the attachments, is strictly forbidden. Please note that neither MakeMyTrip nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). No contracts may be concluded on behalf of MakeMyTrip by means of email communications.
10 years, 7 months
Drools Workbench Camel integration
by Anton
Hi,
We are looking for the way to consume the DRLs managed in the Drools
workbench in the camel and expose them as services to the clients.
We have tried it with the sample examples (with drl files) provided in the
camel integration example and found it working. Using drools 6.0.1, now how
the workbench knowledge base should be added to the camel knowledge
services?
Searched a lot, could not find a reference/help on this regard? We are
looking for XML element like below for the file based integration
<kie:kbase name="kbase1" packages="org.drools.server">
<kie:ksession name="ksession1" type="stateless"/>
</kie:kbase>
>From the Java application, we are able to run against the workbench
knowledgebase dynamically (using maven release id). How this should be
integrated with camel services?
Regards,
Anton
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Workbench-Camel-integration-tp40...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 7 months
Deploying kie-drools workbench 6.1 beta on websphere liberty 8.5.5 gives classpath errors
by Shrinath Managuli
Hi ,
I ran kie-drools workbench 6.1 beta on websphere liberty 8.5.5 and gives manifest file related errors as below. I tried to add jars but spent all the time just find that again it asks for other jars in loop with different versions of same jars.
Need help on this..
Error:
The manifest class path avalon-framework-4.2.0.jar can not be found in jar file file:/D:/Program%20Files/IBM/Liberty/usr/servers/guvnor/apps/drools6/WEB-INF/lib/fop-0.95.jar or its parent.
[4/4/14 18:31:12:530 IST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path batik-all-1.7.jar can not be found in jar file file:/D:/Program%20Files/IBM/Liberty/usr/servers/guvnor/apps/drools6/WEB-INF/lib/fop-0.95.jar or its parent.
[4/4/14 18:31:12:531 IST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path commons-io-1.3.1.jar can not be found in jar file file:/D:/Program%20Files/IBM/Liberty/usr/servers/guvnor/apps/drools6/WEB-INF/lib/fop-0.95.jar or its parent.
[4/4/14 18:31:12:531 IST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path commons-logging-1.0.4.jar can not be found in jar file file:/D:/Program%20Files/IBM/Liberty/usr/servers/guvnor/apps/drools6/WEB-INF/lib/fop-0.95.jar or its parent.
[4/4/14 18:31:12:532 IST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path serializer-2.7.0.jar can not be found in jar file file:/D:/Program%20Files/IBM/Liberty/usr/servers/guvnor/apps/drools6/WEB-INF/lib/fop-0.95.jar or its parent.
.......
Thanks
Shrinath
[Aspire Systems]
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
10 years, 7 months