[rules-users] Automatic updating of Guvnor Rules appears to be not working.

2010-06-24 Thread Stephen Mcgruer
Hi there. I'm trying to get automatic update of rules working in my  
project, and seem to
have run into a problem. As far as I can tell, automatic polling and  
updating is turned
on, and claims to update the knowledgebase, but changes to the rules  
don't seem to have
any effect. A simple example - if I add the rule:

rule TestRule
 dialect mvel
 when
 then
 System.out.println(Hello, world!);
end

And start my application, I get:

Firing all rules...
Hello, world!
All rules fired.

As expected. If I then change the rule as follows:

rule TestRule
 dialect mvel
 when
 then
 System.out.println(I have changed!);
end

I get this output (timestamps trimmed for readability):

ResourceChangeScanner attempt to scan 1 resources
ResourceChangeScanner modified resource=[UrlResource
path='http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1']
  
:
1277371031000 : 1277371254000
ResourceChangeNotification received ChangeSet notification
ResourceChangeScanner thread is waiting for 60
ResourceChangeNotification processing ChangeSet
ResourceChangeNotification ChangeSet modified resource=[UrlResource
path='http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1']
for listener=org.drools.agent.impl.knowledgeagenti...@e2d0b2
KnowledgeAgent received ChangeSet changed notification
ResourceChangeNotification thread is waiting for queue update
KnowledgAgent applying ChangeSet
KnowledgeAgent ChangeSet requires KnowledgeBuilderKnowledgeAgent  
rebuilding KnowledgeBase
using ChangeSet
KnowledgeAgent building resource=[UrlResource
path='http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1']
KnowledgeAgent adding KnowledgeDefinitionsPackage ERMIE
KnowledgeAgent new KnowledgeBase now built and in use

So, this makes it seem like everything has worked. However, if I  
insert a new fact and
fire all rules...

Inserting new fact...
Hello, World!

So, it hasn't worked. What might I have done wrong?


-Stephen

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] JBOSS DROOLS Guvnor and SSO authentication

2010-06-24 Thread Jervisliu
Guvnor is using Seam internally to handle session/authentication etc. To 
do your own authentication, you need to implement your own 
authenticator. Take a look at 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-guvnor/src/main/java/org/drools/guvnor/server/security/DefaultAuthenticator.java
 
for example.


Peddada, Shanthakumar wrote:
 Hi,

 am not using jaas-config-name for guvnor, i am directly reading the user 
 credentials from from the session object , but am getting null values.
 I am sending the user credentials in session from other application, when i 
 click on the givnor link present on the application1 , i should be able to 
 auto aunthenticate using the autthenticator.

 //Authenticator code for reading the user credentials from session object :
 //
 HttpServletRequest request =ServletContexts.getInstance().getRequest();
 String username = (String)request.getSession().getAttribute(User);
  String password = 
 (String)request.getSession().getAttribute(password);

 error trace :

 23:53:27,671 INFO  [STDOUT] class 
 org.drools.guvnor.server.security.Authenticator password nullsession 
 attribute null
 23:53:27,687 INFO  [STDOUT] ERROR 21-06 23:53:27,687 
 (SeamLoginModule.java:login:113)Error invoking login method
 javax.el.ELException: java.lang.NullPointerException
 at 
 org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333)
 at 
 org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
 at 
 org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
 at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
 at 
 org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
 at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
 at 
 org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:109)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
 at 
 javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
 at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
 javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
 at org.jboss.seam.security.Identity.authenticate(Identity.java:335)
 at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
 at 
 org.drools.guvnor.server.security.SecurityServiceImpl.checkAutoLogin(SecurityServiceImpl.java:107)
 at 
 org.drools.guvnor.server.security.SecurityServiceImpl.getCurrentUser(SecurityServiceImpl.java:87)
 at 
 org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:50)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
 at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
 at 
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
 at 
 org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
 at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at 
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

Re: [rules-users] Automatic updating of Guvnor Rules appears to be not working.

2010-06-24 Thread Esteban Aliverti
Which version of drools are you using?

