[rules-users] how can drools file access class from an external jar

2009-01-08 Thread Jason Novotny


Hi,

   I'm using maven to organize my project into modules. I have all my 
drools related code in one module called xxx-rules and things work fine. 
However, if I move one of the classes referenced by a .drl rules file 
into another module xxx-core it doesn't work anymore. Does anyone know 
how I can instruct the loader to look for the class in a different maven 
module?


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


Re: [rules-users] how can drools file access class from an external jar

2009-01-08 Thread Jason Novotny


I should add that the error I'm seeing is the following:

17:37:05,634  INFO RuleSet:50 - Reading MyFirstRule
org.drools.rule.InvalidRulePackage: org.myorg.rules.data.StateRule 
Compilation error : [Rule name=My First Rule 1, agendaGroup=MAIN, 
salience=0, no-loop=false]
   org/myorg/rules/Rule_My_First_Rule_1_0.java (2:38) : Only a type can 
be imported. org.myorg.rules.data.State resolves to a package
Rule Compilation error : [Rule name=property type Adder Conforming 55, 
agendaGroup=MAIN, salience=0, no-loop=false]


   Thanks, Jason

Jason Novotny wrote:


Hi,

   I'm using maven to organize my project into modules. I have all my 
drools related code in one module called xxx-rules and things work 
fine. However, if I move one of the classes referenced by a .drl rules 
file into another module xxx-core it doesn't work anymore. Does anyone 
know how I can instruct the loader to look for the class in a 
different maven module?


   Thanks, Jason
___
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] how can drools file access class from an external jar

2009-01-08 Thread Greg Barton
Set up dependencies between the modules in your pom.xml.  You probably want to 
do a multimodule build, but that's not necessary.

Examples of multimodule builds:
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/index.html

--- On Thu, 1/8/09, Jason Novotny  wrote:

> From: Jason Novotny 
> Subject: [rules-users] how can drools file access class from an external jar
> To: rules-users@lists.jboss.org
> Date: Thursday, January 8, 2009, 7:19 PM
> Hi,
> 
> I'm using maven to organize my project into
> modules. I have all my 
> drools related code in one module called xxx-rules and
> things work fine. 
> However, if I move one of the classes referenced by a .drl
> rules file 
> into another module xxx-core it doesn't work anymore.
> Does anyone know 
> how I can instruct the loader to look for the class in a
> different maven 
> module?
> 
> Thanks, Jason
> ___
> 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 nightly snapshot

2009-01-08 Thread Steven Williams
Hi all,

I was wondering if anyone knows how to get the nightly snapshot for Drools 5
via maven?

I am using the http://snapshots.jboss.org/maven2 repository but the snapshot
jars have different names to what I was expecting (e.g.
drools-core-5.0.0.20081110.114826-277.jar as opposed to
drools-core-5.0.0-SNAPSHOT.jar). Can anyone tell me what settings I should
use in my pom to get the latest version?

thanks
Steve

-- 
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
steven.willi...@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Re: Drools nightly snapshot

2009-01-08 Thread Steven Williams
Never mind. (I hate it when you post a question and then immediately find
the answer!)

For anybody else the correct dependency format is:


org.drools
drools-core
5.0.0.SNAPSHOT


NOT


org.drools
drools-core
5.0.0-SNAPSHOT



On Fri, Jan 9, 2009 at 2:01 PM, Steven Williams wrote:

> Hi all,
>
> I was wondering if anyone knows how to get the nightly snapshot for Drools
> 5 via maven?
>
> I am using the http://snapshots.jboss.org/maven2 repository but the
> snapshot jars have different names to what I was expecting (e.g.
> drools-core-5.0.0.20081110.114826-277.jar as opposed to
> drools-core-5.0.0-SNAPSHOT.jar). Can anyone tell me what settings I should
> use in my pom to get the latest version?
>
> thanks
> Steve
>
> --
> Steven Williams
>
> Supervising Consultant
>
> Object Consulting
> Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
> steven.willi...@objectconsulting.com.au
> www.objectconsulting.com.au
>
> consulting | development | training | support
> our experience makes the difference
>



-- 
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
steven.willi...@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools 5 migration

2009-01-08 Thread Steven Williams
Hi guys,

I have migrated my code over to Drools 5 and now regular expressions have to
be escaped. e.g. where previously I had

name matches "^\s*$"

instead I have to put

name matches "^\\s*$"

Is this a bug or am I missing a setting or something? I am running against
the 5 snapshot.

thanks
Steve
-- 
Steven Williams

Supervising Consultant

Object Consulting
Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
steven.willi...@objectconsulting.com.au
www.objectconsulting.com.au

consulting | development | training | support
our experience makes the difference
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools BRMS in tomcat 5.0

2009-01-08 Thread Divakar B K
Hi

 

I have configured the BRMS in tomcat5.0.

 

I am trying to build the package, getting the following error.

 

 

An error occurred executing the action.

Details

java.lang.NullPointerException at
java.io.StringReader.(StringReader.java:33) at
org.drools.brms.server.contenthandler.DRLFileContentHandler.compile(DRLF
ileContentHandler.java:32) at
org.drools.brms.server.builder.ContentPackageAssembler.buildAsset(Conten
tPackageAssembler.java:139) at
org.drools.brms.server.builder.ContentPackageAssembler.buildPackage(Cont
entPackageAssembler.java:127) at
org.drools.brms.server.builder.ContentPackageAssembler.(ContentPac
kageAssembler.java:84) at
org.drools.brms.server.builder.ContentPackageAssembler.(ContentPac
kageAssembler.java:92) at
org.drools.brms.server.ServiceImplementation.buildPackage(ServiceImpleme
ntation.java:781) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at
org.jboss.seam.util.Reflections.invoke(Reflections.java:21) at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationCon
text.java:31) at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:56) at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInte
rceptor.java:31) at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:68) at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionIntercept
or.java:46) at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:68) at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextI
nterceptor.java:42) at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:68) at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterce
ptor.java:40) at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationCon
text.java:68) at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106
) at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBea
nInterceptor.java:155) at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.
java:91) at
org.drools.brms.server.ServiceImplementation_$$_javassist_3.buildPackage
(ServiceImplementation_$$_javassist_3.java) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at
org.jboss.seam.remoting.gwt.GWTToSeamAdapter.callWebRemoteMethod(GWTT

 

 

 

Best Regards,

Divakar.BK

 

Sonata Software Limited

Phone : 91 80 22489390 -Extn: 8445

 

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