[rules-users] Local repository location of Guvnor and accessing the data out of it

2010-05-28 Thread Vignesh

Hi,

I am new to Guvnor and I am aware that Guvnor will store the data in its
local repository using Derby database, Below is what i am trying to do,
I have imported a JAR file which will access and provide the data that I am
going to run against my rule,
This new rule will do some validation and depending upon the result i need
to log the defect in Guvnor's repository,
Using this persisted data in the defect table I would do my further
processing in another Drools application

I have the below questions,
What is the default location of Guvnor's repository ? (I am using Tomcat for
my deployment)
If we can store the defect data like the way i have mentioned above, how can
we access the data from the repository, is there any spl way to access it?

Thanks,
Viki

-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Local-repository-location-of-Guvnor-and-accessing-the-data-out-of-it-tp853813p853813.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Retrieving persisted data from Guvnor's repository

2010-05-28 Thread mick00

I have created a rule in Guvnor such that firing that rule will do some
validation and persist the data.I am aware that the data will be stored in
Guvnor's default repository. Is there any way to retrieve that data from
derby database? If so, can someone throw some light on how to retrieve it?

Thanks,
mick
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Retrieving-persisted-data-from-Guvnor-s-repository-tp853801p853801.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Flow Persistence with Spring Hibernate

2010-05-28 Thread xdirewolfx

Thank for the response.

Currently my application is already spring hibernate jta with data access
through hibernate session/session factory. In order to use
drools-persistence, I assume we would need to use jpa entity manager? As far
as as possible, we try to not to have 2 data access unless there is no
choice.
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Persistence-with-Spring-Hibernate-tp834330p853796.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Flow Persistence with Spring Hibernate

2010-05-28 Thread KiranP

hi there,

we r already using Drools Flow + Spring 3.0 + Hibernate JPA it works fine in
our case
any helpwill be very glad

Drools at beginning has some clutters.but as u come over it.u'll
what magnificent things they have in there

Cheer's 



-
Keep Working >>
KiranP
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Persistence-with-Spring-Hibernate-tp834330p853790.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Introspect Rules When condition

2010-05-28 Thread Mark Proctor

On 29/05/2010 01:13, Kinjal Khandhar wrote:

Hello All,

I am working on Drools Rules and need help on the below problem:

In my .drl file say:
*rule*
*when*
*Object1(..)*
*Object2(..)*
*then*
* *
*end;*


Is there a way(Drools API or any method) in which I can scan through 
my rules files and get the objects...say Object1 and Object2.


In a way I want to introspect the *when condition* objects.

If anyone has any idea,please let me know.
You can, but you'll need to use the internal api. Just get a reference 
to the rule LHS and iterate down the tree structure, you'll need to get 
a reference the internal Rule object, just mess around int the eclipse 
variable viewer and you should start to get a hang of things.


Mark


Thanks,
Kinjal


___
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] Introspect Rules When condition

2010-05-28 Thread Kinjal Khandhar
Hello All,

I am working on Drools Rules and need help on the below problem:

In my .drl file say:
*rule*
*when*
*Object1(..)*
*Object2(..)*
*then*
*   *
*end;*


Is there a way(Drools API or any method) in which I can scan through my
rules files and get the objects...say Object1 and Object2.

In a way I want to introspect the *when condition* objects.

If anyone has any idea,please let me know.

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


Re: [rules-users] error running Test Scenarios

2010-05-28 Thread Fnu Mahalakshmi
Hi,
My Ovo does have a default constructor and all the other constructor and 
methods are public.
I have uploaded the jar file and then clicked on: Save & Validate and also 
'Build Package'.
I have 2 packages with classes in my .jar file. Could that be a problem in any 
way??
When I try to run 'RunAll Test Scenarios' the tests run but the rules do not 
run and I get the same constructor not found error!
Any idea? Please help.
Could it have anything to do with the path set for the environment variables of 
Java or MVN?? I set is as per the tutorial online.

Thanks
Jillika


Today's Topics:

   1. Re: error running test scenarios (Esteban Aliverti)


--

Message: 1
Date: Fri, 28 May 2010 18:11:34 -0300
From: Esteban Aliverti 
Subject: Re: [rules-users] error running test scenarios
To: Rules Users List 
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

Can you double check that you have a public non-args constructor in Ovo
class? Did you update your jar model and recompile the package in guvnor?

Best,

2010/5/28 Fnu Mahalakshmi 