On Thu, Jun 24, 2010 at 5:33 AM, Stephen Mcgruer s0840...@sms.ed.ac.ukwrote:

 Hi there. I'm trying to get automatic update of rules working in my
 project, and seem to
 have run into a problem. As far as I can tell, automatic polling and
 updating is turned
 on, and claims to update the knowledgebase, but changes to the rules
 don't seem to have
 any effect. A simple example - if I add the rule:

 rule TestRule
 dialect mvel
 when
 then
 System.out.println(Hello, world!);
 end

 And start my application, I get:

 Firing all rules...
 Hello, world!
 All rules fired.

 As expected. If I then change the rule as follows:

 rule TestRule
 dialect mvel
 when
 then
 System.out.println(I have changed!);
 end

 I get this output (timestamps trimmed for readability):

 ResourceChangeScanner attempt to scan 1 resources
 ResourceChangeScanner modified resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 :
 1277371031000 : 1277371254000
 ResourceChangeNotification received ChangeSet notification
 ResourceChangeScanner thread is waiting for 60
 ResourceChangeNotification processing ChangeSet
 ResourceChangeNotification ChangeSet modified resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 for listener=org.drools.agent.impl.knowledgeagenti...@e2d0b2
 KnowledgeAgent received ChangeSet changed notification
 ResourceChangeNotification thread is waiting for queue update
 KnowledgAgent applying ChangeSet
 KnowledgeAgent ChangeSet requires KnowledgeBuilderKnowledgeAgent
 rebuilding KnowledgeBase
 using ChangeSet
 KnowledgeAgent building resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 KnowledgeAgent adding KnowledgeDefinitionsPackage ERMIE
 KnowledgeAgent new KnowledgeBase now built and in use

 So, this makes it seem like everything has worked. However, if I
 insert a new fact and
 fire all rules...

 Inserting new fact...
 Hello, World!

 So, it hasn't worked. What might I have done wrong?


 -Stephen

 --
 The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 


Esteban Aliverti
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] matches doesn't catch rule.

2010-06-24 Thread hensor

I'm trying to create a rule where I want to match if a variable matches one
or more words.

This is my rule:
m:myObject(variable matches WORD 1|WORD 2)

but it doesn't catch any instance where variable is either WORD 1 or WORD 2.
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/matches-doesn-t-catch-rule-tp919334p919334.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


Re: [rules-users] matches doesn't catch rule.

2010-06-24 Thread Jared Davis

try

m:myObject(variable matches (WORD 1|WORD 2)) 
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/matches-doesn-t-catch-rule-tp919334p919402.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


Re: [rules-users] Automatic updating of Guvnor Rules appears to be not working.

2010-06-24 Thread Stephen Mcgruer
Sorry, I'm using Drools 5.0.1

Cheers,
Stephen

