maven - spring integration with drools -


i want integrate drools in spring.my spring config is:

<kie:import releaseid-ref="ksession-rules2" enablescanner="true" scannerinterval="20000"/> <kie:releaseid id="ksession-rules2" groupid="com.test" artifactid="epay-risk2" version="1.0.3"/>  <bean id="kiepostprocessor"         class="org.kie.spring.annotations.kmoduleannotationpostprocessor"/> 

i don't know why following exception thrown:

java.lang.nosuchmethoderror: com.google.inject.binder.bindlistener(lcom/google/inject/matcher/matcher;[lcom/google/inject/spi/provisionlistener;)v     @ org.eclipse.sisu.plexus.plexusbindingmodule.configure(plexusbindingmodule.java:75) ~[org.eclipse.sisu.plexus-0.0.0.m5.jar:na]     @ com.google.inject.spi.elements$recordingbinder.install(elements.java:223) ~[guice-3.0.jar:na]     @ com.google.inject.spi.elements.getelements(elements.java:101) ~[guice-3.0.jar:na]     @ com.google.inject.spi.elements.getelements(elements.java:92) ~[guice-3.0.jar:na]     @ org.eclipse.sisu.wire.wiremodule.configure(wiremodule.java:75) ~[org.eclipse.sisu.inject-0.0.0.m5.jar:na]     @ com.google.inject.spi.elements$recordingbinder.install(elements.java:223) ~[guice-3.0.jar:na]     @ com.google.inject.spi.elements.getelements(elements.java:101) ~[guice-3.0.jar:na]     @ com.google.inject.internal.injectorshell$builder.build(injectorshell.java:133) ~[guice-3.0.jar:na]     @ com.google.inject.internal.internalinjectorcreator.build(internalinjectorcreator.java:103) ~[guice-3.0.jar:na]     @ com.google.inject.guice.createinjector(guice.java:95) ~[guice-3.0.jar:na]     @ com.google.inject.guice.createinjector(guice.java:72) ~[guice-3.0.jar:na]     @ com.google.inject.guice.createinjector(guice.java:62) ~[guice-3.0.jar:na]     @ org.codehaus.plexus.defaultplexuscontainer.addplexusinjector(defaultplexuscontainer.java:477) ~[org.eclipse.sisu.plexus-0.0.0.m5.jar:na]     @ org.codehaus.plexus.defaultplexuscontainer.<init>(defaultplexuscontainer.java:203) ~[org.eclipse.sisu.plexus-0.0.0.m5.jar:na]     @ org.codehaus.plexus.defaultplexuscontainer.<init>(defaultplexuscontainer.java:167) ~[org.eclipse.sisu.plexus-0.0.0.m5.jar:na]     @ org.kie.scanner.embedder.mavenembedderutils.buildplexuscontainer(mavenembedderutils.java:166) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenembedderutils.buildplexuscontainer(mavenembedderutils.java:140) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.plexuscomponentprovider.<init>(plexuscomponentprovider.java:37) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenembedderutils.buildcomponentprovider(mavenembedderutils.java:56) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenembedder.<init>(mavenembedder.java:75) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenembedder.<init>(mavenembedder.java:69) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenprojectloader.parsemavenpom(mavenprojectloader.java:55) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.embedder.mavenprojectloader.parsemavenpom(mavenprojectloader.java:49) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.mavenpommodelgenerator.parse(mavenpommodelgenerator.java:36) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kproject.xml.pommodel$parser.parse(pommodel.java:89) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.abstractkiemodule.getpommodel(abstractkiemodule.java:395) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.abstractkiemodule.getjardependencies(abstractkiemodule.java:126) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.mavenclassloaderresolver.getclassloader(mavenclassloaderresolver.java:64) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kiemodulekieproject.<init>(kiemodulekieproject.java:68) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kiemodulekieproject.<init>(kiemodulekieproject.java:56) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kiebuilderimpl.buildkiemodule(kiebuilderimpl.java:221) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.kierepositoryscannerimpl.build(kierepositoryscannerimpl.java:220) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.kierepositoryscannerimpl.buildartifact(kierepositoryscannerimpl.java:170) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.kierepositoryscannerimpl.loadartifact(kierepositoryscannerimpl.java:126) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.kie.scanner.kierepositoryscannerimpl.loadartifact(kierepositoryscannerimpl.java:121) ~[kie-ci-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kierepositoryimpl.loadkiemodulefrommavenrepo(kierepositoryimpl.java:129) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kierepositoryimpl.getkiemodule(kierepositoryimpl.java:115) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kierepositoryimpl.getkiemodule(kierepositoryimpl.java:92) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kieservicesimpl.newkiecontainer(kieservicesimpl.java:115) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.drools.compiler.kie.builder.impl.kieservicesimpl.newkiecontainer(kieservicesimpl.java:111) ~[drools-compiler-6.3.0.final.jar:6.3.0.final]     @ org.kie.spring.factorybeans.kieimportfactorybean.setkcontainer(kieimportfactorybean.java:115) ~[kie-spring-6.3.0.final.jar:6.3.0.final] 

i add following config pom.xml,the problem solved.

<dependency>     <groupid>com.google.inject</groupid>     <artifactid>guice</artifactid>     <version>4.0</version> </dependency> <dependency>     <groupid>org.eclipse.aether</groupid>     <artifactid>aether-impl</artifactid>     <version>0.9.0.m4</version> </dependency> 

Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -