Re: [rules-users] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-05 Thread mattmadhavan
Hi Rich,
I have created a custom operator like "in" , "contains"  etc (similar to
mvel).

My operator is called "inlist".  For instance I can check if a value is
present in a range of list values. 

Eg,

$record (PRIMARY_SITE *inlist *("C500-C521, C533, C534, C560-C575"))

Please note the value ranges!

I hope this explains.

Thanks
Matt'M




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472p4028539.html
Sent from the Drools: User forum 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] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-05 Thread rjr201
Hi,

I'm not sure what you mean by a custom operator? Could you give a code
example? Or explain the steps you have gone through using Guvnor?

Cheers,
Rich. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472p4028525.html
Sent from the Drools: User forum 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] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-04 Thread mattmadhavan
Hi there,
Sorry don't know your real name. 

Yes I generated the getters and setters and the fields are being found! Not
sure why but it works.

But now I am facing issues with my custom operator. Its not finding it! Any
ideas how I would go solving it?

Thanks
Matt



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472p4028489.html
Sent from the Drools: User forum 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] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-04 Thread rjr201
I don't know for certain but I think it is necessary to have getters and
setters on all attributes you want drools to be able to access.

What version of Guvnor are you using? 

In 5.3 you should be able to go to the "Edit" tab of the package and see
your classes under 'imported types'.

To see if your attributes are being picked up, you could create a rule using
the guided editor, add a condition (select one of your classes from the list
provided), and then if you click on the this new condition it should give
you a drop down box of the fields you can add as restrictions (If the list
is empty you know it's not picking up on your attributes).

Hope that's some sort of help. 

  



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472p4028481.html
Sent from the Drools: User forum 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] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-03 Thread mattmadhavan
Humm,
All my fields in the FACT/record are public fields with *No Getters and
Setters*. Not sure if this is an issue! Could some one answer this please?

Had a long day,, giving up and going home. will pick it up tomorrow.

Thanks
Matt'M





--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472p4028474.html
Sent from the Drools: User forum 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] Drools Guvnor : Rule validation fails - Not finding any of the fields from the Fact

2014-03-03 Thread mattmadhavan
Hello,
I have imported bunch of rules (.drl file) into the Guvnor. Then I imported
the Jar file containing the Facts and my Custom Operator and also the static
methods into the same "Guvnor
 package of the rules.

When I try to validate the rules, I am getting errors saying that it is not
able to fund the given field in the Fact. None of the rules validate. They
always complain that what ever filed that is referenced in the Fact by the
rule, it doesn't exist.

Any ideas please?

Also how do I veiew/verify that my jar file was loaded OK . ( Can I
check/verify the model classes to see if they were loaded Okay?) 

Also how do I delete unwanted/old model category or for that matter any
assets?

Thanks in advance

Matt'M



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Rule-validation-fails-Not-finding-any-of-the-fields-from-the-Fact-tp4028472.html
Sent from the Drools: User forum 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] Drools-Guvnor

2014-02-24 Thread sravan k

Date: Mon, 24 Feb 2014 13:58:14 +0530




Hello everyone ,
Hope you are doing good , I am having following queries please give me a 
solution for the same 
>Which version of Drools is stabled ?>For every rule configuration we are 
>restarting tomcat ,because rules are not getting effected that is the reason 
>we are restarting it .If we use 5.5 will this problem can be resolved ?>how to 
>implement Dynamic update of knowledge base ?



---Regards,Sravan.

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

Re: [rules-users] Drools guvnor 5.2 model is not available

2013-09-06 Thread Stephen Masters
Probably worth showing us the code for "testdrl".


On 6 Sep 2013, at 09:48, pritha.gh...@wipro.com wrote:

> Hi,
>  
> Whenever I am setting the dialect as java the following error comes
>  
> “[testdrl] Unable to generate rule invoker. CountryPriceModeltest cannot be 
> resolved to a type CountryPriceModeltest cannot be resolved to a type”
>  
> I am using guvnor 5.2 with jboss 6.1
>  
> Thanks,
> Pritha
> Please do not print this email unless it is absolutely necessary.
> 
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
> 
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
> 
> www.wipro.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

[rules-users] Drools guvnor 5.2 model is not available

2013-09-06 Thread pritha.ghosh
Hi,

Whenever I am setting the dialect as java the following error comes

"[testdrl] Unable to generate rule invoker. CountryPriceModeltest cannot be 
resolved to a type CountryPriceModeltest cannot be resolved to a type"

I am using guvnor 5.2 with jboss 6.1

Thanks,
Pritha

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

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

Re: [rules-users] Drools Guvnor Integration

2013-08-22 Thread maunakea
>From the trace, it might not be the case that you don't have the source.
Sorry, I dont want to misguide you. I dont know what this error means.
You can get the source from the same download that you got Drools Expert.
Good luck.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025651.html
Sent from the Drools: User forum 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] Drools Guvnor Integration

2013-08-22 Thread maunakea
>From the trace, it looks like you need to add the source jars. Maybe you are
trying to debug and when stepping into a method you are getting this? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Integration-tp4025641p4025649.html
Sent from the Drools: User forum 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] Drools Guvnor got hang

2013-07-02 Thread krishna prasad As
Any update on this.


On Mon, Jul 1, 2013 at 12:44 PM, krishna prasad As <
krishnaprasa...@gmail.com> wrote:

> Hi,
> I'm using Drools Guvnor 5.4.0.Final for my production application. It was
> running fine But today the guvnor got hung and when I tried to restart it,
> got the following error in tomcat's(6.0.24) localhost log,
>
> Jul 1, 2013 7:14:31 AM org.apache.catalina.session.StandardSession
> writeObject
> WARNING: Cannot serialize session attribute
> org.jboss.weld.context.http.HttpSessionContext#org.jboss.weld.bean-flat-ManagedBean-org.jboss.seam.security.IdentityImpl[@javax.enterprise.context.SessionScoped()@javax.inject.Named(value=identity)@org.jboss.solder.config.xml.core.XmlConfiguredBean()@org.jboss.solder.config.xml.core.XmlId(value=1)]{org.jboss.seam.security.IdentityImpl.authenticators[@javax.enterprise.inject.Any()@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.beanManager[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.credentials[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.permissionMapper[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.requestSecurityState[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.session[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.deferredAuthenticationObserver(org.jboss.seam.security.events.DeferredAuthenticationEvent[@javax.enterprise.event.Observes(during=IN_PROGRESS,notifyObserver=ALWAYS)]);}
> for session 82B9B573DFBB2E9E7470649A1A5441E3
> java.io.NotSerializableException: org.drools.repository.RulesRepository
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at java.util.ArrayList.writeObject(ArrayList.java:570)
> 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
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at
> java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
> at
> java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1602)
> 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
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at
> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1546)
> at
> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:989)
> at
> org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
> at
> org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
> at
> org.ap

[rules-users] Drools Guvnor got hang

2013-07-01 Thread krishna prasad As
Hi,
I'm using Drools Guvnor 5.4.0.Final for my production application. It was
running fine But today the guvnor got hung and when I tried to restart it,
got the following error in tomcat's(6.0.24) localhost log,

Jul 1, 2013 7:14:31 AM org.apache.catalina.session.StandardSession
writeObject
WARNING: Cannot serialize session attribute
org.jboss.weld.context.http.HttpSessionContext#org.jboss.weld.bean-flat-ManagedBean-org.jboss.seam.security.IdentityImpl[@javax.enterprise.context.SessionScoped()@javax.inject.Named(value=identity)@org.jboss.solder.config.xml.core.XmlConfiguredBean()@org.jboss.solder.config.xml.core.XmlId(value=1)]{org.jboss.seam.security.IdentityImpl.authenticators[@javax.enterprise.inject.Any()@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.beanManager[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.credentials[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.permissionMapper[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.requestSecurityState[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.session[@javax.inject.Inject()];org.jboss.seam.security.IdentityImpl.deferredAuthenticationObserver(org.jboss.seam.security.events.DeferredAuthenticationEvent[@javax.enterprise.event.Observes(during=IN_PROGRESS,notifyObserver=ALWAYS)]);}
for session 82B9B573DFBB2E9E7470649A1A5441E3
java.io.NotSerializableException: org.drools.repository.RulesRepository
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
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
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at
java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1602)
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
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1546)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:989)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4611)
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at
org.apache.catalina.startup.Hos

Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2013-05-29 Thread 706826
U will need a gwt plugin for IE. Form builder is built on GWT (Google Web
Toolkit) which doenot comes into IE by default. Just look for a GWT plugin
for IE and it should open for u.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4024026.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2013-05-29 Thread Zahid Ahmed
Hi,

It would be better if u share drools-guvnor/WEB-INF/beans.xml

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of drdaveg
Sent: 30 May 2013 00:05
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Drools-Guvnor integration with Webshere- Exception 
during startup...Please help!!!

When I try using 5.2 (NOT 5.2.1, which will be next) I get a logon dialog box 
for username/password that (per the docs) seems like it should accept anything 
- but no user/password combination seems to work out of box. 
Please note that I haven't tried to configure security for 5.2, expecting none. 
 Thoughts?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4024021.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2013-05-29 Thread drdaveg
When I try using 5.2 (NOT 5.2.1, which will be next) I get a logon dialog box
for username/password that (per the docs) seems like it should accept
anything - but no user/password combination seems to work out of box. 
Please note that I haven't tried to configure security for 5.2, expecting
none.  Thoughts?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4024021.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2013-05-26 Thread ashish6276
Hi 

   I deployed drools guvnor 5.2.1 on WAS. It is working fine on google
chrome and mozila. It is unable to load the guvnor page in IE. Is there any
solution for it.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4023978.html
Sent from the Drools: User forum 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] Drools Guvnor - Testing rules

2013-05-02 Thread Davide Sottara
Thanks for reporting, the ConditionalBranchDescr should be
managed by verifier. I'll create a JIRA for this and make sure
it's included in 5.6.



On 05/02/2013 11:51 AM, rswanson wrote:
> Using 5.5.0.Final, I just started trying to use the verifier and get a number
> of these exceptions:
>
> org.drools.verifier.visitor.UnknownDescriptionException: Descr ( class
> org.drools.lang.descr.ConditionalBranchDescr ) is unknown to drools
> verifier.
>   at
> org.drools.verifier.visitor.RuleDescrVisitor.visit(RuleDescrVisitor.java:109)
>   at
> org.drools.verifier.visitor.ConditionalElementDescrVisitor.visit(ConditionalElementDescrVisitor.java:46)
>   at
> org.drools.verifier.visitor.RuleDescrVisitor.visitAndDescr(RuleDescrVisitor.java:233)
>   at
> org.drools.verifier.visitor.RuleDescrVisitor.visitRuleDescr(RuleDescrVisitor.java:80)
>   at
> org.drools.verifier.visitor.PackageDescrVisitor.visitRuleDescr(PackageDescrVisitor.java:118)
>   at
> org.drools.verifier.visitor.PackageDescrVisitor.visitRules(PackageDescrVisitor.java:111)
>   at
> org.drools.verifier.visitor.PackageDescrVisitor.visitPackageDescr(PackageDescrVisitor.java:63)
>   at
> org.drools.verifier.builder.VerifierImpl.addPackageDescr(VerifierImpl.java:90)
>   at
> org.drools.verifier.builder.VerifierImpl.addResourcesToVerify(VerifierImpl.java:230)
>
> I'm guessing these are being caused by my use of the new 'Conditional named
> consequences' feature.  Any idea if this will be supported in the upcoming
> 5.6 release?
>
> Thanks,
> Roger
>
>
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-Testing-rules-tp4023594p4023638.html
> Sent from the Drools: User forum 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] Drools Guvnor - Testing rules

2013-05-02 Thread rswanson
Using 5.5.0.Final, I just started trying to use the verifier and get a number
of these exceptions:

org.drools.verifier.visitor.UnknownDescriptionException: Descr ( class
org.drools.lang.descr.ConditionalBranchDescr ) is unknown to drools
verifier.
at
org.drools.verifier.visitor.RuleDescrVisitor.visit(RuleDescrVisitor.java:109)
at
org.drools.verifier.visitor.ConditionalElementDescrVisitor.visit(ConditionalElementDescrVisitor.java:46)
at
org.drools.verifier.visitor.RuleDescrVisitor.visitAndDescr(RuleDescrVisitor.java:233)
at
org.drools.verifier.visitor.RuleDescrVisitor.visitRuleDescr(RuleDescrVisitor.java:80)
at
org.drools.verifier.visitor.PackageDescrVisitor.visitRuleDescr(PackageDescrVisitor.java:118)
at
org.drools.verifier.visitor.PackageDescrVisitor.visitRules(PackageDescrVisitor.java:111)
at
org.drools.verifier.visitor.PackageDescrVisitor.visitPackageDescr(PackageDescrVisitor.java:63)
at
org.drools.verifier.builder.VerifierImpl.addPackageDescr(VerifierImpl.java:90)
at
org.drools.verifier.builder.VerifierImpl.addResourcesToVerify(VerifierImpl.java:230)

I'm guessing these are being caused by my use of the new 'Conditional named
consequences' feature.  Any idea if this will be supported in the upcoming
5.6 release?

Thanks,
Roger



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Testing-rules-tp4023594p4023638.html
Sent from the Drools: User forum 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] Drools Guvnor - Testing rules