Quoting Esteban Aliverti esteban.alive...@gmail.com:

 Which version of drools are you using?

 On Thu, Jun 24, 2010 at 5:33 AM, Stephen Mcgruer   
 s0840...@sms.ed.ac.ukwrote:

 Hi there. I'm trying to get automatic update of rules working in my
 project, and seem to
 have run into a problem. As far as I can tell, automatic polling and
 updating is turned
 on, and claims to update the knowledgebase, but changes to the rules
 don't seem to have
 any effect. A simple example - if I add the rule:

 rule TestRule
 dialect mvel
 when
 then
 System.out.println(Hello, world!);
 end

 And start my application, I get:

 Firing all rules...
 Hello, world!
 All rules fired.

 As expected. If I then change the rule as follows:

 rule TestRule
 dialect mvel
 when
 then
 System.out.println(I have changed!);
 end

 I get this output (timestamps trimmed for readability):

 ResourceChangeScanner attempt to scan 1 resources
 ResourceChangeScanner modified resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 :
 1277371031000 : 1277371254000
 ResourceChangeNotification received ChangeSet notification
 ResourceChangeScanner thread is waiting for 60
 ResourceChangeNotification processing ChangeSet
 ResourceChangeNotification ChangeSet modified resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 for listener=org.drools.agent.impl.knowledgeagenti...@e2d0b2
 KnowledgeAgent received ChangeSet changed notification
 ResourceChangeNotification thread is waiting for queue update
 KnowledgAgent applying ChangeSet
 KnowledgeAgent ChangeSet requires KnowledgeBuilderKnowledgeAgent
 rebuilding KnowledgeBase
 using ChangeSet
 KnowledgeAgent building resource=[UrlResource
 path='
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
 ']
 KnowledgeAgent adding KnowledgeDefinitionsPackage ERMIE
 KnowledgeAgent new KnowledgeBase now built and in use

 So, this makes it seem like everything has worked. However, if I
 insert a new fact and
 fire all rules...

 Inserting new fact...
 Hello, World!

 So, it hasn't worked. What might I have done wrong?


 -Stephen

 --
 The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




 --
 

 Esteban Aliverti




-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Automatic updating of Guvnor Rules appears to be not working.

2010-06-24 Thread Esteban Aliverti
Could you please try your example using latest SNAPSHOT or 5.1M2?

Thanks

On Thu, Jun 24, 2010 at 10:20 AM, Stephen Mcgruer s0840...@sms.ed.ac.ukwrote:

 Sorry, I'm using Drools 5.0.1

 Cheers,
 Stephen

 Quoting Esteban Aliverti esteban.alive...@gmail.com:

  Which version of drools are you using?
 
  On Thu, Jun 24, 2010 at 5:33 AM, Stephen Mcgruer
  s0840...@sms.ed.ac.ukwrote:
 
  Hi there. I'm trying to get automatic update of rules working in my
  project, and seem to
  have run into a problem. As far as I can tell, automatic polling and
  updating is turned
  on, and claims to update the knowledgebase, but changes to the rules
  don't seem to have
  any effect. A simple example - if I add the rule:
 
  rule TestRule
  dialect mvel
  when
  then
  System.out.println(Hello, world!);
  end
 
  And start my application, I get:
 
  Firing all rules...
  Hello, world!
  All rules fired.
 
  As expected. If I then change the rule as follows:
 
  rule TestRule
  dialect mvel
  when
  then
  System.out.println(I have changed!);
  end
 
  I get this output (timestamps trimmed for readability):
 
  ResourceChangeScanner attempt to scan 1 resources
  ResourceChangeScanner modified resource=[UrlResource
  path='
 
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
  ']
  :
  1277371031000 : 1277371254000
  ResourceChangeNotification received ChangeSet notification
  ResourceChangeScanner thread is waiting for 60
  ResourceChangeNotification processing ChangeSet
  ResourceChangeNotification ChangeSet modified resource=[UrlResource
  path='
 
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
  ']
  for listener=org.drools.agent.impl.knowledgeagenti...@e2d0b2
  KnowledgeAgent received ChangeSet changed notification
  ResourceChangeNotification thread is waiting for queue update
  KnowledgAgent applying ChangeSet
  KnowledgeAgent ChangeSet requires KnowledgeBuilderKnowledgeAgent
  rebuilding KnowledgeBase
  using ChangeSet
  KnowledgeAgent building resource=[UrlResource
  path='
 
 http://localhost:1337/drools-guvnor/org.drools.guvnor.Guvnor/package/ERMIE/v0.1
  ']
  KnowledgeAgent adding KnowledgeDefinitionsPackage ERMIE
  KnowledgeAgent new KnowledgeBase now built and in use
 
  So, this makes it seem like everything has worked. However, if I
  insert a new fact and
  fire all rules...
 
  Inserting new fact...
  Hello, World!
 
  So, it hasn't worked. What might I have done wrong?
 
 
  -Stephen
 
  --
  The University of Edinburgh is a charitable body, registered in
  Scotland, with registration number SC005336.
 
 
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 
  --
  
 
  Esteban Aliverti
 



 --
 The University of Edinburgh is a charitable body, registered in
 Scotland, with registration number SC005336.



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 


Esteban Aliverti
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] OutOfMemoryError: GC overhead limit exceeded - RESEND

2010-06-24 Thread Jeffrey Schneller
This is a RESEND because of mail server issues.  Not sure if the
original message went out.

 

I saw a similar thread about this back in March but I am now seeing a
similar exception being thrown.  I am running 5.0.1.  The error is
thrown in my app after the change set listener determines there was a
change with the rules package in the Guvnor.   I have included the stack
trace from the most recent time the exception was thrown.  Hopefully
someone can provide some additional information or a workaround.  Has
this problem been fixed in 5.1?  If so, has 5.1 moved out of M2 state
and into a CR state and when will it go into a full released state?

 

Exception in thread Thread-44 java.lang.OutOfMemoryError: GC overhead
limit exceeded

   at org.drools.rule.GroupElement.init(GroupElement.java:44)

   at org.drools.rule.GroupElement.init(GroupElement.java:47)

   at sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown
Source)

   at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)

   at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)

   at java.lang.Class.newInstance0(Class.java:355)

   at java.lang.Class.newInstance(Class.java:308)

   at org.drools.rule.GroupElement.clone(GroupElement.java:267)

   at org.drools.rule.GroupElement.clone(GroupElement.java:279)

   at org.drools.rule.Rule.getExtendedLhs(Rule.java:518)

   at org.drools.rule.Rule.getTransformedLhs(Rule.java:545)

   at