>
>
>
>  --
>
> *From:* Fnu Mahalakshmi
> *Sent:* Friday, May 28, 2010 3:43 PM
> *To:* 'rules-users-requ...@lists.jboss.org'
> *Subject:* error running test scenarios
>
>
>
>
>
> Hi,
>
>
>
>
>
> I am working on a drools application and I am getting the following error:
>
>
>
>  I import java files to my application and then create the rules + test
> scenarios to run them.
>
> Attaching a jar file of the java classes.
>
>
>
> My Test Case:
>
>
>
> Run scenario
>
>
>
>  GIVEN
>
>
>
> insert [Ovo]
>
>
>
> [TestOvoUseType]
>
> ipAddress:
>
>
>
>   useType:
>
>
>
>
>
>
>
>  EXPECT
>
>Use real date and time  Use a simulated date and time
>
>
>
>
>
>
>
>
>
> Expect rules
>
>
>
> Production Ips:
>
>  fired at least once  did not fire fired this many times: Choose...
>
>
>
>
>
> More...
>
>
>
>
>
> (configuration)
>
>  Allow these rules to fire:  Prevent these rules from firing: All rules
> may fire
>
>
>
>
>
>  (globals)
>
>
>
>
>
>  Test for checking Production Ips
>
>Title: [*ProdIp Test*]
>
> [show more info...]
>
>
>
>
>
> Rules case:
>
>
>
>
>
> WHEN
>
>
>
>
>
> Ovo
>
>   useType
>
>   --- please choose ---  is equal to is not equal to matches sounds like
>
>
>
>
>
>
>
>
>
>
>
> THEN
>
>
>
>
>
>
>
> Insert *Ip*
>
>  type
>
>
>
>
>
> (options)
>
>
>
>
>
>
>
>
>
>  * *
>
> *View source*
>
> * *
>
>
>
> * *
>
> *Validate*
>
> * *
>
>Ips in Ovo are Production Ips
>
>Title: [*Production Ips*]
>
> [show more info...]
>
>
>
> Error stack:
>
>
>
> 15:36:25,517 INFO  [STDOUT] ERROR 28-05 15:36:25,507
> (ServiceImplementation.java:runScenario:1942)   [Error: unable to find
> constructor for:
> org.servers.Ovo]
> [Near : {... new org.servers.Ovo( }]
> ^
> [Line: 1, Column:
> 0]
>
>
>
>
>
> I have defined the constructor in the Ovo class and Ip class respectively.
>
>
>
> Please let me know if you can throw some light on this.
>
>
>
> Thanks,
>
>
>
> Jillika
>
> --
>
> *Please consider the environment before printing this email.*
>
> *Visit our website at http://www.nyse.com
> *
>
> Note: The information contained in this message and any attachment to it is
> privileged, confidential and protected from disclosure. If the reader of
> this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please notify the sender immediately by replying to
> the message, and please delete it from your system. Thank you. NYSE
> Euronext. *
>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 


Esteban Aliverti

Re: [rules-users] Keeping Flows in Guvnor

2010-05-28 Thread Esteban Aliverti
Hi,
Unfortunately I'm struggling with this issue now:
https://jira.jboss.org/browse/BRMS-320 so I can't make any test for your
question :(
But "in theory" what you are trying to do should work fine (unless you
encounter the issue I'm dealing with ;) ).
I reviewed the code, and Guvnor adds all the assets (rules, flows, etc) to
the compiled package it creates.

Best,

On Wed, May 26, 2010 at 1:34 AM, tolitius  wrote:

>
> Hey Esteban,
>
>So, placing process definitions + rules to the Guvnor,
> building them as different PKGes
> and the accessing these packages remotely over HTTP
>
> is currently a fully working functionality?
>
> Thank you,
> /Anatoly
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Keeping-Flows-in-Guvnor-tp831030p843986.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 


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


Re: [rules-users] Drools Flow Persistence with Spring Hibernate

2010-05-28 Thread Dale Wyttenbach
I am trying to do the same but am currently struggling with a related OC4J
issue (configuring OC4J to use Hibernate as JPA provider).  If I get past
that maybe we can compare notes.


On Thu, May 27, 2010 at 12:48 PM, xdirewolfx wrote:

>
> Anyone managed to get drools flow persistence to be configured in a spring
> hibernate app?
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Persistence-with-Spring-Hibernate-tp834330p849100.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] error uploading jar files: please help

2010-05-28 Thread Esteban Aliverti
Looking at your stacktrace I found: "Caused by: java.lang.ClassFormatError:
Incompatible magic value 175137123 in class file com/rb/model/Contact"

Maybe the jar you are uploading was compiled using a newer jdk version that
the one used by guvnor. Can you check that?

Best,

2010/5/27 Mahalakshmi 

>
> hi,
> I am a new drools user.
> I setup the guvnor standalone install from the drools website.
> Problem occurs when i upload a .jar file while i created using eclipse.
> It shows that the jar file has uploaded successfully but I am unable to
> 'save & validate'
> I get error: "contact system administrator"
> When I do 'Build Package' I get error: Pojos have loaded .class files using
> java version 1.6 and guvnor is using java version 1.5
> I am not understanding how I could change the java version used.
> Does it have anything to do with my eclipse? I set my project settings
> (when I create a new java project) as J2SE1.5 and JRE6.
> Is that the issue???
> Please help.
>
> The stack trace I get is:
> 11:39:44,904 ERROR [STDERR]
> com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
> abstract org.drools.guvnor.client.modeldriven.SuggestionCompletionEngine
> org.drools.guvnor.client.rpc.RepositoryService.loadSuggestionCompletionEngine(java.lang.String)
> throws com.google.gwt.user.client.rpc.SerializableException' threw an
> unexpected exception: java.lang.reflect.InvocationTargetException
> 11:39:44,904 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
> 11:39:44,904 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
> 11:39:44,904 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> 11:39:44,904 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> 11:39:44,904 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 11:39:44,904 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 11:39:44,904 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 11:39:44,904 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 11:39:44,904 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
> 11:39:44,905 ERROR [STDERR] at
> org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
> 11:39:44,905 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
> 11:39:44,905 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 11:39:44,905 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 11:39:44,905 ERROR [STDERR] at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 11:39:44,905 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 11:39:44,905 ERROR [STDERR] at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 11:39:44,905 ERROR [STDERR] at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 11:39:44,906 ERROR [STDERR] at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 11:39:44,906 ERROR [STDERR] at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> 11:39:44,906 ERROR [STDERR] at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 11:39:44,906 ERROR [STDERR] at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 11:39:44,906 ERROR [STDERR] at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 11:39:44,906 ERROR [STDERR] at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 11:39:44,906 ERROR [STDERR] at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 11:39:44,906 ERROR [STDERR] at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 11:39:44,907 ERROR [STDERR] at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 11:39:44,907 ERROR [STDERR] at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 11:39:44,907 ERROR [STDERR] at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> 11:39:44,907 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
> 11:39:44,907 ERROR [STDERR] Caused by:
> java.lang.reflect.InvocationTargetException
> 11:39:44,907 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 11:39:44,

[rules-users] Call for Submissions for RuleML-2010 and edBPM 2010

2010-05-28 Thread Adrian Paschke
Dear Colleagues,

I would like to point you to these upcoming paper submission deadlines which
might be interesting for you. 

---

RuleML-2010 
October 21-23, 2010, Washington, DC, USA
http://2010.ruleml.org/

Extended Abstract submission deadline: June 6, 2010 

Extended Paper Submission deadline: June 11, 2010

This year it will be a very special event - collocated with the Business
Rules Forum, the Business Analysis Forum and the Business Process Forum.

Alex Kozlenkov and I will organize a special Rule-based Event Processing and
Reaction Rules track at RuleML-2010 and there will be the Int. Rules
Challenge to demonstrate industrial and practical implementations, tools and
use cases / case studies. 

Proceedings will be published in Springer LNCS with a high impact factor -
see http://citeseerx.ist.psu.edu/stats/venues - and selected best papers
from the conference will be invited to already agreed upcoming journal
special issues in the International Journal of Cooperative Information
Systems (IJCIS), and the Springer journal AI & Law. 

The current IEEE TKDE special issue on Rule Representation, Interchange and
Reasoning in Distributed, Heterogeneous Environments will be published in
June 2010.

Members of W3C as an official collaboration partner will receive a 15%
discount for RuleML-2010.

--


4th International Workshop on Event-Driven Business Process Management

collocated with BPM 2010

Hoboken, NJ, USA from September 13-16, 2010

http://www.bpm2010.org/conference-events/workshops/edbpm10/

Extended Paper Submission Deadline: June 6, 2010

Selected papers will be considered for extension and publication in a
special issue of the International Journal of Business Process Integration
and Management (IJBPIM) publish ed by InderScience.



And here are some further events which might interest you:

-


5th Berlin Semantic Web Meetup on Semantic Business Process Management
June, 18th, Potdam/Berlin

The Meetup will focus on Semantic Business Process Management (SBPM) which
is the combination of Corporate Semantic Web technologies, such as
(business) rules, events (semantic complex event processing) and ontologies,
with BPM.

http://www.meetup.com/The-Berlin-Semantic-Web-Meetup-Group/calendar/12921317


--

The RuleML Semantic Rules track at Semantic Technologies Conference 2010
June 21-25, San Francisco, CA

http://semtech2010.semanticuniverse.com/rules


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


Re: [rules-users] History log with mySQL Database

2010-05-28 Thread timpe


LokR wrote:
> 
> Would that be possible that you have drools dependencies twice? (just an
> idea...) 
> 
That worked for the error! Thanks. 
I created a new Drools Project (which contains several Libraries) AND added
the maven dependencies. I removed the Drools Libraries created by the Drools
Project and now it works.

Now I need only to know how to configure hibernate...
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/History-log-with-mySQL-Database-tp851134p851172.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] History log with mySQL Database

2010-05-28 Thread PAYET, Manuel
Would that be possible that you have drools dependencies twice? (just an 
idea...) 

-Message d'origine-
De : rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] De la part de timpe
Envoyé : vendredi 28 mai 2010 10:50
À : rules-users@lists.jboss.org
Objet : [rules-users] History log with mySQL Database


