Quantcast

unable to update the changes (guvnor rules) to application using changeset

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
Which version of Guvnor/Drools are you using? There was a known bug that affected even 5.3 where knowledge packages in Guvnor were marked as removed: https://issues.jboss.org/browse/GUVNOR-1699
This issue should be solved now.

Best Regards,  

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Jan 12, 2012 at 7:44 AM, srinivasasanda <[hidden email]> wrote:
Hi All


I am not able to get the updated rules still i used change set , can any one
plz sort out this problem

The source code is

using this program i am printing the rule name in package for every five
seconds.
for first time it prints rule names in package, after that packages are not
available in kbase...

import org.drools.KnowledgeBase;
import org.drools.KnowledgeBaseFactory;
import org.drools.agent.KnowledgeAgent;
import org.drools.agent.KnowledgeAgentFactory;
import org.drools.builder.KnowledgeBuilder;
import org.drools.builder.KnowledgeBuilderError;
import org.drools.builder.KnowledgeBuilderErrors;
import org.drools.builder.KnowledgeBuilderFactory;
import org.drools.builder.ResourceType;
import org.drools.definition.KnowledgePackage;
import org.drools.io.ResourceChangeScannerConfiguration;
import org.drools.io.ResourceFactory;
import org.drools.logger.KnowledgeRuntimeLogger;
import org.drools.logger.KnowledgeRuntimeLoggerFactory;
import org.drools.runtime.StatefulKnowledgeSession;
import org.drools.runtime.StatelessKnowledgeSession;
import org.drools.agent.*;

public class ChangeSet1
{

   private ChangeSet1()
   {

   }


   public static synchronized ChangeSet1 start()
   {
       try{
            if ( _instance == null)
            {

               _instance = new ChangeSet1();
                               String url="file:H:\\RuleFiles\\ChangeSet.xml";
                               _kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
               System.out.println("after creating kagent");
                   _kagent.applyChangeSet(ResourceFactory.newUrlResource(url));
               System.out.println("after apply change set");
                               //Create Knowledge Base
                               _kbase = _kagent.getKnowledgeBase();
                               ResourceChangeScannerConfiguration sconf=

ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
                               sconf.setProperty("drools.resource.scanner.interval", "5");
                               ResourceFactory.getResourceChangeScannerService().configure(sconf);
                               ResourceFactory.getResourceChangeNotifierService().start();
                               ResourceFactory.getResourceChangeScannerService().start();
                               System.out.println("After starting Notification service");
                        }
       }catch(Exception e)
       {
           System.out.println(e.getMessage());
       }
            return  _instance;
   }

       private static KnowledgeAgent _kagent;
       private static ChangeSet1 _instance;
       private static KnowledgeBase _kbase=null;
       private static StatelessKnowledgeSession _ksession=null;

          public static void main(String[] args)
   {
       int counter=0;
       try
       {
               System.out.println("Before rule engine start ");
               ChangeSet1.start();
               System.out.println("After rule engine start ");
               do{
                       _kbase = _kagent.getKnowledgeBase();
                   Collection<KnowledgePackage> kpackages =
_kbase.getKnowledgePackages();
                   System.out.println("no of packages"+kpackages.size());
                   for(KnowledgePackage kpackage : kpackages)
                   {
                      for(org.drools.definition.rule.Rule rule1
:kpackage.getRules())
                      {
                          String packname= rule1.getPackageName();
                          String rulename=rule1.getName();
                          System.out.println("This is : "+packname+" Packages and
RuleName is " +rulename);
                      }
                   }
                   counter++;

                   try{
                   Thread.sleep(10000);
                   }catch (InterruptedException e){
                       System.out.println("Sleep exception occured");
                   }

               }while(counter < 10000);

       }catch (Throwable t){
           t.printStackTrace();
       }
   }


}




This is my changeset.xml

<change-set xmlns='http://drools.org/drools-5.0/change-set'
   xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
   xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'
>
   <add>
        <resource
source='http://localhost:8080/guvnor-5.3.0.Final-jboss-as-5.1/rest/packages/pricing/source'
type='DRL' />
        <resource
source='http://localhost:8080/guvnor-5.3.0.Final-jboss-as-5.1/rest/packages/search/source'
type='DRL' />
   </add>
</change-set>