2013-05-02 Thread Toni Rikkola
Guvnor uses the Drools Verifier module for this. You can run the verifier in 
the QA Analysis section.

Here is a list of features the Verifier covers 
https://community.jboss.org/wiki/DroolsVerifier
It also has the features you listed. Verifier is not perfect, depends how you 
write your rules, but it is not 100% perfect when it looks for these issues.

The mortgage example that comes with Guvnor is currently the only one we have.

Toni Rikkola


On May 1, 2013, at 3:28 AM, Alan wrote:

> Hi guys,
> 
> I'm validating some features of Drools Guvnor and I would like to have some
> directions.
> We've got a project that has a lot of rules(its not on drools already, but
> we pretend to migrate it) and we would like to use Drools Guvnor to host
> those rules and run some analysis on it.
> 
> I've seen some features but it still not clear, so I will list my doubts and
> you can say, ok it does or no it doesn't do it.
> 
> *Do drools guvnor validate missing ends on rules? Ex: when age > 15 and sex
> == 'F' then Y();(note that it doesn't cover age <= 15)
> *Do it validate/find infinite loops?
> *Do it validate duplicate cases?(ex: when age > 15 then Y(); when age > 14
> then Y();)
> 
> Is there some resource (documentation) that covers what cases drools guvnor
> can handle on rules validation?
> Also, is there some more examples(projects) to deploy on Guvnor to test and
> have some fun?
> 
> Thanks a lot,
> 
> Alan Araya
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-Testing-rules-tp4023594.html
> Sent from the Drools: User forum 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

[rules-users] Drools Guvnor - Testing rules

2013-04-30 Thread Alan
Hi guys,

I'm validating some features of Drools Guvnor and I would like to have some
directions.
We've got a project that has a lot of rules(its not on drools already, but
we pretend to migrate it) and we would like to use Drools Guvnor to host
those rules and run some analysis on it.

I've seen some features but it still not clear, so I will list my doubts and
you can say, ok it does or no it doesn't do it.

*Do drools guvnor validate missing ends on rules? Ex: when age > 15 and sex
== 'F' then Y();(note that it doesn't cover age <= 15)
*Do it validate/find infinite loops?
*Do it validate duplicate cases?(ex: when age > 15 then Y(); when age > 14
then Y();)

Is there some resource (documentation) that covers what cases drools guvnor
can handle on rules validation?
Also, is there some more examples(projects) to deploy on Guvnor to test and
have some fun?

Thanks a lot,

Alan Araya



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Testing-rules-tp4023594.html
Sent from the Drools: User forum 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] Drools / Guvnor 6

2013-02-28 Thread Mark Proctor
I would hope before end of this year.

Mark
On 28 Feb 2013, at 22:39, kurrent93  wrote:

> When can expect Drools 6 to make it into Enterprise support?
> 
> I understand this is a long way off, but generally, is this 1 year,
> 18months, or longer?
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/rules-users-Drools-Guvnor-6-tp4022638p4022644.html
> Sent from the Drools: User forum 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] Drools / Guvnor 6

2013-02-28 Thread kurrent93
When can expect Drools 6 to make it into Enterprise support?

I understand this is a long way off, but generally, is this 1 year,
18months, or longer?



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Drools-Guvnor-6-tp4022638p4022644.html
Sent from the Drools: User forum 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] Drools / Guvnor 6

2013-02-28 Thread Mark Proctor
6.0 stuff is still raw, there are alphas, but they are not really got general 
use. We'll put out a beta shortly, I'd recommend you wait until then.

Also a lot has changed in 6.0, especially around deployment, so it won't be an 
easy switch.

Mark
On 28 Feb 2013, at 17:50, Stephen Masters  wrote:

> Hi folks,
> 
> Just wondering whether there's a download available yet for Guvnor v6, or 
> whether I need to build from source.
> 
> As mentioned previously I'm tinkering with it on WebSphere, and so far (using 
> WAS 8.5 Liberty Profile) I am experiencing zero issues. It just works! I'm 
> using the Tomcat distribution of Guvnor 5.3. So I'm downloading 5.5 as we 
> speak, and I might as well try out 6 while I'm at it. :)
> 
> Steve
> ___
> 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] Drools / Guvnor 6

2013-02-28 Thread Stephen Masters
Hi folks,

Just wondering whether there's a download available yet for Guvnor v6, or 
whether I need to build from source.

As mentioned previously I'm tinkering with it on WebSphere, and so far (using 
WAS 8.5 Liberty Profile) I am experiencing zero issues. It just works! I'm 
using the Tomcat distribution of Guvnor 5.3. So I'm downloading 5.5 as we 
speak, and I might as well try out 6 while I'm at it. :)

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


Re: [rules-users] Drools Guvnor User authentication

2013-02-23 Thread droolist
Take a look at...
org.drools.guvnor.server.security.DemoAuthenticator
Implement a class similar to that and configure that in your beans.xml.
Make the class available in the classpath, thats it.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-User-authentication-tp4022448p4022557.html
Sent from the Drools: User forum 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] Drools Guvnor User authentication

2013-02-20 Thread droolist
Verify that you have given that user permissions in the administration
module.
Here is my experience when I tried Guvnor 5.5 with JAAS...
After I got past that namespace issue, I ran into a Seam issue where user
was returning null. After searching, it seemed that was a bug in Seam
security that was included in Guvnor. So, I gave up on trying to use JAAS
and tried the authenticator. If you dont need the callback that JAAS
provides, you have the option of trying Authenticator. If you are using
tomcat, you have put your classes in the WEB-INF/classes folder. when I
tried to jar and put in the lib folder, it didnt pick up the class.
It is possible in your case that you just need to provide the user
permissions.
Hope this helps.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-User-authentication-tp4022448p4022489.html
Sent from the Drools: User forum 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] Drools Guvnor User authentication

2013-02-19 Thread droolist
Try adding namespace prefix to element jaasConfigName.
You can try security: or s:
I remember seeing some post that indicated that prefix was omitted in error.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-User-authentication-tp4022448p4022462.html
Sent from the Drools: User forum 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] Drools Guvnor Repository Reports

2013-01-25 Thread Jervis Liu

On 2013/1/25 22:51, Aseem Belsare wrote:
Yes I have. I tried to do something similar to get the version history 
from Guvnor, but then I get exceptions which seem to be related to 
REST API and not Guvnor. I have no idea why this is happening.


Code:
URL url = new URL(guvnorURI + "/" + packageName +"/"+"versions");
Please make sure the URL is correct. It should look like this: 
http://localhost:8080/guvnor-5.5.0.Final-jboss-as-7.0/rest/packages/restPackage1/versions


BTW, you can find a lot code examples from this test: 
https://github.com/droolsjbpm/guvnor/blob/5.5.x/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceIntegrationTest.java


Hope this helps,
Jervis


HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Accept", MediaType.APPLICATION_ATOM_XML);

String userPassword = "admin" + ":" + "admin";
String encoding = new 
sun.misc.BASE64Encoder().encode(userPassword.getBytes());

con.setRequestProperty("Authorization", "Basic " + encoding);

con.connect();

InputStream versionHistory = con.getInputStream();

Abdera ab = new Abdera();
Document doc = ab.getParser().parse(new 
InputStreamReader(versionHistory));

Feed feed = doc.getRoot();

List entries = feed.getEntries();

for(Entry entry : entries){
System.out.println(entry.getTitle());
System.out.println(entry.getUpdated());
System.out.println(entry.getAuthor());
}
.
.
//remaining code.