I'm trying to establish a history log for my Flow. I'm using version 5.0.1 and 
I set up my project with maven. So I'm using drools-bam-5.0.1.jar Inside this 
archive there is a META-INF folder containing the hibernate-instructions. How 
can I reconfigure these settings?
I tried to put the hibernate.cfg.xml and the AuditLog.hbm.xml into the 
META-INF-folder in my root Project without success (default Settings from 
jar-file are used). 

While using the drools-bam archive (jar from the maven-repository), I got the 
following error:
Not supported session in logger: class
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession

I debugged it and found out that he jumps out in WorkingMemoryLogger in Line
136:
else if (session instanceof CommandBasedStatefulKnowledgeSession) {
WorkingMemoryEventManager eventManager = 
((CommandBasedStatefulKnowledgeSession)
session).getCommandService().getSession();
eventManager.addEventListener( (WorkingMemoryEventListener) 
this );
eventManager.addEventListener( (AgendaEventListener) this );
eventManager.addEventListener( (RuleFlowEventListener) this );
eventManager.addEventListener( (RuleBaseEventListener) this );
} else {

The Session is an instance of
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession

When I add the source-File of the WorkingMemoryLogger into my project, then 
this error does not occur.

Any Ideas?

Thanks

Timo
--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/History-log-with-mySQL-Database-tp851134p851134.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


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


[rules-users] History log with mySQL Database

2010-05-28 Thread timpe

I'm trying to establish a history log for my Flow. I'm using version 5.0.1
and I set up my project with maven. So I'm using drools-bam-5.0.1.jar
Inside this archive there is a META-INF folder containing the
hibernate-instructions. How can I reconfigure these settings?
I tried to put the hibernate.cfg.xml and the
AuditLog.hbm.xml into the META-INF-folder in my root Project without
success (default Settings from jar-file are used). 

While using the drools-bam archive (jar from the maven-repository), I got
the following error:
Not supported session in logger: class
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession

I debugged it and found out that he jumps out in WorkingMemoryLogger in Line
136:
else if (session instanceof CommandBasedStatefulKnowledgeSession) {
WorkingMemoryEventManager eventManager = 
((CommandBasedStatefulKnowledgeSession)
session).getCommandService().getSession();
eventManager.addEventListener( (WorkingMemoryEventListener) 
this );
eventManager.addEventListener( (AgendaEventListener) this );
eventManager.addEventListener( (RuleFlowEventListener) this );
eventManager.addEventListener( (RuleBaseEventListener) this );
} else {

The Session is an instance of
org.drools.process.command.impl.CommandBasedStatefulKnowledgeSession

When I add the source-File of the WorkingMemoryLogger into my project, then
this error does not occur.

Any Ideas?

Thanks

Timo
-- 
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/History-log-with-mySQL-Database-tp851134p851134.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] FileNotFoundException for drl file in classpath

2010-05-28 Thread PAYET, Manuel
If it's in the package com.abc.xyz, so you have to use:
ResourceFactory.newClassPathResource("/com/abc/xyz/keyRykes.drl") 
Or 
ResourceFactory.newClassPathResource("com/abc/xyz/keyRykes.drl")
I don't remember, it's one of those :p

-Message d'origine-
De : rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] De la part de bcarlson
Envoyé : vendredi 28 mai 2010 06:13
À : rules-users@lists.jboss.org
Objet : [rules-users] FileNotFoundException for drl file in classpath


Hello, 

I'm relatively new to drools, and although I've gotten my first app working 
from the command line, I am not incorporating it into a web app, and having a 
heck of a time getting the drl file found!

Long story short, the drl file is in the package: com.abc.xyz 

I'm trying to load it with the following:

kbuilder.add(ResourceFactory.newClassPathResource("keyRules.drl",this.getClass()),ResourceType.DRL);

and I've placed it in about 42 places throughout my app in the futile attempt 
to get it to load. What am I missing? Can someone help me understand the whole 
classpath loading? I mean, I've put the path to the .drl file in my classpath, 
and it's simply not finding the file.

Thanks for your help!

-an exasperated newbie drools user
--
View this message in context: 
http://drools-java-rules-engine.46999.n3.nabble.com/FileNotFoundException-for-drl-file-in-classpath-tp850700p850700.html
Sent from the Drools - User mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


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