 Output:--
Before rule engine start
after creating kagent
after apply change set
After starting Notification service
After rule engine start
no of packages2
This is : pricing Packages and  RuleName is ageprice
This is : pricing Packages and  RuleName is incomeprice
This is : pricing Packages and  RuleName is cpvprice
This is : search Packages and  RuleName is age
This is : search Packages and  RuleName is income
This is : search Packages and  RuleName is cpv
no of packages0
<after updating package count is 0 so no rules>
no of packages0
no of packages0



--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3652824.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
What is the response of "http://localhost:8080/guvnor-5.3.0.Final-jboss-as-5.1/rest/packages/pricing/sourceif you invoke it using your browser for example? 

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Thu, Jan 12, 2012 at 3:38 PM, srinivasasanda <[hidden email]> wrote:
Hi Esteban,

I need a small clarification regarding this context.Can you please suggest
me.

Actually My above code where I'm applying ChangeSet to local DRL files in
localsystem.My Java code is working fine and displaying packages and othere
content.It means my ChangeSet.xml is as follows:
<add>
        <resource source='file:D:\rulemaster.drl' type='DRL' />
   </add>
But,When I specify resource source as DRL file from guvnor(REST API) as
below
My Java code is not working correctly.Can you please suggest me why this
difference is?

I'm using guvnor 5.3.Is it possible in guvnor 5.3?

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3653834.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
Could you share the output log please? 

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Fri, Jan 13, 2012 at 6:26 AM, srinivasasanda <[hidden email]> wrote:
Thank you for your reply.The response from the above url is a text file which
contains DRL.(pricing.txt)

pricing.txt
package pricing


declare person
   age: Integer
   income: Integer
   cpv: Integer
end

declare specification
   databandwidth: Integer
   smsusage: Integer
   voiceusage: Integer
   videousage: Integer
end

declare results
   result: String
end

declare policy
   policyid: Integer
end



rule "ageprice"
   dialect "mvel"
   when
       person( age < 99  && > 1 )
       r : results( )
   then
       r.setResult("199");
System.out.println("ageprice");
end


rule "incomeprice"
   dialect "mvel"
   when
       person( income < 99999  && > 1 )
       r : results( )
   then
       r.setResult("599");
System.out.println("income price");
end


rule "cpvprice"
   dialect "mvel"
   when
       person( cpv < 6  && > 1 )
       r : results( )
   then
       r.setResult("999");
System.out.println("cpv price");
end

rule "policy"
   dialect "mvel"
   when
       policy( policyid == 101 )
   then
       System.out.println("policy filred");
end



--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3655822.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
I will need the logs of your client application. The one that is creating the Knowledge Agent. You should be able to see there some logs from the Knowledge Agent.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Fri, Jan 13, 2012 at 10:15 AM, srinivasasanda <[hidden email]> wrote:
My Server Log is

<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:42:35,329 INFO  [org.jboss.web.WebService] (main) Using RMI
server codebase: http://127.0.0.1:8083/
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:42:41,441 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig]
(main) JBoss Web Services - Stack Native Core
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:42:41,443 INFO  [org.jboss.wsf.stack.jbws.NativeServerConfig]
(main) 3.1.2.GA
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:42:42,088 INFO
[org.jboss.dependency.plugins.AttributeCallbackItem] (main) Owner callback
not implemented.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:42:43,208 INFO  [org.jboss.logbridge.LogNotificationListener]
(main) Adding notification listener for logging mbean
"jboss.system:service=Logging,type=Log4jService" to server
org.jboss.mx.server.MBeanServerImpl@24e801[ defaultDomain='jboss' ]
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:06,670 INFO
[org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered
deployment
AbstractVFSDeploymentContext@28973262{vfsfile:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:06,675 INFO
[org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered
deployment
AbstractVFSDeploymentContext@28973262{vfsfile:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:06,681 INFO
[org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered
deployment
AbstractVFSDeploymentContext@28973262{vfsfile:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:06,685 INFO
[org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered
deployment
AbstractVFSDeploymentContext@28973262{vfsfile:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:08,789 INFO
[org.jboss.mx.remoting.service.JMXConnectorServerService] (main) JMX
Connector server:
service:jmx:rmi://<a href="http://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector 2012-01-13" target="_blank">127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
2012-01-13 14:43:08,898 INFO  [org.jboss.mail.MailService] (main) Mail
Service bound to java:/Mail
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:10,894 WARN
[org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore] (main) WARNING!
POTENTIAL SECURITY RISK. It has been detected that the MessageSucker
component which sucks messages from one node to another has not had its
password changed from the installation default. Please see the JBoss
Messaging user guide for instructions on how to do this.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:10,911 WARN
[org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader
provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:10,969 WARN
[org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader
provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,015 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) JBossTS
Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,018 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Setting up
property manager MBean and JMX layer
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,203 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Initializing
recovery manager
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,281 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Recovery
manager configured
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,282 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Binding
TransactionManager JNDI Reference
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,307 INFO
[com.arjuna.ats.jbossatx.jta.TransactionManagerService] (main) Starting
transaction recovery manager
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,647 INFO
[org.apache.catalina.core.AprLifecycleListener] (main) The Apache Tomcat
Native library which allows optimal performance in production environments
was not found on the java.library.path:
C:\newsoa\jdk160_24\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Users\proteas\Downloads\apache-ant-1.8.2\bin;D:\jbpm-installer\eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.4.0.v201112160242-rel-r36\gwt-2.4.0;C:\newsoa\jdk160_24\\bin;D:\apache-maven-3.0.3\bin;C:\apache-ant-1.8.2\bin;C:\Windows\System32
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,701 INFO  [org.apache.coyote.http11.Http11Protocol]
(main) Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,705 INFO  [org.apache.coyote.ajp.AjpProtocol] (main)
Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,725 INFO  [org.apache.catalina.core.StandardService]
(main) Starting service jboss.web
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,730 INFO  [org.apache.catalina.core.StandardEngine]
(main) Starting Servlet Engine: JBoss Web/2.1.3.GA
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,771 INFO  [org.apache.catalina.startup.Catalina] (main)
Server startup in 63 ms
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:11,798 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/jbossws
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,154 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/web-console
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,344 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/invoker
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,439 INFO  [org.jboss.resource.deployers.RARDeployment]
(main) Required license terms exist, view
vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,457 INFO  [org.jboss.resource.deployers.RARDeployment]
(main) Required license terms exist, view
vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,492 INFO  [org.jboss.resource.deployers.RARDeployment]
(main) Required license terms exist, view
vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,513 INFO  [org.jboss.resource.deployers.RARDeployment]
(main) Required license terms exist, view
vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,538 INFO  [org.jboss.resource.deployers.RARDeployment]
(main) Required license terms exist, view
vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,616 INFO  [org.quartz.simpl.SimpleThreadPool] (main) Job
execution threads will use class loader of thread: main
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,639 INFO  [org.quartz.core.QuartzScheduler] (main)
Quartz Scheduler v.1.5.2 created.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,644 INFO  [org.quartz.simpl.RAMJobStore] (main)
RAMJobStore initialized.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,645 INFO  [org.quartz.impl.StdSchedulerFactory] (main)
Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource
file in Quartz package: 'quartz.properties'
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,649 INFO  [org.quartz.impl.StdSchedulerFactory] (main)
Quartz scheduler version: 1.5.2
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,651 INFO  [org.quartz.core.QuartzScheduler] (main)
Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:12,964 INFO
[org.jboss.resource.connectionmanager.ConnectionFactoryBindingService]
(main) Bound ConnectionManager
'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name
'java:DefaultDS'
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,461 INFO  [org.jboss.jms.server.ServerPeer] (main) JBoss
Messaging 1.4.3.GA server [0] started
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,576 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector
bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000
milliseconds
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,579 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main)
org.jboss.jms.server.connectionfactory.ConnectionFactory@a34901 started
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,593 INFO
[org.jboss.jms.server.destination.QueueService] (main)
Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000,
downCacheSize=2000
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,596 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector
bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000
milliseconds
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,601 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main)
org.jboss.jms.server.connectionfactory.ConnectionFactory@fa6b62 started
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,604 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main)
supportsFailover attribute is true on connection factory:
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but
post office is non clustered. So connection factory will *not* support
failover
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,609 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactoryJNDIMapper] (main)
supportsLoadBalancing attribute is true on connection factory:
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but
post office is non clustered. So connection factory will *not* support load
balancing
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,615 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main) Connector
bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000
milliseconds
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,618 INFO
[org.jboss.jms.server.connectionfactory.ConnectionFactory] (main)
org.jboss.jms.server.connectionfactory.ConnectionFactory@15e43c2 started
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,621 INFO
[org.jboss.jms.server.destination.QueueService] (main) Queue[/queue/DLQ]
started, fullSize=200000, pageSize=2000, downCacheSize=2000
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:13,704 INFO
[org.jboss.resource.connectionmanager.ConnectionFactoryBindingService]
(main) Bound ConnectionManager
'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
'java:JmsXA'
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,002 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) Created KernelDeployment for: profileservice-secured.jar
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,009 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,012 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   with dependencies:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,014 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and demands:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,016 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)
jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,019 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jboss.ejb:service=EJBTimerService
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,021 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and supplies:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,023 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  Class:org.jboss.profileservice.spi.ProfileService
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,025 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jndi:SecureProfileService/remote
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,027 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)
jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,030 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,035 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,039 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   with dependencies:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,041 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and demands:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,042 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jboss.ejb:service=EJBTimerService
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,044 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and supplies:
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,046 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)
jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,050 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,051 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jndi:SecureDeploymentManager/remote
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,053 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,057 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
2012-01-13 14:43:14,060 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   with dependencies:
2012-01-13 14:43:14,062 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and demands:
2012-01-13 14:43:14,064 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jboss.ejb:service=EJBTimerService
2012-01-13 14:43:14,066 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)   and supplies:
2012-01-13 14:43:14,067 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)
jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
2012-01-13 14:43:14,071 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  Class:org.jboss.deployers.spi.management.ManagementView
2012-01-13 14:43:14,073 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main)  jndi:SecureManagementView/remote
2012-01-13 14:43:14,075 INFO  [org.jboss.ejb3.deployers.JBossASKernel]
(main) Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
2012-01-13 14:43:14,086 INFO
[org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy
AbstractBeanMetaData@95339c{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,091 INFO
[org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy
AbstractBeanMetaData@93f6d6{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,096 INFO
[org.jboss.ejb3.endpoint.deployers.EJB3EndpointDeployer] (main) Deploy
AbstractBeanMetaData@1142417{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,260 INFO  [org.jboss.ejb3.session.SessionSpecContainer]
(main) Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,271 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED
EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName:
SecureDeploymentManager
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,310 INFO
[org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main)
Binding the following Entries in Global JNDI:

       SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface

SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
- EJB3.x Remote Business Interface

<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,381 INFO  [org.jboss.ejb3.session.SessionSpecContainer]
(main) Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,386 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED
EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName:
SecureManagementView
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,403 INFO
[org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main)
Binding the following Entries in Global JNDI:

       SecureManagementView/remote - EJB3.x Default Remote Business Interface

SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
- EJB3.x Remote Business Interface

<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,453 INFO  [org.jboss.ejb3.session.SessionSpecContainer]
(main) Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,458 INFO  [org.jboss.ejb3.EJBContainer] (main) STARTED
EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName:
SecureProfileService
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,474 INFO
[org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] (main)
Binding the following Entries in Global JNDI:

       SecureProfileService/remote - EJB3.x Default Remote Business Interface
       SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService -
EJB3.x Remote Business Interface

<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,596 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/admin-console
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:14,743 INFO
[javax.enterprise.resource.webcontainer.jsf.config] (main) Initializing
Mojarra (1.2_12-b01-FCS) for context '/admin-console'
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:16,443 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:30,758 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/guvnor-5.3.0.Final-jboss-as-5.1
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:30,931 ERROR [STDERR] (main) SLF4J: Class path contains
multiple SLF4J bindings.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:30,931 ERROR [STDERR] (main) SLF4J: Found binding in
[vfszip:/D:/Drools/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:30,932 ERROR [STDERR] (main) SLF4J: Found binding in
[vfszip:/D:/Drools/jboss-5.1.0.GA/server/default/deploy/guvnor-5.3.0.Final-jboss-as-5.1.war/WEB-INF/lib/slf4j-log4j12-1.6.0.jar/org/slf4j/impl/StaticLoggerBinder.class]
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:30,932 ERROR [STDERR] (main) SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:34,606 INFO  [STDOUT] (main) INFO  13-01 14:43:34,601
(RulesRepositoryConfigurator.java:getInstance:46)        Creating an instance of
the RulesRepositoryConfigurator.
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:45,842 INFO  [STDOUT] (main) INFO  13-01 14:43:45,841
(LoggingHelper.java:info:49)     Starting mailbox service
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:45,843 INFO  [STDOUT] (main) INFO  13-01 14:43:45,843
(LoggingHelper.java:info:49)     mailbox service is up
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:45,845 INFO  [STDOUT] (main) Registering check-in listener
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:45,849 INFO  [STDOUT] (main) Check-in listener up
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:45,897 INFO
[org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy,
ctxPath=/jmx-console
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:46,096 INFO  [org.apache.coyote.http11.Http11Protocol]
(main) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:46,131 INFO  [org.apache.coyote.ajp.AjpProtocol] (main)
Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:43:46,144 INFO
[org.jboss.bootstrap.microcontainer.ServerImpl] (main) JBoss
(Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
Started in 1m:17s:922ms
<a href="tel:2012-01-13%2014" value="+12012011314">2012-01-13 14:44:22,886 INFO  [STDOUT] (http-127.0.0.1-8080-1) INFO  13-01
14:44:22,880 (NilAuthenticator.java:authenticate:35)     All users are guests.

Thank you Esteban
Cheers

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3656153.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
Seems like if you were using different versions of Drools in Guvnor and in the client application. Is that correct?

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Fri, Jan 13, 2012 at 11:30 AM, srinivasasanda <[hidden email]> wrote:
Before rule engine start
after creating kagent
$After Apply change set
After starting Notification service
After rule engine start
no of packages0
no of packages0
no of packages0
no of packages0.....

This is my client side Java Application log

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3656303.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
Each package in Guvnor has its own REST URL (I think it is the same URL used in the changeset :P). You can try to manually add each package to your kbuilder using a URLResource pointing to each package's URL.

Best Regards, 

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Sat, Jan 14, 2012 at 6:36 PM, srinivasasanda <[hidden email]> wrote:
Hi Esteban,

Can you please suggest me how to implement this changeset using REST API.

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3659361.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
You will need to check why are you getting the exception in the knowledge agent: "java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage"
The error seems to happen when MVELDialectRuntimeData is deserialized. The strange thing is that error could only happen if you are using PKG in your changesets. According to your code, you are using DRL, right?

Best Regards,


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Mon, Jan 16, 2012 at 1:42 PM, srinivasasanda <[hidden email]> wrote:
Hi Esteban,

I tried all ways to implement changeset using REST API with the same
code,but my packages that I'm retrieving are zero.Could you help me out in
implelementing changeset using REST API

Thanks

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3663064.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
So, can you post the knowledge agent logs again? It would e good if you could also post the current version of change-set.xml file you are using. 

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Mon, Jan 16, 2012 at 2:30 PM, srinivasasanda <[hidden email]> wrote:
Yes,Its for DRL.For first time I added different version of Jars to it.So i
got serialzable exception,But after that I relaised and added correct
version 5.3 jars,bt nw Im not getting that exception,But packages that are
retrieved are zero.

--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3663182.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

srinivasasanda
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Esteban
So, no Knowledge Agent logs? That's weird. I would suggest you to download Drools' binaries and debug inside KnowldgeAgentImpl.java to see what is going on. Did you try without using a KnowledgeAgent? You can also add a change-set to a KnowledgeBuilder and construct a KnowledgeBase using the compiled packages of the kbuilder.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Mon, Jan 16, 2012 at 3:11 PM, srinivasasanda <[hidden email]> wrote:
efore rule engine start
after creating kagent
$After Apply change set
After starting Notification service
After rule engine start
no of packages0
no of packages0
no of packages0
no of packages0.....

ChangeSet is
  </add>
</change-set>
Till now,I'm unable to find why changeset is working fine for local DRL
files,but when it comes to guvnor DRL's with rest api embedded,its
generating no output.



--
View this message in context: http://drools.46999.n3.nabble.com/unable-to-update-the-changes-guvnor-rules-to-application-using-changeset-tp3652824p3663306.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [rules-users] unable to update the changes (guvnor rules) to application using changeset

Voradov
Hi, Esteban, Hi srinivasasanda.

My opinion regarding the issue posted by srinivasasanda is the following:

Having the changeset filled with DRL's taken from local jBoss application and using it in a java local running knowledge agent which has not added into the classpath the fact models will fail, of course with that "java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage".

On the other hand, when having changeset.xml set as:
<add>
        <resource source='file:D:\rulemaster.drl' type='DRL' />
   </add>

is working because it seems that the fact models used in defining those packages are in the classpath.

REST protocol is used correctly in the changeset.xml.

The problem with remotely loading pkg\drl files using REST is that you should somehow specify a custom classloader, like this:

KnowledgeBaseConfiguration kbaseConfig = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null, customClassLoader);
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig); //kbase with custom classloader
KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.useKBaseClassLoaderForCompiling", "true");
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("test agent", kbase, aconf);
 kagent.applyChangeSet(ResourceFactory.newFileResource(changeSetFile));


My question is: is there any possibility to create the classloader identical to the remote classloader used by guvnor? if yes, could you please show us exactly how to load remotelly from guvnor?

Here, at http://ilesteban.wordpress.com/2010/06/22/knowledge-agent-custom-class-loaders/ there is described how to create a custom classloader, but it is not specified how to create it based on the Guvnor's jar files already existing there.
12
Loading...