Re: [rules-users] Drools 6 and Gradle?
Great, thanks Mark! On Tue, Jan 28, 2014 at 4:06 PM, Mark Proctor wrote: > We require jars that are built to conform to maven standards. But they do > not need to be built with maven. That means they do need a pom.properties > in there. If gradle does not add that automatically, you should be able to > automate that yourself. > > The pom.properties is a very simple file, that requires 3 key value pairs: > > *#Generated by Maven > **#Wed Nov 18 14:44:09 PST 2009 > **version*=*2.2 > **groupId*=*javax.el > **artifactId*=*el-api > * > > > This is necessary for discovery of jars, and versioning of jars within the > same JVM. Maven provides a standard for this, so it seemed redundant us > creating yet another way to declare this meta data. > > Mark > > > On 28 Jan 2014, at 22:03, Andrew Berman wrote: > > Hello, > > I keep running into an issue where Drools is looking for a pom.properties > file and I get an error since I'm using Gradle. Does Drools depend on > Maven? I noticed there is a lot of code looking for Maven and pom.xml and > pom.properties, why is that? > > Thanks! > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools 6 and Gradle?
Hello, I keep running into an issue where Drools is looking for a pom.properties file and I get an error since I'm using Gradle. Does Drools depend on Maven? I noticed there is a lot of code looking for Maven and pom.xml and pom.properties, why is that? Thanks! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] NullPointerException with kie-spring 6.0.1 and Spring 4.0
Awesome, thanks!! On Mon, Jan 27, 2014 at 5:16 PM, vinodkiran wrote: > https://github.com/droolsjbpm/droolsjbpm-integration/pull/80 > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-NullPointerException-with-kie-spring-6-0-1-and-Spring-4-0-tp4027854p4027877.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] NullPointerException with kie-spring 6.0.1 and Spring 4.0
Hi Vinod, Thanks for looking into this. Can you tell me what you changed to get this to work? Do you have a patch? Thanks! On Sun, Jan 26, 2014 at 9:47 AM, vinodkiran wrote: > Andrew, > > 1. The NPE happens when you execute a spring-boot project via a jar (e.g: > java -jar target/kie-spring-boot-0.1.0.jar) > > If you execute the same project using 'mvn exec:java' the NPE is not seen > and we are able to move forward. > > 2. However, Spring Boot/Spring 4.0 seems to be creating some beans with no > names. This causes a NPE with kie-spring in a different location. I have > fixed this and submitted a PR for the changes. This might be available in > the next release. Try running this example with the latest snapshot in a > day > or two. > > I have uploaded my code to to github > (https://github.com/vinodkiran/kie-spring-boot) > > --Vinod > > PS: the reported NPE seems to be related to > https://github.com/spring-projects/spring-boot/pull/41 > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-NullPointerException-with-kie-spring-6-0-1-and-Spring-4-0-tp4027854p4027859.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] NullPointerException with kie-spring 6.0.1 and Spring 4.0
Hello, I'm trying to play around with Drool 6.0.1 integration with Spring (I'm using spring-boot which includes spring 4.0). I've looked at the unit tests written and have copied them pretty much exactly. When I start the app, I consistently receive: Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kie.spring.KModuleBeanFactoryPostProcessor]: Constructor threw exception; nested exception is java.lang.NullPointerException at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:164) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1069) ... 22 more Caused by: java.lang.NullPointerException at org.kie.spring.KModuleBeanFactoryPostProcessor.initConfigFilePath(KModuleBeanFactoryPostProcessor.java:79) at org.kie.spring.KModuleBeanFactoryPostProcessor.(KModuleBeanFactoryPostProcessor.java:64) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) When debugging the NPE comes from line 79, getClass().getResource("/").getPath(), because getResource yields null. Here is my spring context file: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:kie="http://drools.org/schema/kie-spring"; xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd "> Can someone help out? Thanks!! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users