org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.ja
va:98)

   at
org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)

   at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:362)

   at
org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:618)

   at
org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:500
)

   at
org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:388)

   at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgent
Impl.java:416)

   at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentIm
pl.java:120)

   at
org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetNotificationDetector.r
un(KnowledgeAgentImpl.java:538)

   at java.lang.Thread.run(Thread.java:619)

 

 

Thanks.

 

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Can I create WS to access Guvnor?

2010-06-24 Thread bbarani

Hi,

I am trying to create a WS which will invoke the rules present in Guvnor and
sends back a response.
We have multiple applications which needs to execute the Rules present in
Guvnor and hence we thought of creating a WS which can be accessed by all
the applications.

We tried to use AXIS to create a WS but we are getting the below error when
we tried to run the java program (which we have created to fire rules
present in Guvnor) as webservice.

exception: java.lang.reflect.InvocationTargetException

The program runs fine as stand alone program. Any thoughts on this error /
suggestions would be of great help!!!

Thanks,
BB
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Can-I-create-WS-to-access-Guvnor-tp919955p919955.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


Re: [rules-users] OutOfMemoryError: GC overhead limit exceeded

2010-06-24 Thread Geoffrey De Smet
An OutOfMemoryError: GC overhead limit exceeded issue was fixed for 
5.1, see 
http://blog.athico.com/2010/03/drools-halves-memory-use-with-new-true.html

With kind regards,
Geoffrey De Smet


Jeffrey Schneller schreef:
 I saw a similar thread about this back in March but I am now seeing a 
 similar exception being thrown.  I am running 5.0.1.  The error is 
 thrown in my app after the change set listener determines there was a 
 change with the rules package in the Guvnor.   I have included the stack 
 trace from the most recent time the exception was thrown.  Hopefully 
 someone can provide some additional information or a workaround.  Has 
 this problem been fixed in 5.1?  If so, has 5.1 moved out of M2 state 
 and into a CR state and when will it go into a full released state?
 
  
 
 Exception in thread Thread-44 java.lang.OutOfMemoryError: GC overhead 
 limit exceeded
 
at org.drools.rule.GroupElement.init(GroupElement.java:44)
 
at org.drools.rule.GroupElement.init(GroupElement.java:47)
 
at sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown 
 Source)
 
at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 
at java.lang.Class.newInstance0(Class.java:355)
 
at java.lang.Class.newInstance(Class.java:308)
 
at org.drools.rule.GroupElement.clone(GroupElement.java:267)
 
at org.drools.rule.GroupElement.clone(GroupElement.java:279)
 
at org.drools.rule.Rule.getExtendedLhs(Rule.java:518)
 
at org.drools.rule.Rule.getTransformedLhs(Rule.java:545)
 
at 
 org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:98)
 
at org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
 
at org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:362)
 
at 
 org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:618)
 
at 
 org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:500)
 
at 
 org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:388)
 
at 
 org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:416)
 
at 
 org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:120)
 
at 
 org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetNotificationDetector.run(KnowledgeAgentImpl.java:538)
 
at java.lang.Thread.run(Thread.java:619)
 
  
 
  
 
 Thanks.
 
 
 
 
 ___
 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] Guvnor not seeing model in rule editor

2010-06-24 Thread Mike Reynolds
I have a new package in a category .  I create two models and uploaded them
to guvnor.  I go to create a rule and the model objects aren't showing up.

What am I doing wrong?

thanks
attachment: rulemodel.jpgattachment: ruleerror.jpg___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

I have a new package in a category .  I create two models and uploaded them
to guvnor.  I go to create a rule and the model objects aren't showing up.

What am I doing wrong?

thanks

http://drools-java-rules-engine.46999.n3.nabble.com/file/n920136/rulemodel.jpg 

http://drools-java-rules-engine.46999.n3.nabble.com/file/n920136/ruleerror.jpg 

-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920136.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


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread Esteban Aliverti
Silly Question: Did you Saved and Validated your configuration in
package's editor window?

Best,

2010/6/24 mikexr m...@bigfatnuthin.com

 I have a new package in a category . I create two models and uploaded them
 to guvnor. I go to create a rule and the model objects aren't showing up.
 What am I doing wrong? thanks
 ---
 Thanks

 Mike

 --
 View this message in context: Guvnor not seeing model in rule 
 editorhttp://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920136.html

 Sent from the Drools - User mailing list 
 archivehttp://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.htmlat
  Nabble.com.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 


