Drools Maven repository error
by Wilson O Ojwang
All,
I am getting the following error while updating drools 4.0.7 repo. using
the following ant task
<artifact:dependencies pathId="dependency.class.path">
<dependency groupId="org.drools" artifactId="drools-repository"
version="4.0.7"/>
</artifact:dependencies>
OR using
<artifact:dependencies pathId="dependency.class.path">
<dependency groupId="org.drools" artifactId="drools-core"
version="4.0.7"/>
<dependency groupId="org.drools" artifactId="drools-compiler"
version="4.0.7"/>
</artifact:dependencies>
======== Here is the error ==============
ant
Buildfile: build.xml
[artifact:dependencies] Downloading:
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.pom from central
[artifact:dependencies] Downloading:
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.pom from central
[artifact:dependencies] Downloading:
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.jar from central
[artifact:dependencies] Downloading:
org/drools/drools-repository/4.0.7/drools-repository-4.0.7.jar from central
[artifact:dependencies] An error has occurred while processing the Maven
artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.drools:drools-repository:jar:4.0.7
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the
project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file
-DgroupId=org.drools -DartifactId=drools-repository -Dversion=4.0.7
-Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository
you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file
-DgroupId=org.drools -DartifactId=drools-repository -Dversion=4.0.7
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) org.apache.maven:super-pom:jar:2.0
[artifact:dependencies] 2) org.drools:drools-repository:jar:4.0.7
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] org.apache.maven:super-pom:jar:2.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
BUILD FAILED
/home/wojwang/workspace_5350/HibernateDrools/build.xml:13: Unable to
resolve artifact: Missing:
----------
1) org.drools:drools-repository:jar:4.0.7
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.drools
-DartifactId=drools-repository -Dversion=4.0.7 -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.drools
-DartifactId=drools-repository -Dversion=4.0.7 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) org.drools:drools-repository:jar:4.0.7
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
=============================
Thanks for your help.
Regards
Wilson
18 years
Security, ldap and tomcat
by jbossruler
Hi,
I deployed Drools onto Tomcat and I am trying to figure out how to get
security to work. I want to use LDAP but I have no clue where to begin. All
of the tutorials I see make use of JBoss AS. I do not have the option of
using JBoss AS. Can somebody point me in the right direction or let me know
how I can modify the components.xml file or the repository.xml file?
What are the options besides using LDAP for security?
I am using Drools 4.04
Really appreciate your help!
--
View this message in context: http://www.nabble.com/Security%2C-ldap-and-tomcat-tp17693453p17693453.html
Sent from the drools - user mailing list archive at Nabble.com.
18 years
Re: [rules-users] JSR-94 and JEE integration
by Knoster
thank´s for your quick answer.
well, in witch context does your 'RuleLoader' reside? do u use ejbs for
access?
Corneil du Plessis wrote:
> We use JSR-94 and have a 'RuleLoader' that uses our rule definitions and a
> velocity script to generate the rules and creates a ruleset from that.
>
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org
> [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Hehl, Thomas
> Sent: 10 June 2008 13:48
> To: 'Rules Users List'
> Subject: RE: [rules-users] JSR-94 and JEE integration
>
> I know nothing about jsr-94, but we use drools in a webapp, servlet side
> only.
>
> It seems to me you could simply put your rules into a stateless session
> bean.
>
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org
> [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Knoster
> Sent: Tuesday, June 10, 2008 4:46 AM
> To: rules-users(a)lists.jboss.org
> Subject: [rules-users] JSR-94 and JEE integration
>
> Hi,
> i would like to integrate drools in jee. to be more flexible i was
loking at
> jsr-94. as i suppose jsr-94 only addresses j2se environment, my question
is:
> how it is possible to use drools with this specs from an ejb3 session bean?
> my thoughts about this brought me to the idea of injecting the
> rules-administrator via resource annotation to prevent the container always
> doing a class.forname(..) lookup. to define a j2se resource in a jee
> container a jca might be the best way to integrate and to assure the jee
> specs will not be violated. but this seams a lot of overhead to me.
> how do u use drools in your jee applications when not relying on the brms?
> any help or ideas on integrating drools with jsr-94 in jee would be great.
>
> Knosta
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
18 years
Re: [rules-users] JSR-94 and JEE integration
by Knoster
to access the engine from a servlet might not be the problem, as in
servlets some attributes are managed as singletons. but with ejb3 there
are no singletons, as i know.
Hehl, Thomas wrote:
> I know nothing about jsr-94, but we use drools in a webapp, servlet side
> only.
>
> It seems to me you could simply put your rules into a stateless session
> bean.
>
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org
> [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Knoster
> Sent: Tuesday, June 10, 2008 4:46 AM
> To: rules-users(a)lists.jboss.org
> Subject: [rules-users] JSR-94 and JEE integration
>
> Hi,
> i would like to integrate drools in jee. to be more flexible i was loking
> at jsr-94. as i suppose jsr-94 only addresses j2se environment, my
> question is: how it is possible to use drools with this specs from an ejb3
> session bean? my thoughts about this brought me to the idea of injecting
> the rules-administrator via resource annotation to prevent the container
> always doing a class.forname(..) lookup. to define a j2se resource in a
> jee container a jca might be the best way to integrate and to assure the
> jee specs will not be violated. but this seams a lot of overhead to me.
> how do u use drools in your jee applications when not relying on the brms?
> any help or ideas on integrating drools with jsr-94 in jee would be great.
>
> Knosta
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
18 years
Accessing the fact model class files
by Felbecker, Tobias
Hi all, I create a *.pkg package with the BRMS and I want to access the
class files from my fact model at runtime. I coud't find a way to do so
in the org.drools.rule.Package API. Is there a way to do so?
Thx,
Tobi
18 years
re[rules-users] -use of an object used in a previous rule
by Mounir Chattou
Hi,
I have a problem : a fact is inserted in a rule but when I cast for it in
another, nothing happened, here is a simplified code to understand better :
rule "eco"
ruleflow-group "economic"
salience 20
when
a : Alpha()
then
Beta beta = new Beta()
beta.add(a)
beta.setStatus("eco") // the property status is setted
insert(beta)
end
rule "fl eco"
ruleflow-group "economic"
salience 20
when
f : Fl ()
then
Fl fl = new Fl();
fl.add(f);
fl.setStatus("eco") // the property status is setted
insert(fl)
end
rule "pack eco"
ruleflow-group "economic"
when
f : Fl(status == "eco") //those two conditions are never casted
... while I inserted the facts
a : Alpha(status == "eco")
then
end
Could someone explain me why ?
--
View this message in context: http://www.nabble.com/re-use-of-an-object-used-in-a-previous-rule-tp17750...
Sent from the drools - user mailing list archive at Nabble.com.
18 years
eval question
by Mike D
I'm close, but no cigar...
I have a header record amount and did an accumulate on a detail amount. The
sum of the detail can be within a percent of the total.
The $valueUsAmt is the header, and the totValue is the sum of lines...
What I need to do is to take the valueUsAmt * .0001 and if that is >= the
abs value, all is good.
eval($valueUsAmt.subtract($totValue).abs().compareTo(???) <= 0)
It's the * .0001 that is giving me the problem. Any help would be
appreciated.
Thanks!
--
View this message in context: http://www.nabble.com/eval-question-tp17647309p17647309.html
Sent from the drools - user mailing list archive at Nabble.com.
18 years
RE: [rules-users] JSR-94 and JEE integration
by Hehl, Thomas
I know nothing about jsr-94, but we use drools in a webapp, servlet side
only.
It seems to me you could simply put your rules into a stateless session
bean.
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Knoster
Sent: Tuesday, June 10, 2008 4:46 AM
To: rules-users(a)lists.jboss.org
Subject: [rules-users] JSR-94 and JEE integration
Hi,
i would like to integrate drools in jee. to be more flexible i was loking
at jsr-94. as i suppose jsr-94 only addresses j2se environment, my
question is: how it is possible to use drools with this specs from an ejb3
session bean? my thoughts about this brought me to the idea of injecting
the rules-administrator via resource annotation to prevent the container
always doing a class.forname(..) lookup. to define a j2se resource in a
jee container a jca might be the best way to integrate and to assure the
jee specs will not be violated. but this seams a lot of overhead to me.
how do u use drools in your jee applications when not relying on the brms?
any help or ideas on integrating drools with jsr-94 in jee would be great.
Knosta
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
18 years
JSR-94 and JEE integration
by Knoster
Hi,
i would like to integrate drools in jee. to be more flexible i was loking
at jsr-94. as i suppose jsr-94 only addresses j2se environment, my
question is: how it is possible to use drools with this specs from an ejb3
session bean? my thoughts about this brought me to the idea of injecting
the rules-administrator via resource annotation to prevent the container
always doing a class.forname(..) lookup. to define a j2se resource in a
jee container a jca might be the best way to integrate and to assure the
jee specs will not be violated. but this seams a lot of overhead to me.
how do u use drools in your jee applications when not relying on the brms?
any help or ideas on integrating drools with jsr-94 in jee would be great.
Knosta
18 years
How to write related table dsl,dslr files
by Nagaraju runkana
Hi ,
i have some problem...
core_preference_text this my table name.Row like "VARIABLE_CODE" VARCHAR2(60
BYTE)"
i need write dsl,dslr files related data validation to the table.
1. variable_code should be unieque per enterprise_id
2. variable_code can not be updated
give me some suggestion ..how to write dsl,dslr file related two
conditions.ASAP..
=====
Chanti
18 years