Exception: thrown at */Document doc = ab.getParser().parse(new 
InputStreamReader(versionHistory));/*
Exception in thread "main" org.apache.abdera.parser.ParseException: 
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

 at [row,col {unknown-source}]: [1,0]
at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:244)
at 
org.apache.abdera.parser.stax.FOMBuilder.getFomDocument(FOMBuilder.java:317)
at 
org.apache.abdera.parser.stax.FOMParser.getDocument(FOMParser.java:79)

at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:191)
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:143)
at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:86)
at 
com.envisagesystems.rules.impl.TestRuleImpl.printVersionHistory(TestRuleImpl.java:66)
at 
com.envisagesystems.rules.impl.TestRuleImpl.main(TestRuleImpl.java:47)

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at 
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
at 
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
at 
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)

at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at 
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at 
org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:149)

at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:174)
... 7 more

Any ideas?

Aseem
On Thu, Jan 24, 2013 at 1:28 PM, Michael Anstis 
mailto:michael.ans...@gmail.com>> wrote:


Have you tried reading Guvnor's documentation

?

There's a large section relating to REST calls.

On 24 January 2013 18:20, Aseem Belsare mailto:aseem.bels...@gmail.com>> wrote:

Hi,

I wish to obtain the version history from Guvnor repository.
Stumbled upon

http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.html
which seems to be related to the same topic, but the link in
there is not working which points to the documentation for
using REST API to get the assets/package version history info.

Is there a way of doing it? I started working on Guvnor just
recently and I've setup a simple rule and making changes to it
to be saved in the Guvnor repo. I wish to pull the version
history and generate a report using JAVA based off of it.

Any help would be appreciated.

Thanks,
Aseem

___
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/listinf

Re: [rules-users] Drools Guvnor Repository Reports

2013-01-25 Thread Aseem Belsare
Yes I have. I tried to do something similar to get the version history from
Guvnor, but then I get exceptions which seem to be related to REST API and
not Guvnor. I have no idea why this is happening.

Code:
URL url = new URL(guvnorURI + "/" + packageName +"/"+"versions");

HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("Accept", MediaType.APPLICATION_ATOM_XML);

String userPassword = "admin" + ":" + "admin";
String encoding = new
sun.misc.BASE64Encoder().encode(userPassword.getBytes());
con.setRequestProperty("Authorization", "Basic " + encoding);

con.connect();

InputStream versionHistory = con.getInputStream();

Abdera ab = new Abdera();
Document doc = ab.getParser().parse(new
InputStreamReader(versionHistory));
Feed feed = doc.getRoot();

List entries = feed.getEntries();

for(Entry entry : entries){
System.out.println(entry.getTitle());
System.out.println(entry.getUpdated());
System.out.println(entry.getAuthor());
}
.
.
//remaining code.

Exception: thrown at *Document doc = ab.getParser().parse(new
InputStreamReader(versionHistory));*
Exception in thread "main" org.apache.abdera.parser.ParseException:
com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:244)
at
org.apache.abdera.parser.stax.FOMBuilder.getFomDocument(FOMBuilder.java:317)
at
org.apache.abdera.parser.stax.FOMParser.getDocument(FOMParser.java:79)
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:191)
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:143)
at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:86)
at
com.envisagesystems.rules.impl.TestRuleImpl.printVersionHistory(TestRuleImpl.java:66)
at
com.envisagesystems.rules.impl.TestRuleImpl.main(TestRuleImpl.java:47)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686)
at
com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
at
org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at
org.apache.abdera.parser.stax.FOMBuilder.getNextElementToParse(FOMBuilder.java:149)
at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:174)
... 7 more

Any ideas?

Aseem
On Thu, Jan 24, 2013 at 1:28 PM, Michael Anstis wrote:

> Have you tried reading Guvnor's 
> documentation
> ?
>
> There's a large section relating to REST calls.
>
> On 24 January 2013 18:20, Aseem Belsare  wrote:
>
>> Hi,
>>
>> I wish to obtain the version history from Guvnor repository. Stumbled
>> upon
>> http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.htmlwhich
>>  seems to be related to the same topic, but the link in there is not
>> working which points to the documentation for using REST API to get the
>> assets/package version history info.
>>
>> Is there a way of doing it? I started working on Guvnor just recently and
>> I've setup a simple rule and making changes to it to be saved in the Guvnor
>> repo. I wish to pull the version history and generate a report using JAVA
>> based off of it.
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Aseem
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Guvnor Repository Reports

2013-01-24 Thread Michael Anstis
Have you tried reading Guvnor's
documentation
?

There's a large section relating to REST calls.

On 24 January 2013 18:20, Aseem Belsare  wrote:

> Hi,
>
> I wish to obtain the version history from Guvnor repository. Stumbled upon
> http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.htmlwhich
>  seems to be related to the same topic, but the link in there is not
> working which points to the documentation for using REST API to get the
> assets/package version history info.
>
> Is there a way of doing it? I started working on Guvnor just recently and
> I've setup a simple rule and making changes to it to be saved in the Guvnor
> repo. I wish to pull the version history and generate a report using JAVA
> based off of it.
>
> Any help would be appreciated.
>
> Thanks,
> Aseem
>
> ___
> 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] Drools Guvnor Repository Reports

2013-01-24 Thread Aseem Belsare
Hi,

I wish to obtain the version history from Guvnor repository. Stumbled upon
http://drools.46999.n3.nabble.com/Guvnor-Repository-Report-td3376667.htmlwhich
seems to be related to the same topic, but the link in there is not
working which points to the documentation for using REST API to get the
assets/package version history info.

Is there a way of doing it? I started working on Guvnor just recently and
I've setup a simple rule and making changes to it to be saved in the Guvnor
repo. I wish to pull the version history and generate a report using JAVA
based off of it.

Any help would be appreciated.

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


Re: [rules-users] Drools Guvnor: java.lang.ClassCastException: [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package

2012-11-29 Thread Michael Anstis
I suspect the version of drools and guvnor you are using are not identical.

Use of RuleAgent is most certainly not helping. Did you look at the
/droolsjbpm/guvnor/guvnor-examples demonstration using KnowledgeAgent?

On 29 November 2012 12:59, Hushen Savani wrote:

>  *Hi Team, *
>
> * *
>
> ***I'm a newbie to Drools. Please help me here. *
>
> * *
>
> *1. I have created a Package named "org.sample". *
>
> * *
>
> *2. I have created a Model named "TestModel" in the same package. *
>
> * *
>
> *3. I have created a Fact named "Number" in the same Model. *
>
> * *
>
> *4. "Number" fact is as following: *
>
> ** **
>
> [image: Fact]
>
> ** **
>
> *5. Then I have created a category named "TestCategory". *
>
> * *
>
> *6. Then created a sample Rule named "ruletest" in that category. *
>
> * *
>
> *7. Rule is created as following:*
>
> ** **
>
> *rule "numberone is equal to numbertwo"*
>
> *when*
>
> *n : Number(numberone == numbertwo);*
>
> *then*
>
> *n.setMessage("numberone is equal to numbertwo");*
>
> *end  *
>
> * *
>
> *rule "numberone is greater than numbertwo"*
>
> *when*
>
> *n : Number(numberone > numbertwo);*
>
> *then*
>
> *n.setMessage("numberone is greater than
> numbertwo");*
>
> *end*
>
> * *
>
> *rule "numberone is less than numbertwo"*
>
> *when*
>
> *n : Number(numberone < numbertwo);*
>
> *then*
>
> *n.setMessage("numberone is less than numbertwo");
> *
>
> *end*
>
> * *
>
> * 8. Built the package and created the snapshot. *
>
> * *
>
> *9. Wrote a JAVA POJO client as following: *
>
> * *
>
> *package* org.sample;
>
> ** **
>
> *import* org.drools.RuleBase;
>
> *import* org.drools.WorkingMemory;
>
> *import* org.drools.agent.RuleAgent;
>
> *import* org.drools.definition.type.FactType;
>
> ** **
>
> *public* *class* DroolGuvnor {
>
>   *public* *static* *void* main(String[] args) 
> *throws*InstantiationException, IllegalAccessException {
> 
>
> RuleAgent ruleAgent = RuleAgent.*newRuleAgent*(
> "/Guvnor.properties");
>
> RuleBase ruleBase = ruleAgent.getRuleBase();
>
> 
>
> FactType factType = ruleBase.getFactType("org.sample.Number");
> 
>
> Object obj = factType.newInstance();
>
> 
>
> factType.set(obj, "numberone", 2);
>
> factType.set(obj, "numbertwo", 1);
>
> 
>
> WorkingMemory workingMemory = ruleBase.newStatefulSession();**
> **
>
> workingMemory.insert(obj);
>
> workingMemory.fireAllRules();
>
> 
>
> System.*out*.println(factType.get(obj, "message"));
>
>   }
>
> }
>
> * *
>
> * *
>
> * 10. The "guvnor.properties" file is as following: *
>
> * *
>
> url=
> http://localhost:10080/guvnor-5.5.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/package/org.sample/TestSnapshot
> 
>
> enableBasicAuthentication=true
>
> username=*admin*
>
> password=*admin*
>
> name=*drooltest***
>
> * *
>
> * 11. But, when I run the client, I get following exception: *
>
> * *
>
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>
> SLF4J: Defaulting to no-operation (NOP) logger implementation
>
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
>
> Exception in thread "main" *java.lang.ClassCastException*:
> [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package
>
>   at org.drools.agent.HttpClientImpl.fetchPackage(*
> HttpClientImpl.java:86*)
>
>   at org.drools.agent.URLScanner.readPackage(*URLScanner.java:171*)***
> *
>
>   at org.drools.agent.URLScanner.getChangeSet(*URLScanner.java:143*)**
> **
>
>   at org.drools.agent.URLScanner.loadPackageChanges(*
> URLScanner.java:119*)
>
>   at org.drools.agent.RuleAgent.checkForChanges(*RuleAgent.java:431*)*
> ***
>
>   at org.drools.agent.RuleAgent.refreshRuleBase(*RuleAgent.java:383*)*
> ***
>
>   at org.drools.agent.RuleAgent.configure(*RuleAgent.java:368*)
>
>   at org.drools.agent.RuleAgent.init(*RuleAgent.java:268*)
>
>   at org.drools.agent.RuleAgent.newRuleAgent(*RuleAgent.java:208*)
>
>   at org.drools.agent.RuleAgent.newRuleAgent(*RuleAgent.java:168*)
>
>   at org.drools.agent.RuleAgent.newRuleAgent(*RuleAgent.java:277*)
>
>   at org.sample.DroolGuvnor.main(*DroolGuvnor.java:10*)
>
> ** **
>
> *Please help on this. Thanks. *
>
> * *
>
> * *
>
> *Best Regards, *
>
> *Hushen Savani*
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
ru

Re: [rules-users] Drools Guvnor: java.lang.ClassCastException: [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package

2012-11-29 Thread Hushen Savani
Hi Team, 

 

I'm a newbie to Drools. Please help me here. 

 

1. I have created a Package named "org.sample". 

 

2. I have created a Model named "TestModel" in the same package. 

 

3. I have created a Fact named "Number" in the same Model. 

 

4. "Number" fact is as following: 

 

 Fact  

 

5. Then I have created a category named "TestCategory". 

 

6. Then created a sample Rule named "ruletest" in that category. 

 

7. Rule is created as following:

 

rule "numberone is equal to numbertwo"

when

n : Number(numberone == numbertwo);

then

n.setMessage("numberone is equal to numbertwo");

end  

 

rule "numberone is greater than numbertwo"

when

n : Number(numberone > numbertwo);

then

n.setMessage("numberone is greater than numbertwo");

end

 

rule "numberone is less than numbertwo"

when

n : Number(numberone < numbertwo);

then

n.setMessage("numberone is less than numbertwo");

end

 

 8. Built the package and created the snapshot. 

 

9. Wrote a JAVA POJO client as following: 

 

package org.sample;

 

import org.drools.RuleBase;

import org.drools.WorkingMemory;

import org.drools.agent.RuleAgent;

import org.drools.definition.type.FactType;

 

public class DroolGuvnor {

  public static void main(String[] args) throws InstantiationException,
IllegalAccessException {

RuleAgent ruleAgent =
RuleAgent.newRuleAgent("/Guvnor.properties");

RuleBase ruleBase = ruleAgent.getRuleBase();



FactType factType = ruleBase.getFactType("org.sample.Number");

Object obj = factType.newInstance();



factType.set(obj, "numberone", 2);

factType.set(obj, "numbertwo", 1);



WorkingMemory workingMemory = ruleBase.newStatefulSession();

workingMemory.insert(obj);

workingMemory.fireAllRules();



System.out.println(factType.get(obj, "message"));

  }

}

 

 

 10. The "guvnor.properties" file is as following: 

 

url=http://localhost:10080/guvnor-5.5.0.Final-tomcat-6.0/org.drools.guvnor.G
uvnor/package/org.sample/TestSnapshot

enableBasicAuthentication=true

username=admin

password=admin

name=drooltest

 

 11. But, when I run the client, I get following exception: 

 

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.

Exception in thread "main" java.lang.ClassCastException:
[Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package

  at
org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:86)

  at org.drools.agent.URLScanner.readPackage(URLScanner.java:171)

  at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:143)

  at org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:119)

  at org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:431)

  at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:383)

  at org.drools.agent.RuleAgent.configure(RuleAgent.java:368)

  at org.drools.agent.RuleAgent.init(RuleAgent.java:268)

  at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:208)

  at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:168)

  at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:277)

  at org.sample.DroolGuvnor.main(DroolGuvnor.java:10)

 

Please help on this. Thanks. 

 

 

Best Regards, 

Hushen Savani

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


[rules-users] Drools Guvnor: java.lang.ClassCastException: [Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Package

2012-11-29 Thread hushen.savani
Hi Team, I'm a newbie to Drools. Please help me here.1. I have
created a Package named "org.sample".2. I have created a Model named
"TestModel" in the same package.3. I have created a Fact named "Number"
in the same Model.4. "Number" fact is as following:
 5. Then I
have created a category named "TestCategory".6. Then created a sample
Rule named "ruletest" in that category.7. Rule is created as
following:*rule "numberone is equal to numbertwo"   whenn : 
Number(numberone
== numbertwo);  thenn.setMessage("numberone is equal to 
numbertwo");end
rule "numberone is greater than numbertwo"  whenn : 
Number(numberone >
numbertwo); thenn.setMessage("numberone is greater than
numbertwo");endrule "numberone is less than numbertwo"  whenn :
Number(numberone < numbertwo);  thenn.setMessage("numberone is less 
than
numbertwo");end*8. Built the package and created the snapshot.9.
Wrote a JAVA POJO client as following:*package org.sample;import
org.drools.RuleBase;import org.drools.WorkingMemory;import
org.drools.agent.RuleAgent;import org.drools.definition.type.FactType;public
class DroolGuvnor { public static void main(String[] args) throws
InstantiationException, IllegalAccessException {RuleAgent 
ruleAgent =
RuleAgent.newRuleAgent("/Guvnor.properties");   RuleBase ruleBase =
ruleAgent.getRuleBase();FactType factType =
ruleBase.getFactType("org.sample.Number");  Object obj =
factType.newInstance(); factType.set(obj, "numberone", 
2);  
factType.set(obj, "numbertwo", 1);  WorkingMemory 
workingMemory =
ruleBase.newStatefulSession();  workingMemory.insert(obj);  
workingMemory.fireAllRules();   
System.out.println(factType.get(obj,
"message"));}}*10. The "guvnor.properties" file is as
following:*url=http://localhost:10080/guvnor-5.5.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/package/org.sample/TestSnapshotenableBasicAuthentication=trueusername=adminpassword=adminname=drooltest*
   
10. When I run the client, I get following exception:*SLF4J: Failed to load
class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation
(NOP) logger implementationSLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.Exception in thread "main" java.lang.ClassCastException:
[Lorg.drools.rule.Package; cannot be cast to org.drools.rule.Packageat
org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:86)at
org.drools.agent.URLScanner.readPackage(URLScanner.java:171)at
org.drools.agent.URLScanner.getChangeSet(URLScanner.java:143)   at
org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:119) at
org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:431)  at
org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:383)  at
org.drools.agent.RuleAgent.configure(RuleAgent.java:368)at
org.drools.agent.RuleAgent.init(RuleAgent.java:268) at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:208) at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:168) at
org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:277) at
org.sample.DroolGuvnor.main(DroolGuvnor.java:10)*Please help on this.
Thanks.Best Regards,Hushen Savani



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-java-lang-ClassCastException-Lorg-drools-rule-Package-cannot-be-cast-to-org-drools-rule-tp4021008.html
Sent from the Drools: User forum 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] Drools Guvnor API information?

2012-11-08 Thread Cedric Hurst
I wound up creating a Java-based facade for Guvnor a couple weeks back to 
support ant-based deployment.  Feel free to compare notes with what I came up 
with here:

https://gist.github.com/4039422 

--
Build Smarter Software.

Spantree Technology Group, LLC
813 W Randolph St, Suite 301, Chicago, IL
email: ced...@spantree.net (mailto:ced...@spantree.net) | phone: 773.359.3865 
(tel:773.359.3865)


On Thursday, November 8, 2012 at 9:12 AM, fanat1k_ua wrote:

> I had been looking for a long time until I looked into sources:
> https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceIntegrationTest.java
> (e.g. method testCreateAndUpdateAndDeletePackageFromAtom() )
> I used this resource to create my own rest API that now works fine.
> With webdav api I had big problems! Guvnor throws a lot of exceptions in the
> log and sometimes completely stops working even web-interface. (used sardine
> library).
> 
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-API-information-tp2471798p4020758.html
> Sent from the Drools: User forum mailing list archive at Nabble.com 
> (http://Nabble.com).
> ___
> rules-users mailing list
> rules-users@lists.jboss.org (mailto:rules-users@lists.jboss.org)
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 


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


Re: [rules-users] Drools Guvnor API information?

2012-11-08 Thread fanat1k_ua
I had been looking for a long time until I looked into sources:
https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceIntegrationTest.java
(e.g. method testCreateAndUpdateAndDeletePackageFromAtom() )
I used this resource to create my own rest API that now works fine.
With webdav api I had big problems! Guvnor throws a lot of exceptions in the
log and sometimes completely stops working even web-interface. (used sardine
library).




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-API-information-tp2471798p4020758.html
Sent from the Drools: User forum 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] Drools Guvnor 5.4.0.Final running on JBoss AS 6.1

2012-10-29 Thread Patricia Bogoevici








Hi all,

I am running Drools Guvnor 5.4.0.Final on JBoss AS 6.1. I removed some 
libraries that were conflicting, and I also removed from the web.xml, the 
BeanManager resource env. After those changes, the app starts up, but it fails 
when bootstrapping Weld, when wrapping injection target to IdentityImpl class, 
failing on unsatisfied dependencies. The reported error varies, as sometimes 
the unsatisfied dependencies are [HttpSession] , [Credentials] 
or [PermissionMapper]. 




I am stuck on this error, any input is much appreciated.




The detailed error message:

  Deployment 
"vfs:///myPath/jboss-6.1.0.Final/server/default/deploy/myAPP.war_WeldBootstrapBean"
 is in error due to the following reason(s): 
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
dependencies for type [HttpSession] with qualifiers [@Default] at injection 
point [[field] @Inject org.jboss.seam.security.IdentityImpl.session], **ERROR**
  Deployment "java:global/cdi/myAPP/myAPP/BeanManager" is in error due to the 
following reason(s): ** NOT FOUND Depends on 
'java:global/cdi/myAPP/myAPP/BeanManager' **


or


Deployment 
"vfs:///myPath/jboss-6.1.0.Final/server/default/deploy/myAPP.war_WeldBootstrapBean"
 is in error due to the following reason(s): 
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied 
dependencies for type [PermissionMapper] with qualifiers [@Default] at 
injection point [[field] @Inject private 
org.jboss.seam.security.IdentityImpl.permissionMapper], **ERROR**
 Deployment "java:global/cdi/myAPP/myAPP/BeanManager" is in error due to the 
following reason(s): ** NOT FOUND Depends on 
'java:global/cdi/myAPP/myAPP/BeanManager' **






Excluded libraries from war:
                   xml-apis-1.3.04.ja
                 xmlParserAPIs-2.6.2.jar
                 jsf-api-1.2.jar
                 jta-1.1.jar
                 jaxen-1.1.1.jar
                 jaxb-xjc-2.2.5.jar
                 weld-servlet-core-1.1.6.Final.jar
                 weld-api-1.1.Final.jar
                 weld-core-1.1.6.Final.jar
                 weld-spi-1.1.Final.jar
                 xercesImpl-2.9.1.jar
                 dom4j-1.6.1.jar
                 cdi-api-1.0-SP4.jar
                 javassist-3.14.0-GA.jar
                 javax.inject-1.jar
                 jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar
                 jsr250-api-1.0.jar
                 persistence-api-1.0.jar
                 shrinkwrap-api-1.0.0-cr-1.jar
                 shrinkwrap-impl-base-1.0.0-cr-1.jar
                 shrinkwrap-spi-1.0.0-cr-1.jar

Thanks,Patricia___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-09-26 Thread Ravikiran
Drools Guvnor v5.3 & 5.4 onwards uses weld and seam frameworks causing this
error. Though i do not have any clue about the given exception, But Guvnor
v5.2.0 works perfectly in Websphere AS7 without any issues. But remember, it
works only in Firefox browser. You'll end up ing seeing blank screen after
login to Guvnor in IE browser.

cheers



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4019978.html
Sent from the Drools: User forum 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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-08-22 Thread Ravikiran
Hi All,

Drools Guvnor 5.2.0 Final successfully working on Websphere AS 7. As
described in my earlier posts, I was not getting blank screen displayed
after the new repository is created when i launch Guvnor for the first time.
I didn't have any clue about this behavior because it wasn't throwing any
exceptions too.

Root cause of this behaviour is browser version. It works successfully on
IE8, Firefox and Chrome. I was facing problem with IE6.Damm.

thanks...



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4019341.html
Sent from the Drools: User forum 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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-24 Thread Ravikiran
Hi,

Drools Guvnor 5.4.0 Final  - I came to know that this version may not work
successfully in Websphere because IBM Websphere uses OpenWebBeans as CDI
implementation. Where as JBoss uses weld and this seems to differ. Not very
sure about the implementation of two sides...is it?

Drools Guvnor 5.2.0 Final - This is deployed successfully deployed on
Websphere, and i got the blank page after the sample repository is created
during launching.

@Guvnor experts, do you suggest any other version of drools guvnor
distribution without weld that can resolve my above issues?

Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4018886.html
Sent from the Drools: User forum 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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-23 Thread Ravikiran
Hi Joffrey,

I was almost there to start using guvnor with Websphere 7, but i am struck
now with the situation explained earlier. That to, no exceptions have been
thrown on server logs as well. Just blank screen with header part displayed
after the repository is created

Appreciate any help or clue at this point of time...Also, please let me know
if you need more details

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829p4018850.html
Sent from the Drools: User forum 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] Drools Guvnor 5.2 Issue on Websphere AS 7

2012-07-23 Thread Ravikiran
Hi Drools gurus,

I am back again. As most of you know that i had many 'weld' related issues
for deploying Drools Guvnor 5.4 in Webspere 7. After all my trails, i have
decided to go for Guvnor 5.2 (which doesn't have weld+seam dependancies)
deployment on Websphere As7.
This time, I was able to deploy Guvnor 5.2.0 Final on Websphere AS7
successfully without any errors. I have changed the repository to my own
file path. When i launch the guvnor for the first it had asked me to load
the sample packages, i have chosen YES. It was succeffully loaded all sample
packages into my given file path. That's it, after the loading, my browser
window was completely blank except "Drools" logo on top left and
guest[signout] on top right.

Any Idea what was wrong with my setup. What should i do to get the guvnor
web...Please help. 

http://localhost:9080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html
I saw view source,













 images/loading-icon.gif 
Please wait 
  Loading application...




  


---

Is it something to do with 'org.drools.guvnor.Guvnor.nocache.js'?

thanks a lot in advance.





--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-2-Issue-on-Websphere-AS-7-tp4018829.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-20 Thread Ravikiran
Hi,

Still no resolotion found. Whatever the tweaking i do, getting the same
error...no change at all. To be more precise, My Websphere7 server was
started successfully, but i get the server 500 error dialog resulting to
below same error.

"[20/07/12 20:12:02:063 SGT] 008d SystemOut O ERROR 20-07
20:12:02,047 (LoggingHelper.java:error:74)   Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
java.lang.IllegalStateException: CDI hasn't been properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)


---"

Thanks




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018798.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-19 Thread Ravikiran
Hi Joffrey/Gurus,

Anybody can suggest how to resolve the below error.

Before i get the above exception, i found that there was another exception
during the server startup. Which is below,

[19/07/12 17:33:49:360 SGT] 0025 webappE
com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E:
Exception caught while initializing context: {0}

org.jboss.weld.exceptions.DeploymentException: Exception List with 4
exceptions:
Exception 0 :
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [ServiceImplementation] with qualifiers [@Default] at
injection point [[field] @Inject private
org.drools.guvnor.server.converters.decisiontable.DecisionTableXLSToDecisionTableGuidedConverter.serviceImplementation]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:312)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:281)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:144)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:164)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:383)
at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:368)
at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
at
org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:182)
at
org.drools.guvnor.server.repository.SafeWeldListener.contextInitialized(SafeWeldListener.java:54)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1681)
at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:374)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:609)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4520)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4698)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at
javax.management.modelmbean.RequiredModelM

Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-19 Thread Geoffrey De Smet
My advice: start from scratch:
Download guvnor-distribution-5.4.0.Final.zip, unzip it, take the tomcat6 
war and deploy it to webshere.
It will probably crash as Websphere doesn't allow to deploy certain 
jars: the question is which jars. (I don't know which ones).
Look at the exception message and remove the offending jar, then try 
again (loop this until all offending jars are gone).

When you're done, please give us feed-back by telling here on the list 
which jars need to be cut from the generic war (= tomcat 6 war) in order 
to deploy on websphere.

For jboss 7 we already have an assembly in place which removes the jars 
that need to be cut:
https://github.com/droolsjbpm/guvnor/blob/master/guvnor-distribution-wars/src/main/assembly/assembly-guvnor-jboss-as-7_0.xml#L19
A pull request for such a webpshere assembly is welcome.

Op 18-07-12 16:25, Ravikiran schreef:
> Hi Joffrey,
>
> I have downloaded the distribution shows Drools-guvnor 5.3.0, but when i see
> the Guvnor version from web UI (Adminstration-->About) it shows the version
> as SNAPSOT 5.4.0. Now i too suspect that my Guvnor is of version 5.4.0 only,
> that's why all those errors were coming.
>
> I feel that you have understood the problem now, please tell me what should
> i do to resolve this. If i required to add any new jar files, please also
> let me know the location to download them as well. Because i didn't get any
> related information on internet for this issue so far...you are the only
> hope!
>
> Thanks a lot...
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018756.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

-- 
With kind regards,
Geoffrey De Smet


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


Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-19 Thread Ravikiran
Hi Joffrey,

I have downloaded "guvnor-5.4.0.Final-tomcat-6.0.war" and deployed into
Websphere AS7. Still i am getting the same exception.

[19/07/12 17:23:36:125 SGT] 0025 webappI
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[guvnor-5_4_0_Final-tomcat-6_0_war#guvnor-5.4.0.Final-tomcat-6.0.war][/BRE][Servlet.LOG]:.Exception
while dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1663)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
Caused by: java.lang.IllegalStateException: CDI hasn't been properly
started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 26 more

I am struck here since 2 days, please throw some light how i can resolve the
issue to successfully launch guvnor in Websphere.

thanks a lot!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018770.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Joffrey,

I have downloaded the distribution shows Drools-guvnor 5.3.0, but when i see
the Guvnor version from web UI (Adminstration-->About) it shows the version
as SNAPSOT 5.4.0. Now i too suspect that my Guvnor is of version 5.4.0 only,
that's why all those errors were coming.

I feel that you have understood the problem now, please tell me what should
i do to resolve this. If i required to add any new jar files, please also
let me know the location to download them as well. Because i didn't get any
related information on internet for this issue so far...you are the only
hope!

Thanks a lot...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018756.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Geoffrey De Smet
Just realized:
We only use CDI, weld, seam 3 and arquillian since Guvnor 5.4.0
In Guvnor 5.3.0 we still use seam 2 (which does not use the CDI spec jars).

So how can you be running into errors that speak about weld-servlet?

Op 18-07-12 14:19, Ravikiran schreef:
> Hi Geoffrey & Other Gurus
>
> To throw more light on the above error message, please find below the
> getCurrentUser() method snippet that i have taken from the source of
> SecurityServiceServlet.java. Please tell me in what cases the
> securityService comes as null for causing this exception.
>
> public UserSecurityContext getCurrentUser() {
>  if (securityService == null) {
>  // This is the first method called by the client.
>  // If CDI hasn't kicked in (theoretically impossible...), throw
> a readable exception
>  throw new IllegalStateException("CDI hasn't been properly
> started.\n" +
>  "  Make sure your IDE classpath is in sync with the real
> maven classpath.\n" +
>  "  The classpath should include weld-servlet.");
>  }
>  return securityService.getCurrentUser();
> }
>
> Thanks a lot
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018752.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

-- 
With kind regards,
Geoffrey De Smet


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


Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Geoffrey & Other Gurus

To throw more light on the above error message, please find below the
getCurrentUser() method snippet that i have taken from the source of
SecurityServiceServlet.java. Please tell me in what cases the
securityService comes as null for causing this exception.

public UserSecurityContext getCurrentUser() {
if (securityService == null) {
// This is the first method called by the client.
// If CDI hasn't kicked in (theoretically impossible...), throw
a readable exception
throw new IllegalStateException("CDI hasn't been properly
started.\n" +
"  Make sure your IDE classpath is in sync with the real
maven classpath.\n" +
"  The classpath should include weld-servlet.");
}
return securityService.getCurrentUser();
}

Thanks a lot

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018752.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-18 Thread Ravikiran
Hi Geoffrey,

I couldn't find any weld related jar files available in
guvnor-5.3.0.Final-tomcat-6.0.war. Also i have tried wild card search like
weld*, but i couldn't find it.

Could you please check whether the below line from the error message might
give you some idea,

"Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started."

I am struck here without any success since yesterday, please help.

thanks.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4018750.html
Sent from the Drools: User forum 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] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-17 Thread Geoffrey De Smet
Instead of the guvnor jboss-as-7.0 war, use the guvnor tomcat-6.0 war, 
that one includes the weld jars.

Op 18-07-12 06:17, Ravikiran schreef:
> Hi,
> I am deploying drools-guvnor.war (version 5.3.0) into Websphere AS 7. The
> war file was working perfectly fine in JBoss AS 7. But i am getting below
> exception when launching the guvnor from browser...
>
>
> [18/07/12 12:09:02:101 SGT] 0032 SystemOut O ERROR 18-07
> 12:09:02,101 (LoggingHelper.java:error:74) Service method 'public abstract
> org.drools.guvnor.client.rpc.UserSecurityContext
> org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
> unexpected exception: java.lang.IllegalStateException: CDI hasn't been
> properly started.
>Make sure your IDE classpath is in sync with the real maven classpath.
>The classpath should include weld-servlet.
> java.lang.IllegalStateException: CDI hasn't been properly started.
>Make sure your IDE classpath is in sync with the real maven classpath.
>The classpath should include weld-servlet.
>   at
> org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>   at java.lang.reflect.Method.invoke(Method.java:599)
>   at 
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
>   at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
>   at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
>   at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
>   at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1663)
>   at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
>   at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
>   at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
>   at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
>   at 
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
>   at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
>   at
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
>   at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
>   at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
>   at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
>   at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
>   at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
>   at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
>   at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
>   at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
>   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
>   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
>   at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
>   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
>   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
> [18/07/12 12:09:02:101 SGT] 0032 webappI
> com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
> [drools-guvnor_war#drools-guvnor.war][/drools-guvnor][Servlet.LOG]:.Exception
> while dispatching incoming RPC
> call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
> org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
> unexpected exception: java.lang.IllegalStateException: CDI hasn't been
> properly started.
>Make sure your IDE classpath is in sync with the real maven classpath.
>The classpath should include weld-servlet.
>   at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
>   at 
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
>   at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
>   at
> com.google.gwt.user.server.rpc.RemoteServic

[rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2012-07-17 Thread Ravikiran
Hi,
I am deploying drools-guvnor.war (version 5.3.0) into Websphere AS 7. The
war file was working perfectly fine in JBoss AS 7. But i am getting below
exception when launching the guvnor from browser...


[18/07/12 12:09:02:101 SGT] 0032 SystemOut O ERROR 18-07
12:09:02,101 (LoggingHelper.java:error:74)   Service method 'public abstract
org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
java.lang.IllegalStateException: CDI hasn't been properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1663)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
[18/07/12 12:09:02:101 SGT] 0032 webappI
com.ibm.ws.webcontainer.webapp.WebApp log SRVE0296E:
[drools-guvnor_war#drools-guvnor.war][/drools-guvnor][Servlet.LOG]:.Exception
while dispatching incoming RPC
call:.com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract org.drools.guvnor.client.rpc.UserSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lang.IllegalStateException: CDI hasn't been
properly started.
  Make sure your IDE classpath is in sync with the real maven classpath.
  The classpath should include weld-servlet.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax

Re: [rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Hi Davide,

I can write the listener to know what is happening underneath that will be
printed in a log, but when it comes to my biz. scenario i should have a
simple way that i can derive it from my java code. Because i have multiple
biz.flows based on certain biz.policies...those policies have to be derived
from the execution of specific rules within my package...

Can you please thorow little more light on this

thanks

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701p4018726.html
Sent from the Drools: User forum 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] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Davide Sottara
You could add an AgendaEventListener to your session (see also the manual for
listeners),
letting you execute callback code whenever a rule is activated/fires/etc...

The listener is actually an interface, I think there is at least one default
implementation which 
just logs debug code. Notice that a possibility for a listener is to insert
the callback events into
a (separate) session and use rules to process them ;)

Best
Davide


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701p4018725.html
Sent from the Drools: User forum 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] Drools Guvnor 5.4.0 - Rules integration with database (Oracle)

2012-07-16 Thread Ravikiran
Hi Drools gurus,

Further to my earlier post in the same thread, 

1) please clarify whether the respository folder still exists after the
database integration?
2) If the repository folder still exists even after database integration,
then there is something wrong with my process.
3) After the development is completed in my DEV. environment, How do i
promote my changes to SIT or different environment (means repository)?

Please let me know if you need more details...

thanks a lot.


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-4-0-Rules-integration-with-database-Oracle-tp4018696p4018724.html
Sent from the Drools: User forum 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] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Thanks Esteban. It works fine after inserting the Fact instead of
FactType...!!!

But still i have one basic question in mind...if there are many rules
defined in my package, How would i know that which is rule has got fired
when i call fireAllRules() method whithout passing AgendaFilter. Also i know
that fireAllRules() gives me how many rules have got fired like int x =
session.fireAllRules()

I have defined specific set of rules defined in a package for one biz. logic
and deployed drools war seperately. From the Application integration
perspective, I should be able to know whether my rules is fired or not.
Based on the success or failure i'll have to do some biz. processing

Little confusing here...i know that i am almost there...but i need some
light here to understand better for the integration purpose.

Please help!!!

Thanks a lot in Advance...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701p4018723.html
Sent from the Drools: User forum 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] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran kakarla
ooops. I'll try tomorrow in office and will reply...thanks a lot

On Mon, Jul 16, 2012 at 9:59 PM, Esteban Aliverti <
esteban.alive...@gmail.com> wrote:

> The problem is that you are inserting the fact type definition instead of
> the facts themselves.
>
> instead of insert *appType* and *incomeType* you should insert *
> application* and *income*.
>
> Best Regards,
>
> 
>
> Esteban Aliverti
> - Blog @ http://ilesteban.wordpress.com
>
>
> On Mon, Jul 16, 2012 at 3:20 PM, Wolfgang Laun wrote:
>
>> Why do you think that you should have a third fact when there are no
>> insert() calls except the two in your Java code?
>> -W
>>
>> On 16/07/2012, Ravikiran  wrote:
>> > Hi,
>> > I'm using default Guvnor package "mortgages" decision table as example
>> for
>> > my POC. Below is the rules from the decision table. No rule is being
>> fired
>> > from my JAVA client out of 3 rules given below.
>> >
>> > //from row number: 1
>> > rule "Row 3 Pricing loans"
>> >   dialect "mvel"
>> >   when
>> >application : LoanApplication( amount > "131000" ,
>> amount <=
>> > "20" , lengthYears == "30" , deposit < "2" )
>> >   income : IncomeSource( type == "Asset" )
>> >   then
>> >   application.setApproved( true );
>> >   application.setInsuranceCost( 0 );
>> >   application.setApprovedRate( 2 );
>> > end
>> >
>> > //from row number: 2
>> > rule "Row 1 Pricing loans"
>> >   dialect "mvel"
>> >   when
>> >   application : LoanApplication( amount > "1" , amount
>> <= "10" ,
>> > lengthYears == "20" , deposit < "2000" )
>> >   income : IncomeSource( type == "Job" )
>> >   then
>> >   application.setApproved( true );
>> >   application.setInsuranceCost( 0 );
>> >   application.setApprovedRate( 4 );
>> > end
>> >
>> > //from row number: 3
>> > rule "Row 2 Pricing loans"
>> >   dialect "mvel"
>> >   when
>> >   application : LoanApplication( amount > "11" , amount
>> <= "13" ,
>> > lengthYears == "20" , deposit < "3000" )
>> >   income : IncomeSource( type == "Job" )
>> >   then
>> >   application.setApproved( true );
>> >   application.setInsuranceCost( 10 );
>> >   application.setApprovedRate( 6 );
>> > end
>> >
>> > ==> My Java client follows
>> > KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully
>> creates
>> > knowledgebase
>> > StatefulKnowledgeSession session =
>> > knowledgeBase.newStatefulKnowledgeSession();
>> >
>> > FactType appType = knowledgeBase.getFactType( "mortgages",
>> > "LoanApplication" );
>> > FactType incomeType = knowledgeBase.getFactType( "mortgages",
>> > "IncomeSource" );
>> >
>> > Object application = appType.newInstance();
>> > Object income = incomeType.newInstance();
>> >
>> > appType.set(application, "amount", 10);
>> > appType.set(application, "deposit", 1500);
>> > appType.set(application, "lengthYears", 20);
>> >
>> > incomeType.set(income, "type", "Job");
>> > incomeType.set(income, "amount", 65000);
>> >
>> > session.insert(appType);
>> > session.insert(incomeType);
>> >
>> > assertTrue(session.getFactCount() == 2);
>> > session.fireAllRules();
>> > assertTrue(session.getFactCount() == 3);
>> >
>> > Question: I hope the way i pass the input satisfies "Row 2 Pricing
>> loans"
>> > above. But My assertion is getting failed after calling
>> > fireAllRules()...because the factcount was still 2. Please help what
>> could
>> > be the wrong in above scenario.
>> >
>> > thanks a lot.
>> >
>> > --
>> > View this message in context:
>> >
>> http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.html
>> > Sent from the Drools: User forum 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
>>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Esteban Aliverti
The problem is that you are inserting the fact type definition instead of
the facts themselves.

instead of insert *appType* and *incomeType* you should insert *application*and
*income*.

Best Regards,



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


On Mon, Jul 16, 2012 at 3:20 PM, Wolfgang Laun wrote:

> Why do you think that you should have a third fact when there are no
> insert() calls except the two in your Java code?
> -W
>
> On 16/07/2012, Ravikiran  wrote:
> > Hi,
> > I'm using default Guvnor package "mortgages" decision table as example
> for
> > my POC. Below is the rules from the decision table. No rule is being
> fired
> > from my JAVA client out of 3 rules given below.
> >
> > //from row number: 1
> > rule "Row 3 Pricing loans"
> >   dialect "mvel"
> >   when
> >application : LoanApplication( amount > "131000" ,
> amount <=
> > "20" , lengthYears == "30" , deposit < "2" )
> >   income : IncomeSource( type == "Asset" )
> >   then
> >   application.setApproved( true );
> >   application.setInsuranceCost( 0 );
> >   application.setApprovedRate( 2 );
> > end
> >
> > //from row number: 2
> > rule "Row 1 Pricing loans"
> >   dialect "mvel"
> >   when
> >   application : LoanApplication( amount > "1" , amount
> <= "10" ,
> > lengthYears == "20" , deposit < "2000" )
> >   income : IncomeSource( type == "Job" )
> >   then
> >   application.setApproved( true );
> >   application.setInsuranceCost( 0 );
> >   application.setApprovedRate( 4 );
> > end
> >
> > //from row number: 3
> > rule "Row 2 Pricing loans"
> >   dialect "mvel"
> >   when
> >   application : LoanApplication( amount > "11" , amount
> <= "13" ,
> > lengthYears == "20" , deposit < "3000" )
> >   income : IncomeSource( type == "Job" )
> >   then
> >   application.setApproved( true );
> >   application.setInsuranceCost( 10 );
> >   application.setApprovedRate( 6 );
> > end
> >
> > ==> My Java client follows
> > KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully
> creates
> > knowledgebase
> > StatefulKnowledgeSession session =
> > knowledgeBase.newStatefulKnowledgeSession();
> >
> > FactType appType = knowledgeBase.getFactType( "mortgages",
> > "LoanApplication" );
> > FactType incomeType = knowledgeBase.getFactType( "mortgages",
> > "IncomeSource" );
> >
> > Object application = appType.newInstance();
> > Object income = incomeType.newInstance();
> >
> > appType.set(application, "amount", 10);
> > appType.set(application, "deposit", 1500);
> > appType.set(application, "lengthYears", 20);
> >
> > incomeType.set(income, "type", "Job");
> > incomeType.set(income, "amount", 65000);
> >
> > session.insert(appType);
> > session.insert(incomeType);
> >
> > assertTrue(session.getFactCount() == 2);
> > session.fireAllRules();
> > assertTrue(session.getFactCount() == 3);
> >
> > Question: I hope the way i pass the input satisfies "Row 2 Pricing loans"
> > above. But My assertion is getting failed after calling
> > fireAllRules()...because the factcount was still 2. Please help what
> could
> > be the wrong in above scenario.
> >
> > thanks a lot.
> >
> > --
> > View this message in context:
> >
> http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.html
> > Sent from the Drools: User forum 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
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Wolfgang Laun
Why do you think that you should have a third fact when there are no
insert() calls except the two in your Java code?
-W

On 16/07/2012, Ravikiran  wrote:
> Hi,
> I'm using default Guvnor package "mortgages" decision table as example for
> my POC. Below is the rules from the decision table. No rule is being fired
> from my JAVA client out of 3 rules given below.
>
> //from row number: 1
> rule "Row 3 Pricing loans"
>   dialect "mvel"
>   when
>application : LoanApplication( amount > "131000" , amount 
> <=
> "20" , lengthYears == "30" , deposit < "2" )
>   income : IncomeSource( type == "Asset" )
>   then
>   application.setApproved( true );
>   application.setInsuranceCost( 0 );
>   application.setApprovedRate( 2 );
> end
>
> //from row number: 2
> rule "Row 1 Pricing loans"
>   dialect "mvel"
>   when
>   application : LoanApplication( amount > "1" , amount <= 
> "10" ,
> lengthYears == "20" , deposit < "2000" )
>   income : IncomeSource( type == "Job" )
>   then
>   application.setApproved( true );
>   application.setInsuranceCost( 0 );
>   application.setApprovedRate( 4 );
> end
>
> //from row number: 3
> rule "Row 2 Pricing loans"
>   dialect "mvel"
>   when
>   application : LoanApplication( amount > "11" , amount <= 
> "13" ,
> lengthYears == "20" , deposit < "3000" )
>   income : IncomeSource( type == "Job" )
>   then
>   application.setApproved( true );
>   application.setInsuranceCost( 10 );
>   application.setApprovedRate( 6 );
> end
>
> ==> My Java client follows
> KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully creates
> knowledgebase
> StatefulKnowledgeSession session =
> knowledgeBase.newStatefulKnowledgeSession();
>
> FactType appType = knowledgeBase.getFactType( "mortgages",
> "LoanApplication" );
> FactType incomeType = knowledgeBase.getFactType( "mortgages",
> "IncomeSource" );
>
> Object application = appType.newInstance();
> Object income = incomeType.newInstance();
>
> appType.set(application, "amount", 10);
> appType.set(application, "deposit", 1500);
> appType.set(application, "lengthYears", 20);
>
> incomeType.set(income, "type", "Job");
> incomeType.set(income, "amount", 65000);
>
> session.insert(appType);
> session.insert(incomeType);
>
> assertTrue(session.getFactCount() == 2);
> session.fireAllRules();
> assertTrue(session.getFactCount() == 3);
>
> Question: I hope the way i pass the input satisfies "Row 2 Pricing loans"
> above. But My assertion is getting failed after calling
> fireAllRules()...because the factcount was still 2. Please help what could
> be the wrong in above scenario.
>
> thanks a lot.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.html
> Sent from the Drools: User forum 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


[rules-users] Drools Guvnor-Decison Tables - Rule is not being fired!!! Please help

2012-07-16 Thread Ravikiran
Hi,
I'm using default Guvnor package "mortgages" decision table as example for
my POC. Below is the rules from the decision table. No rule is being fired
from my JAVA client out of 3 rules given below.

//from row number: 1
rule "Row 3 Pricing loans"
dialect "mvel"
when
 application : LoanApplication( amount > "131000" , amount 
<=
"20" , lengthYears == "30" , deposit < "2" )
income : IncomeSource( type == "Asset" )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 2 );
end

//from row number: 2
rule "Row 1 Pricing loans"
dialect "mvel"
when
application : LoanApplication( amount > "1" , amount <= 
"10" ,
lengthYears == "20" , deposit < "2000" )
income : IncomeSource( type == "Job" )
then
application.setApproved( true );
application.setInsuranceCost( 0 );
application.setApprovedRate( 4 );
end

//from row number: 3
rule "Row 2 Pricing loans"
dialect "mvel"
when
application : LoanApplication( amount > "11" , amount <= 
"13" ,
lengthYears == "20" , deposit < "3000" )
income : IncomeSource( type == "Job" )
then
application.setApproved( true );
application.setInsuranceCost( 10 );
application.setApprovedRate( 6 );
end

==> My Java client follows
KnowledgeBase knowledgeBase = createKnowledgeBase(); //Successfully creates
knowledgebase
StatefulKnowledgeSession session =
knowledgeBase.newStatefulKnowledgeSession();

FactType appType = knowledgeBase.getFactType( "mortgages",
"LoanApplication" );
FactType incomeType = knowledgeBase.getFactType( "mortgages",
"IncomeSource" );

Object application = appType.newInstance();
Object income = incomeType.newInstance();

appType.set(application, "amount", 10);
appType.set(application, "deposit", 1500);
appType.set(application, "lengthYears", 20);

incomeType.set(income, "type", "Job");
incomeType.set(income, "amount", 65000);

session.insert(appType);
session.insert(incomeType);

assertTrue(session.getFactCount() == 2);
session.fireAllRules();
assertTrue(session.getFactCount() == 3);

Question: I hope the way i pass the input satisfies "Row 2 Pricing loans"
above. But My assertion is getting failed after calling
fireAllRules()...because the factcount was still 2. Please help what could
be the wrong in above scenario.

thanks a lot.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-Decison-Tables-Rule-is-not-being-fired-Please-help-tp4018701.html
Sent from the Drools: User forum 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] Drools Guvnor 5.4.0 - Rules integration with database (Oracle)

2012-07-16 Thread Ravikiran
Hi,
I working on creating a POC by creating set of web based rules within a
package using drools Guvnor and accessing them from my Java client.
Currently, my drools uses Jackrabbit repository (2 foldersrepository and
scripts and 1 file repository.xml) which is created within "bin" folder of
my JBoss AS.
I have gone through the steps given in user guide for database integration,
I am using Oracle as my database and i generated oracle based repository.xml
using the administration in Drools Guvnor and placed it under my bin folder.
I have stopped the server and deleted exsting 2 folders and one xml file. I
have restarted my server with the deployment of drools-guvnor.war. When i
start the guvnor web, it has asked me whether to load the sample packages
for the fisrt time, i said yes.
Now when i go and see in bin directory, i could still see one respository
folder. Also, i could see there were 6-7 tables have been created in oracle
database which were belongs to jboss drools only.

I would need some experts suggestion here, 
is it the right way to do the rule integration with the database?
What is right way to promote the same changes to SIT or UAT?

Thanks in advance...



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-4-0-Rules-integration-with-database-Oracle-tp4018696.html
Sent from the Drools: User forum 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] Drools Guvnor - question on "mortgages" package in "guvnor-distribution-5.4.0.Final"

2012-07-13 Thread Ravikiran
It's very clear now. Thanks a lot Mike.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-question-on-mortgages-package-in-guvnor-distribution-5-4-0-Final-tp4018653p4018658.html
Sent from the Drools: User forum 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] Drools Guvnor - question on "mortgages" package in "guvnor-distribution-5.4.0.Final"

2012-07-13 Thread Michael Anstis
The mortgages example uses a declarative model, not a POJO JAR model.

There will be an asset for the model.

On 13 July 2012 08:46, Ravikiran  wrote:

> Hi,
> I have deployed drools-guvnor.war version 5.4.0 in Jboss AS 7. When i
> launch
> the guvnor for the first time, it also loads the defalult packages, one
> package is called "mortgages" is also loaded. Mortgages package contans
> totally 7 diff. rules, but when i go see the model of the mortgages i do
> not
> see any classes displayed over there. But, i was able to build & create
> deployment SNAPSHOT successfully. Even the rule DSL source contains all
> classes like LoanApplication etc.,.
>
> How is it possible? Do you mean, some kind of related drl file is uploaded
> as a Model? please clarify?
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Guvnor-question-on-mortgages-package-in-guvnor-distribution-5-4-0-Final-tp4018653.html
> Sent from the Drools: User forum 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


[rules-users] Drools Guvnor - question on "mortgages" package in "guvnor-distribution-5.4.0.Final"

2012-07-13 Thread Ravikiran
Hi,
I have deployed drools-guvnor.war version 5.4.0 in Jboss AS 7. When i launch
the guvnor for the first time, it also loads the defalult packages, one
package is called "mortgages" is also loaded. Mortgages package contans
totally 7 diff. rules, but when i go see the model of the mortgages i do not
see any classes displayed over there. But, i was able to build & create
deployment SNAPSHOT successfully. Even the rule DSL source contains all
classes like LoanApplication etc.,.

How is it possible? Do you mean, some kind of related drl file is uploaded
as a Model? please clarify?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-question-on-mortgages-package-in-guvnor-distribution-5-4-0-Final-tp4018653.html
Sent from the Drools: User forum 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] Drools-guvnor simple example Help

2012-06-25 Thread Michael Anstis
I suspect you are thinking way too procedurally.

If one was to place individual rules into separate Agenda Groups you could
emulate "go to", but you should probably be asking yourself "why".

On 25 June 2012 12:24, abhinay_agarwal  wrote:

> hey mike,
>
> no i cant differentiate them at object level...
>
> can agenda groups help me jump from one rule to other across packages ?
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223p4018227.html
> Sent from the Drools: User forum 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] Drools-guvnor simple example Help

2012-06-25 Thread abhinay_agarwal
hey mike,

no i cant differentiate them at object level...

can agenda groups help me jump from one rule to other across packages ?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223p4018227.html
Sent from the Drools: User forum 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] Drools-guvnor simple example Help

2012-06-25 Thread Michael Anstis
How do you know what set of rules need to be executed?

Do you make the decision based upon the business-transaction or Object
types, or Object properties?

I only ask as you may not need to worry about which rules run and which do
not if you can differentiate at the Object level. For example:-

//This will only activate for Account's of type SAVING
when
Account( type == SAVINGS )
then

//This will only activate for Account's of type CURRENT
when
Account( type == CURRENT )
then

//This will activate for all Accounts
when
Account( )
then


If you really need to define which sets of rules run I'd suggest you read
about Agenda Groups in the Drools Expert documentation. Other techniques
are possible but this is the simplest. To understand how rules authored in
Guvnor behave it is important to understand the underlying engine,
drools-expert.

With kind regards,

Mike

On 25 June 2012 11:27, abhinay_agarwal  wrote:

> i m pretty new to this tool..ve started using it a few days ago...
>
> now wat i need to do is to create rules for a bank account..
>
> i ve different rules for opening a savings account and different for
> creating a current account..
> and der are some rules which sud be satisfied by both the
> customers..(common
> rules)
>
>
> for ex : if rule1 and rule2 are common rules
>
> rule 3 and rule 4 for opening a savings a/c
> rule 5 and rule 6 for opening a current a/c
>
> For savings a/c and current a/c i created two different packages and
> created
> rules in dem..
>
> Now wat do i do for the common rules and how do i maintain the flow that
> 1st
> rule1 sud b checked then rule 2..den either rule3/4 sud b checked n
> likewise..
>
> hope you understand my question..if any doubts..please ask..m new to this
> tool..dun ve much idea so plz b as explanatory as you can while explaining
> !!!
>
> tnxx in advance !! :)
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223.html
> Sent from the Drools: User forum 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


[rules-users] Drools-guvnor simple example Help

2012-06-25 Thread abhinay_agarwal
i m pretty new to this tool..ve started using it a few days ago... 

now wat i need to do is to create rules for a bank account.. 

i ve different rules for opening a savings account and different for
creating a current account.. 
and der are some rules which sud be satisfied by both the customers..(common
rules) 


for ex : if rule1 and rule2 are common rules 

rule 3 and rule 4 for opening a savings a/c 
rule 5 and rule 6 for opening a current a/c 

For savings a/c and current a/c i created two different packages and created
rules in dem.. 

Now wat do i do for the common rules and how do i maintain the flow that 1st
rule1 sud b checked then rule 2..den either rule3/4 sud b checked n
likewise.. 

hope you understand my question..if any doubts..please ask..m new to this
tool..dun ve much idea so plz b as explanatory as you can while explaining
!!! 

tnxx in advance !! :) 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223.html
Sent from the Drools: User forum 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] drools guvnor 5.4 final deployment error

2012-06-15 Thread domingo
Hi,
I am trying to deploy drools guvnor 5.4 war into jboss5.1.0.GA apps server,
but i got the following error...
..

caused by: java.lang.ClassNotFoundException:
javax.validation.MessageInterpolato
$Context
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseCl

help will be appreciated...
thanks,


-
with kind regards,

--
View this message in context: 
http://drools.46999.n3.nabble.com/drools-guvnor-5-4-final-deployment-error-tp4018000.html
Sent from the Drools: User forum 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] Drools Guvnor - validate a rule results in "Unable to Analyse Expression"

2012-04-27 Thread Michael Anstis
Can you create a JIRA https://issues.jboss.org/browse/GUVNOR and attach a
repository export please?

On 25 April 2012 13:57, FlyingEagle wrote:

> Hi folks,
>
> I have defined some rules in Eclipse and tested with JUnit tests and
> everything was fine.
> Now I defined the rules in Guvnor and while validating I get the following
> error:
>
> [CardTrapping] Unable to Analyse Expression Fraud fraud = new
> Fraud(Fraud.CARD_TRAPPING, new SSTEvent[] { $event1, $event2, $event3,
> $event4 }); fraudControl.handleFraud(fraud);: [Error: expected type:
> com.wn.fraud.droolstest.model.SSTEvent; but found:
> com.wn.fraud.droolstest.model.SSTEvent] [Near : {... SSTEvent[] { $event1,
> $event2, $event3, $event4 }) }] ^ [Line: 1, Column: 70]
>
> I have imported my data model, before creating the rules, therefor for the
> type SSTEvent an import is defined. But it seems, that the type SSTEvent
> exists with different versions?
>
> I have this problem for each rule, when I'm using the SSTEvent type in the
> "then" case.
>
> Here the complete rule defintion:
>
> package com.wn.fraud.droolstest
>
> import com.wn.fraud.droolstest.model.Fraud;
> import com.wn.fraud.droolstest.model.FraudControl;
> import com.wn.fraud.droolstest.model.SSTEvent;
>
> global FraudControl fraudControl;
>
> rule "CardTrapping"
>when
>$event1 : SSTEvent ( eventNumber == SSTEvent.CARD_JAMMED ) from
> entry-point "device-event-stream"
>$event2 : SSTEvent ( this after [ 0s, 30s ] $event1,
> eventNumber == SSTEvent.IN_SERVICE,
> deviceId == $event1.deviceId,
> branchName == $event1.branchName ) from entry-point
> "device-event-stream"
>$event3 : SSTEvent ( this after [ 0s, 30s ] $event2,
> eventNumber == SSTEvent.CARD_JAMMED,
> deviceId == $event1.deviceId,
> branchName == $event1.branchName ) from entry-point
> "device-event-stream"
>$event4 : SSTEvent ( this after [ 0s, 30s ] $event3,
> eventNumber == SSTEvent.IN_SERVICE,
> deviceId == $event1.deviceId,
> branchName == $event1.branchName ) from entry-point
> "device-event-stream"
>then
>// inform fraud control
>Fraud fraud = new Fraud(Fraud.CARD_TRAPPING, new SSTEvent[] {
> $event1, $event2, $event3, $event4 });
>fraudControl.handleFraud(fraud);
> end
>
>
> Thx a lot for help!
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Guvnor-validate-a-rule-results-in-Unable-to-Analyse-Expression-tp3938096p3938096.html
> Sent from the Drools: User forum 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


[rules-users] Drools Guvnor - validate a rule results in "Unable to Analyse Expression"

2012-04-25 Thread FlyingEagle
Hi folks,

I have defined some rules in Eclipse and tested with JUnit tests and
everything was fine.
Now I defined the rules in Guvnor and while validating I get the following
error:

[CardTrapping] Unable to Analyse Expression Fraud fraud = new
Fraud(Fraud.CARD_TRAPPING, new SSTEvent[] { $event1, $event2, $event3,
$event4 }); fraudControl.handleFraud(fraud);: [Error: expected type:
com.wn.fraud.droolstest.model.SSTEvent; but found:
com.wn.fraud.droolstest.model.SSTEvent] [Near : {... SSTEvent[] { $event1,
$event2, $event3, $event4 }) }] ^ [Line: 1, Column: 70]

I have imported my data model, before creating the rules, therefor for the
type SSTEvent an import is defined. But it seems, that the type SSTEvent
exists with different versions?

I have this problem for each rule, when I'm using the SSTEvent type in the
"then" case.

Here the complete rule defintion:

package com.wn.fraud.droolstest

import com.wn.fraud.droolstest.model.Fraud;
import com.wn.fraud.droolstest.model.FraudControl;
import com.wn.fraud.droolstest.model.SSTEvent;

global FraudControl fraudControl;

rule "CardTrapping"
when
$event1 : SSTEvent ( eventNumber == SSTEvent.CARD_JAMMED ) from
entry-point "device-event-stream"
$event2 : SSTEvent ( this after [ 0s, 30s ] $event1, 
 eventNumber == SSTEvent.IN_SERVICE,
 deviceId == $event1.deviceId,
 branchName == $event1.branchName ) from entry-point
"device-event-stream"
$event3 : SSTEvent ( this after [ 0s, 30s ] $event2, 
 eventNumber == SSTEvent.CARD_JAMMED,
 deviceId == $event1.deviceId,
 branchName == $event1.branchName ) from entry-point
"device-event-stream"
$event4 : SSTEvent ( this after [ 0s, 30s ] $event3, 
 eventNumber == SSTEvent.IN_SERVICE,
 deviceId == $event1.deviceId,
 branchName == $event1.branchName ) from entry-point
"device-event-stream"
then
// inform fraud control
Fraud fraud = new Fraud(Fraud.CARD_TRAPPING, new SSTEvent[] {
$event1, $event2, $event3, $event4 });
fraudControl.handleFraud(fraud);
end 


Thx a lot for help!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-validate-a-rule-results-in-Unable-to-Analyse-Expression-tp3938096p3938096.html
Sent from the Drools: User forum 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] Drools Guvnor 5.0.1 - Memory Usage Tuning

2012-03-02 Thread tdakanalis
Hi again,

I have collect some more information regarding the problem I mentioned in my
previous post. I take a thread dump during the compilation process and as I
can see the thread that makes the compilation is the following:

"http-8080-20" daemon prio=10 tid=0x7f445054d800 nid=0x6abb runnable
[0x7f444db7f000]
   java.lang.Thread.State: RUNNABLE
at
org.eclipse.jdt.core.compiler.CharOperation.equals(CharOperation.java:1641)
at
org.eclipse.jdt.internal.compiler.util.HashtableOfPackage.put(HashtableOfPackage.java:69)
at
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.addNotFoundPackage(PackageBinding.java:45)
at
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getPackage(PackageBinding.java:102)
at
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:119)
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:147)
at
org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:701)
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:376)
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:420)
at
org.drools.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:351)
at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:51)
at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.java:389)
at
org.drools.compiler.DialectCompiletimeRegistry.compileAll(DialectCompiletimeRegistry.java:56)
at
org.drools.compiler.PackageRegistry.compileAll(PackageRegistry.java:74)
at
org.drools.compiler.PackageBuilder.compileAll(PackageBuilder.java:690)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:653)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:278)
at
org.drools.guvnor.server.contenthandler.DecisionTableXLSHandler.compile(DecisionTableXLSHandler.java:64)

Supposing that there is not any way to reduce the memory/cpu usage and the
time delay (1 hour for the compilation of 22K rules) of the compilation
process, is there any way to reduce the priority of the above thread, so
that the other threads will not be stacked, and to restore the priority
after the end of the compilation process?  

Is this the appropriate forum to ask such kind of questions? If not where
can I find some answers?
 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-0-1-Memory-Usage-Tuning-tp3786609p3793446.html
Sent from the Drools: User forum 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] Drools Guvnor 5.0.1 - Memory Usage Tuning

2012-02-29 Thread tdakanalis
Hi,

We're using Drools Guvnor 5.0.1 in a production environment, running on
Tomcat 6.  We're experiencing permgen issues, particularly when doing large
imports of rules, archiving, or compilation of rules.

Following permgen exceptions, we increased the permgen to :
-XX:MaxPermSize=2048M -ms3192M -mx3192M.

This sustained us for a while, but our assets are ever growing, and again
we're exceeding the permgen space allocated.  Can someone recommend
appropriate settings/configuration in order to reduce the memory/cpu usage?

Assets in Guvnor:
~ 21K rules in 11 decision tables (.xls) in 1 package

Thanks,

Themistoklis Dakanalis

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-0-1-Memory-Usage-Tuning-tp3786609p3786609.html
Sent from the Drools: User forum 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] Drools : Guvnor issue on tomcat when attempting to use Oracle DB as rule store

2012-02-20 Thread Kevin Kelleher
Thanks Mantis,

Working now .. I just increased the heap size ... so I was wrong, it was the
cause - not the symptom.

Regards,
Kevin

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-issue-on-tomcat-when-attempting-to-use-Oracle-DB-as-rule-store-tp3754398p3760644.html
Sent from the Drools: User forum 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] Drools : Guvnor issue on tomcat when attempting to use Oracle DB as rule store

2012-02-17 Thread Kevin Kelleher
Hi Mantis,

Thanks for the response 

I'm pretty sure that the "out of memory" is a symptom not the cause. 

The console give a warning  "SEVERE: The web application [/guvnor] appears
to have started a thread named [Timer-0] but has failed to stop it. This is
very likely to create a memory leak." Hence I wasnt surprised to see this
error.

I'll increase the heap size anyway once back at work and see where I am. 

Regards,
Kevin

 


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-issue-on-tomcat-when-attempting-to-use-Oracle-DB-as-rule-store-tp3754398p3754641.html
Sent from the Drools: User forum 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] Drools : Guvnor issue on tomcat when attempting to use Oracle DB as rule store

2012-02-17 Thread Michael Anstis
The localhost log shows an Out Of Memory error. Have you tried increasing
the heap size?

sent on the move

On 17 Feb 2012 17:36, "Kevin Kelleher"  wrote:

> Hi,
>
> First time post on drools ...
>
> I installed Guvnor 5.3.0 on tomcat 6.0.35. When I used the default
> (Jackrabbit) datastore all worked fine.
>
> I next went about trying to change guvnor to use an external RDBMS (Oracle
> 10g) . I generated a new repository.xml . As per reference manual I used
> the
> Repository Configuration Manager to generate a new repository.xml file.
> However on startup with new repository.xml file, I get the following errors
> ( console, localhost & catalina).
>
> Can anyone shed some light ?
>
> thanks in advance,
> Kevin
>
> ## console - start ##
> 17-Feb-2012 17:14:20 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performanc
> e in production environments was not found on the java.library.path:
> C:\Progra~2
>
> \Java\JDK15~1.0_0\bin;.;C:\windows\system32;C:\windows;C:\oracle\product\10.2.0\
>
> client_1\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\
> System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI
> Technologies\ATI.ACE
> \Core-Static;C:\Progra~2\Java\JDK15~1.0_0\bin;C:\apache-ant-1.7.0\bin
> 17-Feb-2012 17:14:20 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 17-Feb-2012 17:14:20 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 267 ms
> 17-Feb-2012 17:14:20 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 17-Feb-2012 17:14:20 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
> 17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor host-manager.xml
> 17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> 17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive guvnor.war
> INFO  17-02 17:14:23,713 (RulesRepositoryConfigurator.java:getInstance:46)
>
>
>  Creating an instance of the RulesRepositoryConfigurator.
> 17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext start
> SEVERE: Context [/guvnor] startup failed due to previous errors
> INFO  17-02 17:14:24,681 (LoggingHelper.java:info:49)Removing
> listeners
> Removing all listeners...
> Listeners removed...
> INFO  17-02 17:14:24,681 (LoggingHelper.java:info:49)Shutting down
> repositor
> y
> INFO  17-02 17:14:24,681 (RulesRepositoryConfigurator.java:shutdown:172)
>  SHUTDOWN RULES CONFIG
> 17-Feb-2012 17:14:24 org.apache.catalina.loader.WebappClassLoader
> clearReference
> sThreads
> SEVERE: The web application [/guvnor] appears to have started a thread
> named
> [Ti
> mer-0] but has failed to stop it. This is very likely to create a memory
> leak.
> 17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory docs
> 17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory examples
> 17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory ROOT
> 17-Feb-2012 17:14:25 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 17-Feb-2012 17:14:25 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 17-Feb-2012 17:14:25 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/0  config=null
> 17-Feb-2012 17:14:25 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 4457 ms
> ## console - end ##
>
> ## localhost log -start 
> 17-Feb-2012 17:14:12 org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextDestroyed()
> 17-Feb-2012 17:14:12 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextDestroyed()
> 17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener instance of
> class org.jboss.seam.servlet.SeamListener
> org.jboss.seam.InstantiationException: Could not instantiate Seam
> component:
> repositoryConfiguration
>at org.jboss.seam.Component.newInstance(Component.java:2170)
>at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
>at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
>at
>
> org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
>at org.jboss.seam.init.Initialization.init(Initialization.j

[rules-users] Drools : Guvnor issue on tomcat when attempting to use Oracle DB as rule store

2012-02-17 Thread Kevin Kelleher
Hi,

First time post on drools ... 

I installed Guvnor 5.3.0 on tomcat 6.0.35. When I used the default
(Jackrabbit) datastore all worked fine.

I next went about trying to change guvnor to use an external RDBMS (Oracle
10g) . I generated a new repository.xml . As per reference manual I used the
Repository Configuration Manager to generate a new repository.xml file.
However on startup with new repository.xml file, I get the following errors
( console, localhost & catalina).

Can anyone shed some light ? 

thanks in advance,
Kevin

## console - start ##
17-Feb-2012 17:14:20 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performanc
e in production environments was not found on the java.library.path:
C:\Progra~2
\Java\JDK15~1.0_0\bin;.;C:\windows\system32;C:\windows;C:\oracle\product\10.2.0\
client_1\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\
System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI
Technologies\ATI.ACE
\Core-Static;C:\Progra~2\Java\JDK15~1.0_0\bin;C:\apache-ant-1.7.0\bin
17-Feb-2012 17:14:20 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17-Feb-2012 17:14:20 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 267 ms
17-Feb-2012 17:14:20 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17-Feb-2012 17:14:20 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
17-Feb-2012 17:14:20 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive guvnor.war
INFO  17-02 17:14:23,713 (RulesRepositoryConfigurator.java:getInstance:46)


 Creating an instance of the RulesRepositoryConfigurator.
17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext start
SEVERE: Context [/guvnor] startup failed due to previous errors
INFO  17-02 17:14:24,681 (LoggingHelper.java:info:49)Removing
listeners
Removing all listeners...
Listeners removed...
INFO  17-02 17:14:24,681 (LoggingHelper.java:info:49)Shutting down
repositor
y
INFO  17-02 17:14:24,681 (RulesRepositoryConfigurator.java:shutdown:172)
 SHUTDOWN RULES CONFIG
17-Feb-2012 17:14:24 org.apache.catalina.loader.WebappClassLoader
clearReference
sThreads
SEVERE: The web application [/guvnor] appears to have started a thread named
[Ti
mer-0] but has failed to stop it. This is very likely to create a memory
leak.
17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
17-Feb-2012 17:14:25 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
17-Feb-2012 17:14:25 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17-Feb-2012 17:14:25 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17-Feb-2012 17:14:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/0  config=null
17-Feb-2012 17:14:25 org.apache.catalina.startup.Catalina start
INFO: Server startup in 4457 ms
## console - end ##

## localhost log -start 
17-Feb-2012 17:14:12 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
17-Feb-2012 17:14:12 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
17-Feb-2012 17:14:24 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.jboss.seam.servlet.SeamListener
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
repositoryConfiguration
at org.jboss.seam.Component.newInstance(Component.java:2170)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at
org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143)
at org.jboss.seam.init.Initialization.init(Initialization.java:744)
at
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas

Re: [rules-users] Drools Guvnor

2012-02-09 Thread Michael Anstis
Download the WAR most applicable to the web/application server on which you
wish to run it.

Install according to the web/application server on which you are deploying
it.

On Tomcat this, for me, is simply using the Manager Application to install
the Tomcat WAR.

sent on the move

On 9 Feb 2012 21:30, "olfa"  wrote:

> Hi,
>
> how to install Guvnor?
>
> thank you
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Guvnor-tp3730872p3730872.html
> Sent from the Drools: User forum 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


[rules-users] Drools Guvnor

2012-02-09 Thread olfa
Hi,

how to install Guvnor?

thank you

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-tp3730872p3730872.html
Sent from the Drools: User forum 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] Drools Guvnor 5.1 in WAS 6.1 server

2012-01-18 Thread arup
Hi,
I'm not able to open this link to adjust guvnor settings. 

https://zuxho14:9045/ibm/help/index.jsp?topic=/com.ibm.ws.console.appmanagement/urun_rapp_classload.html

Looks like the site is not available now. Please share some alternative
link. or if u have the informations shared in this link please share it.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-1-in-WAS-6-1-server-tp3669083p3671587.html
Sent from the Drools: User forum 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] Drools Guvnor 5.1 in WAS 6.1 server

2012-01-18 Thread arup
Thanks a lot Jervis Liu. I followed the link provided by u. But one of the
link(to adjust the Guvnor settings) is not working. please provide me some
info about this. I need to complete this task by 2day. anyone having
experiance in installing Guvnor in WAS 6.1 please help. 
Thanks in advance

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-1-in-WAS-6-1-server-tp3669083p3671520.html
Sent from the Drools: User forum 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] Drools Guvnor 5.1 in WAS 6.1 server

2012-01-18 Thread Jervis Liu
This is a bit out-of-date, not sure if it helps: 
https://community.jboss.org/wiki/DroolsGuvnor50Installation

Cheers,
Jervis

On 2012/1/18 20:32, arup wrote:
> Hi all,
>   I'm new to Drools and facing some difficulties to run Guvnor in websphere
> 6.1 server. I'm not finding any specific doc or guideline that i can follow
> to deploy Guvnor 5.1 in WAS 6.1 server. Can you please guide me step by step
> to deploy guvnor in WAS. It's very urgent and I need to do it as soon as
> possible. please help. Thanks in advance...
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-Guvnor-5-1-in-WAS-6-1-server-tp3669083p3669083.html
> Sent from the Drools: User forum 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


[rules-users] Drools Guvnor 5.1 in WAS 6.1 server

2012-01-18 Thread arup
Hi all,
 I'm new to Drools and facing some difficulties to run Guvnor in websphere
6.1 server. I'm not finding any specific doc or guideline that i can follow
to deploy Guvnor 5.1 in WAS 6.1 server. Can you please guide me step by step
to deploy guvnor in WAS. It's very urgent and I need to do it as soon as
possible. please help. Thanks in advance...

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-5-1-in-WAS-6-1-server-tp3669083p3669083.html
Sent from the Drools: User forum 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] Drools GUVNOR username "guest"

2011-12-27 Thread Cristiano Gavião

http://docs.jboss.org/drools/release/5.2.0.Final/drools-guvnor-docs/html/ch16.html

On 27/12/11 06:48, starfish15 wrote:
> Hi,
>
> By Default, it seems the drools GUVNOR username is taken as guest. I am not
> able to locate the place where the same has been mentioned. Need to modify
> the default credentials itself.
>
> I would appreciate if someone could assist me with the same.
>
> Thanks for the help in advance.
>
> Regards,
> Starfish
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Drools-GUVNOR-username-guest-tp3614077p3614077.html
> Sent from the Drools: User forum 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


[rules-users] Drools GUVNOR username "guest"

2011-12-27 Thread starfish15
Hi,
 
By Default, it seems the drools GUVNOR username is taken as guest. I am not
able to locate the place where the same has been mentioned. Need to modify
the default credentials itself.

I would appreciate if someone could assist me with the same.

Thanks for the help in advance.

Regards,
Starfish

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-GUVNOR-username-guest-tp3614077p3614077.html
Sent from the Drools: User forum 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] Drools Guvnor API information?

2011-12-12 Thread srinivasasanda
Hi Vikas,

Could you suggest me where i can find that Sardine.jar and other jar files.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-API-information-tp2471798p3581543.html
Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread ANJALI
Thank u
ya surely ill share if im done with my task

Regards,
Anjali


--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3492713.html
Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread Michael Anstis
hehe, me and Tiho have had a chat and I was getting horribly mixed up. BPMN
is in the land of jBPM.

Best ignore what I've said about the code not being maintained - but feel
free to join Tiho and gang on #jbpm.

Guvnor stores the jBPM asset, and the problem will be to do with the object
not being refreshed.

2011/11/8 Tihomir Surdilovic 

>  On 11/8/11 6:40 AM, Michael Anstis wrote:
>
> If you develop a fix we'd obviously love to have you contribute it back
>
> Why not consider becoming the maintainer of the BPMN2 stuff? :)
>
> The integration of jBPM into Guvnor is heavily tied to development that is
> done within the jBPM project. I am really not sure what Michael means here
> by "becoming the maintainer of the BPMN2 stuff",  but of course anyone is
> more than welcome to contribute. Catch us on #jbpm and the jbpm mailing
> lists also if you wish to do that.
> Thanks.
>
>
> On 8 November 2011 11:36, ANJALI  wrote:
>
>> Thanks a lot for ur info
>> ill try to change the code
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489981.html
>>  Sent from the Drools: User forum 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 
> listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Tihomir Surdilovic

On 11/8/11 6:40 AM, Michael Anstis wrote:
If you develop a fix we'd obviously love to have you contribute it 
back


Why not consider becoming the maintainer of the BPMN2 stuff? :)
The integration of jBPM into Guvnor is heavily tied to development that 
is done within the jBPM project. I am really not sure what Michael means 
here by "becoming the maintainer of the BPMN2 stuff",  but of course 
anyone is more than welcome to contribute. Catch us on #jbpm and the 
jbpm mailing lists also if you wish to do that.

Thanks.


On 8 November 2011 11:36, ANJALI > wrote:


Thanks a lot for ur info
ill try to change the code



--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489981.html
Sent from the Drools: User forum 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


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


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
A Guvnor JIRA.

2011/11/8 Tihomir Surdilovic 

>  On 11/8/11 6:59 AM, Michael Anstis wrote:
>
> Yes, I know that :)
>
> However, in the grand scheme of open JIRAs and (I assume) the importance
> to the OP of having this fixed as soon as possible them looking themselves
> might be the quickest option. Many, many other asset types stored in Guvnor
> work fine - however it is obvious the screens re-load, thus refreshing the
> asset object, following a save and check-in.
>
> Whatever mechanism is in place for BPMN2 Assets is not working quite the
> way it should.
>
> It works the exact same way as any other assets in Guvnor. To Guvnor a
> .bpmn2 asset is the same as a .drl, or a .dsl, etc. Could be that if using
> the standalone editor servlet the user should place the generated content
> inside of an iframe would allow for an automatic refresh of the iframe
> content after a save operation..but again this has nothing to do with the
> actual actual editor that creates the content, but with how Guvnor handles
> storing of assets.
>
>  I did suggest a JIRA could be raised, but we're not likely to look at it
> any time soon.
>
> If your assumption from the beginning is that this is an issue only with
> storing of bpmn2 assets should the user create a guvnor or a jbpm jira?
>
>
> With kind regards,
>
> Mike
>
> 2011/11/8 Tihomir Surdilovic 
>
>>  The jBPM Web Designer does not store any assets itself, but delegates to
>> Guvnor to store them, as such I think you cannot just say "go figure out
>> some code which could be broken" but look at possible Guvnor issue here. A
>> test scenario would be nice to have that can reproduce the issue, as well
>> as trying to do this with other assets not just BPMN2 processes. I assume
>> you are storing your assets embedded into your app via the standalone
>> servlet, which _is_ Guvnor code ;)
>>
>> Thanks.
>>
>> On 11/8/11 6:20 AM, Michael Anstis wrote:
>>
>> Great.
>>
>> So your options are: raise a JIRA we will look at at some time, or have a
>> look in the code yourself :)
>>
>> The problem is as I surmised; when saving the object representing the
>> BPMN2 process it needs to be re-loaded\refreshed so subsequent optimistic
>> lock checks succeed.
>>
>> On 8 November 2011 11:16, ANJALI  wrote:
>>
>>> If i use close/re-open everything is fine
>>>
>>> --
>>> View this message in context:
>>> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
>>>  Sent from the Drools: User forum 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 
>> listrules-users@lists.jboss.orghttps://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 
> listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Tihomir Surdilovic

On 11/8/11 6:59 AM, Michael Anstis wrote:

Yes, I know that :)

However, in the grand scheme of open JIRAs and (I assume) the 
importance to the OP of having this fixed as soon as possible them 
looking themselves might be the quickest option. Many, many other 
asset types stored in Guvnor work fine - however it is obvious the 
screens re-load, thus refreshing the asset object, following a save 
and check-in. 
Whatever mechanism is in place for BPMN2 Assets is not working quite 
the way it should.
It works the exact same way as any other assets in Guvnor. To Guvnor a 
.bpmn2 asset is the same as a .drl, or a .dsl, etc. Could be that if 
using the standalone editor servlet the user should place the generated 
content inside of an iframe would allow for an automatic refresh of the 
iframe content after a save operation..but again this has nothing to do 
with the actual actual editor that creates the content, but with how 
Guvnor handles storing of assets.
I did suggest a JIRA could be raised, but we're not likely to look at 
it any time soon.
If your assumption from the beginning is that this is an issue only with 
storing of bpmn2 assets should the user create a guvnor or a jbpm jira?


With kind regards,

Mike

2011/11/8 Tihomir Surdilovic >


The jBPM Web Designer does not store any assets itself, but
delegates to Guvnor to store them, as such I think you cannot just
say "go figure out some code which could be broken" but look at
possible Guvnor issue here. A test scenario would be nice to have
that can reproduce the issue, as well as trying to do this with
other assets not just BPMN2 processes. I assume you are storing
your assets embedded into your app via the standalone servlet,
which _is_ Guvnor code ;)

Thanks.

On 11/8/11 6:20 AM, Michael Anstis wrote:

Great.

So your options are: raise a JIRA we will look at at some time,
or have a look in the code yourself :)

The problem is as I surmised; when saving the object representing
the BPMN2 process it needs to be re-loaded\refreshed so
subsequent optimistic lock checks succeed.

On 8 November 2011 11:16, ANJALI mailto:swathi.2...@gmail.com>> wrote:

If i use close/re-open everything is fine

--
View this message in context:

http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
Sent from the Drools: User forum 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



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




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


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


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Yes, I know that :)

However, in the grand scheme of open JIRAs and (I assume) the importance to
the OP of having this fixed as soon as possible them looking themselves
might be the quickest option. Many, many other asset types stored in Guvnor
work fine - however it is obvious the screens re-load, thus refreshing the
asset object, following a save and check-in. Whatever mechanism is in place
for BPMN2 Assets is not working quite the way it should. I did suggest a
JIRA could be raised, but we're not likely to look at it any time soon.

With kind regards,

Mike

2011/11/8 Tihomir Surdilovic 

>  The jBPM Web Designer does not store any assets itself, but delegates to
> Guvnor to store them, as such I think you cannot just say "go figure out
> some code which could be broken" but look at possible Guvnor issue here. A
> test scenario would be nice to have that can reproduce the issue, as well
> as trying to do this with other assets not just BPMN2 processes. I assume
> you are storing your assets embedded into your app via the standalone
> servlet, which _is_ Guvnor code ;)
>
> Thanks.
>
> On 11/8/11 6:20 AM, Michael Anstis wrote:
>
> Great.
>
> So your options are: raise a JIRA we will look at at some time, or have a
> look in the code yourself :)
>
> The problem is as I surmised; when saving the object representing the
> BPMN2 process it needs to be re-loaded\refreshed so subsequent optimistic
> lock checks succeed.
>
> On 8 November 2011 11:16, ANJALI  wrote:
>
>> If i use close/re-open everything is fine
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
>>  Sent from the Drools: User forum 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 
> listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Tihomir Surdilovic
The jBPM Web Designer does not store any assets itself, but delegates to 
Guvnor to store them, as such I think you cannot just say "go figure out 
some code which could be broken" but look at possible Guvnor issue here. 
A test scenario would be nice to have that can reproduce the issue, as 
well as trying to do this with other assets not just BPMN2 processes. I 
assume you are storing your assets embedded into your app via the 
standalone servlet, which _is_ Guvnor code ;)


Thanks.
On 11/8/11 6:20 AM, Michael Anstis wrote:

Great.

So your options are: raise a JIRA we will look at at some time, or 
have a look in the code yourself :)


The problem is as I surmised; when saving the object representing the 
BPMN2 process it needs to be re-loaded\refreshed so subsequent 
optimistic lock checks succeed.


On 8 November 2011 11:16, ANJALI > wrote:


If i use close/re-open everything is fine

--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
Sent from the Drools: User forum 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


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


Re: [rules-users] Drools guvnor issue

2011-11-08 Thread Michael Anstis
If you develop a fix we'd obviously love to have you contribute it back

Why not consider becoming the maintainer of the BPMN2 stuff? :)

On 8 November 2011 11:36, ANJALI  wrote:

> Thanks a lot for ur info
> ill try to change the code
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489981.html
> Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread ANJALI
Thanks a lot for ur info
ill try to change the code 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489981.html
Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Great.

So your options are: raise a JIRA we will look at at some time, or have a
look in the code yourself :)

The problem is as I surmised; when saving the object representing the BPMN2
process it needs to be re-loaded\refreshed so subsequent optimistic lock
checks succeed.

On 8 November 2011 11:16, ANJALI  wrote:

> If i use close/re-open everything is fine
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
> Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread ANJALI
If i use close/re-open everything is fine

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489938.html
Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread Michael Anstis
Can you confirm if you *close* and *re-open* you are able to *save* again?

This would confirm that (somehow) the asset needs to be programmatically
re-opened.

Not knowing the BPMN2 editor code-base, you might need to look into it and
fix a bug.

You could raise a JIRA too, but there's no promise that it'd get fixed by
us any time soon.

On 8 November 2011 09:41, ANJALI  wrote:

> thanks for ur response
>
> as i said u earlier i have integrated drools into my application
> im getting *save all changes* and *close* option only so,i dnt have scope
> to
> reload my page
> is there any other alternate?
>
> Thanks in advance,
> Anjali
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489762.html
> Sent from the Drools: User forum 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] Drools guvnor issue

2011-11-08 Thread ANJALI
thanks for ur response

as i said u earlier i have integrated drools into my application
im getting *save all changes* and *close* option only so,i dnt have scope to
reload my page 
is there any other alternate?

Thanks in advance,
Anjali

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-guvnor-issue-tp3489376p3489762.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


  1   2   3   >