Esteban Aliverti
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

correct, i did

-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920289.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


Re: [rules-users] Can I create WS to access Guvnor?

2010-06-24 Thread David Sinclair
You may want to have a look at the Execution Server

http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html
1.4.7.2. Drools execution server

On Thu, Jun 24, 2010 at 12:36 PM, bbarani bbar...@gmail.com wrote:


 Hi,

 I am trying to create a WS which will invoke the rules present in Guvnor
 and
 sends back a response.
 We have multiple applications which needs to execute the Rules present in
 Guvnor and hence we thought of creating a WS which can be accessed by all
 the applications.

 We tried to use AXIS to create a WS but we are getting the below error when
 we tried to run the java program (which we have created to fire rules
 present in Guvnor) as webservice.

 exception: java.lang.reflect.InvocationTargetException

 The program runs fine as stand alone program. Any thoughts on this error /
 suggestions would be of great help!!!

 Thanks,
 BB
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Can-I-create-WS-to-access-Guvnor-tp919955p919955.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

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread David Sinclair
Did you add the imports for the package?

On Thu, Jun 24, 2010 at 2:56 PM, mikexr m...@bigfatnuthin.com wrote:


 correct, i did

 -
 ---
 Thanks

 Mike
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920289.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

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

http://drools-java-rules-engine.46999.n3.nabble.com/file/n920472/ruleserror02.jpg
 

do you mean here at the package?  If so, yes

-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920472.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


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread Esteban Aliverti
If you take a look at the last screenshot there is a message: There were
errors validating this package configuration.  Try using the View errors
button.

Best,

On Thu, Jun 24, 2010 at 4:56 PM, mikexr m...@bigfatnuthin.com wrote:



 http://drools-java-rules-engine.46999.n3.nabble.com/file/n920472/ruleserror02.jpg

 do you mean here at the package?  If so, yes

 -
 ---
 Thanks

 Mike
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920472.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




-- 


Esteban Aliverti
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

All there error says is -

[ERR 102] Line 3:49 mismatched input '-'

-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920492.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


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread David Sinclair
need to get rid of those pesky package-info(s) in your import section :)

On Thu, Jun 24, 2010 at 4:05 PM, mikexr m...@bigfatnuthin.com wrote:


 All there error says is -

 [ERR 102] Line 3:49 mismatched input '-'

 -
 ---
 Thanks

 Mike
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920492.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

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

I fixed the error, there was a duplicate import ( I'm assuming since its
working now ) in the import section.

-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920515.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


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread Esteban Aliverti
David is right. What are those package-info entries? The - is not a valid
character for classes names.

On Thu, Jun 24, 2010 at 5:13 PM, mikexr m...@bigfatnuthin.com wrote:


 I fixed the error, there was a duplicate import ( I'm assuming since its
 working now ) in the import section.

 -
 ---
 Thanks

 Mike
 --
 View this message in context:
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920515.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




-- 


Esteban Aliverti
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor not seeing model in rule editor

2010-06-24 Thread mikexr

 I got rid of them
On Thursday, June 24, 2010, David Sinclair-2 [via Drools - Java Rules
Engine] ml-node+920518-1708878397-238...@n3.nabble.com wrote:


 need to get rid of those pesky package-info(s) in your import section :)

 On Thu, Jun 24, 2010 at 4:05 PM, mikexr [hidden 
 email] http://user/SendEmail.jtp?type=nodenode=920518i=0 wrote:

 All there error says is -

 [ERR 102] Line 3:49 mismatched input '-'

 -
 ---
 Thanks

 Mike
 --
 View this message in context: 
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920492.html
 Sent from the Drools - User mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=920518i=1
 https://lists.jboss.org/mailman/listinfo/rules-users


 ___

 rules-users mailing list

 [hidden email] http://user/SendEmail.jtp?type=nodenode=920518i=2

 https://lists.jboss.org/mailman/listinfo/rules-users




 View message @ 
 http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920518.html


 To unsubscribe from Re: Guvnor not seeing model in rule editor, click 
 here http://drools-java-rules-engine.46999.n3.nabble.com/subscriptions/Unsubscribe.jtp?code=bWlrZUBiaWdmYXRudXRoaW4uY29tfDkyMDQ5MnwyMDQzOTAwMDY2.





-
---
Thanks

Mike
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-not-seeing-model-in-rule-editor-tp920136p920570.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


Re: [rules-users] OutOfMemoryError: GC overhead limit exceeded

2010-06-24 Thread Jeffrey Schneller
Geoffrey,

Thank you for your response and the link to the blog post.  We are
definitely on the large side for rules.  Luckily though not 8GB worth
[at least not yet].  Is 5.1 stable enough to run in a production
environment?

Thanks.



-Original Message-
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Geoffrey De
Smet
Sent: Thursday, June 24, 2010 12:39 PM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] OutOfMemoryError: GC overhead limit exceeded

An OutOfMemoryError: GC overhead limit exceeded issue was fixed for 
5.1, see 
http://blog.athico.com/2010/03/drools-halves-memory-use-with-new-true.ht
ml

With kind regards,
Geoffrey De Smet


Jeffrey Schneller schreef:
 I saw a similar thread about this back in March but I am now seeing a 
 similar exception being thrown.  I am running 5.0.1.  The error is 
 thrown in my app after the change set listener determines there was a 
 change with the rules package in the Guvnor.   I have included the
stack 
 trace from the most recent time the exception was thrown.  Hopefully 
 someone can provide some additional information or a workaround.  Has 
 this problem been fixed in 5.1?  If so, has 5.1 moved out of M2 state 
 and into a CR state and when will it go into a full released state?
 
  
 
 Exception in thread Thread-44 java.lang.OutOfMemoryError: GC
overhead 
 limit exceeded
 
at org.drools.rule.GroupElement.init(GroupElement.java:44)
 
at org.drools.rule.GroupElement.init(GroupElement.java:47)
 
at
sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown 
 Source)
 
at 

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
 
at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 
at java.lang.Class.newInstance0(Class.java:355)
 
at java.lang.Class.newInstance(Class.java:308)
 
at org.drools.rule.GroupElement.clone(GroupElement.java:267)
 
at org.drools.rule.GroupElement.clone(GroupElement.java:279)
 
at org.drools.rule.Rule.getExtendedLhs(Rule.java:518)
 
at org.drools.rule.Rule.getTransformedLhs(Rule.java:545)
 
at 

org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.ja
va:98)
 
at
org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
 
at
org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:362)
 
at 
 org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:618)
 
at 

org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:500
)
 
at 
 org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:388)
 
at 

org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgent
Impl.java:416)
 
at 

org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentIm
pl.java:120)
 
at 

org.drools.agent.impl.KnowledgeAgentImpl$ChangeSetNotificationDetector.r
un(KnowledgeAgentImpl.java:538)
 
at java.lang.Thread.run(Thread.java:619)
 
  
 
  
 
 Thanks.
 
 


 
 ___
 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] Connection with Active Directory multiple organizational units

2010-06-24 Thread G3

Hi

I tried as you suggested by deploying Guvnor 5.1.0.M2 in Jboss5.1 G.A .When
I tried connection with single organization unit connection in Active
Directory but i get this message
The requested resource (/drools-guvnor/) is not available.
my console shows:

467 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
467 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/D:/Drools-jboss/jboss-5.1.0.GA/server/default/deploy/drools-guvnor.war/WEB-INF/lib/slf4j-log4j12-1.5.10.jar/org/slf4j/impl/StaticLoggerBinder.class]
467 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/D:/Drools-jboss/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
467 ERROR [STDERR] SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
949 INFO  [STDOUT] INFO  25-06 10:59:03,933 (MailboxService.java:init:45)  
Starting mailbox service
949 INFO  [STDOUT] INFO  25-06 10:59:03,949 (MailboxService.java:wakeUp:52)
Waking up
997 INFO  [STDOUT] INFO  25-06 10:59:03,997
(MailboxService.java:processOutgoing:62)Processing outgoing messages
093 INFO  [STDOUT] DEBUG 25-06 10:59:04,093
(MailboxService.java:processOutgoing:66)Outgoing messages size 0
125 INFO  [STDOUT] DEBUG 25-06 10:59:04,125 (MailboxService.java:process:72)   
Processing any inbound messages for mailman
141 INFO  [STDOUT] DEBUG 25-06 10:59:04,125 (MailboxService.java:process:72)   
Processing any inbound messages for user1
258 INFO  [TomcatDeployment] undeploy, ctxPath=/drools-guvnor
842 INFO  [TomcatDeployment] deploy, ctxPath=/drools-guvnor
710 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.

===
I removed the slf4j-api.jar from common/lib folder but still i get the same
requested resource is not found error page and not the login page.


Thanks in advance.


-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Connection-with-Active-Directory-multiple-organizational-units-tp907892p921311.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