Dear satjo, if you try it but I had no success. This step carry out:
1) Create the files users.properties, roles.properties in \drools-5.1.0.M1-
guvnor-standalone\jboss-4.2.3.GA <
http://jboss-4.2.3.ga/>\server\default\conf.
also create the file 'testDS1-ds.xml' in \default\deploy
2) Create 'default' package in Guvnor,
http://localhost:8080/drools-guvnor
,
user=krisv , pass= mypassword. OK
3) From eclipse add hellow_world.rf to Guvnor to 'default' package, OK
4) Build package 'default' , THE FOLLOWING delivery errors:
2009-10-28 11:18:43,859 INFO [STDOUT] DEBUG 28-10 11:18:43,859
(ServiceImplementation.java:loadRuleAsset:495) Package: default, asset:
hellow_world. Load time taken for asset: 906
2009-10-28 11:19:04,843 INFO [STDOUT] ERROR 28-10 11:19:04,843
(RepositoryServiceServlet.java:doUnexpectedFailure:76)
java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR]
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract org.drools.guvnor.client.rpc.BuilderResult[]
org.drools.guvnor.client.rpc.RepositoryService.buildPackage(java.lang.String,java.lang.String,boolean)
throws com.google.gwt.user.client.rpc.SerializableException' threw an
unexpected exception: java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
2009-10-28 11:19:04,843 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
2009-10-28 11:19:04,843 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2009-10-28 11:19:04,843 ERROR [STDERR] at
java.lang.Thread.run(Thread.java:619)
2009-10-28 11:19:04,843 ERROR [STDERR] Caused by:
java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.drools.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:118)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.java:222)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:468)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.drools.compiler.PackageBuilder.addRuleFlow(PackageBuilder.java:440)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.contenthandler.RuleFlowHandler.compile(RuleFlowHandler.java:167)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.builder.ContentPackageAssembler.buildAsset(ContentPackageAssembler.java:197)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.builder.ContentPackageAssembler.buildPackage(ContentPackageAssembler.java:184)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:104)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:117)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1434)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools.guvnor
.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1415)
2009-10-28 11:19:04,843 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2009-10-28 11:19:04,843 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2009-10-28 11:19:04,843 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2009-10-28 11:19:04,843 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
2009-10-28 11:19:04,859 ERROR [STDERR] at org.drools.guvnor
.server.ServiceImplementation_$$_javassist_7.buildPackage(ServiceImplementation_$$_javassist_7.java)
2009-10-28 11:19:04,859 ERROR [STDERR] at org.drools.guvnor
.server.RepositoryServiceServlet.buildPackage(RepositoryServiceServlet.java:206)
2009-10-28 11:19:04,859 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2009-10-28 11:19:04,859 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2009-10-28 11:19:04,859 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2009-10-28 11:19:04,859 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
2009-10-28 11:19:04,859 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
2009-10-28 11:19:04,859 ERROR [STDERR] ... 27 more
Thanks
You need to create a new 'default' package (i.e, not the
'defauktPackage'
that comes with Guvnor) and upload your ruleflow.
Eugenio Abello wrote:
>
> Dear, I made new tests, and also fails to 'defaultPackage'. This made:
>
> 1) Create the files users.properties, roles.properties in
> \drools-5.1.0.M1-
> guvnor-standalone\jboss-4.2.3.GA
> <
http://jboss-4.2.3.ga/>\server\default\conf.
>
> also create the file 'testDS1-ds.xml' in \default\deploy
>
> 2) Start the jboss.
>
> 3)
http://localhost:8080/
> <
http://localhost:8080/drools-guvnor>drools<
http://localhost:8080/drools-guvnor>
> -
> <
http://localhost:8080/drools-guvnor><
http://localhost:8080/drools-guvnor>
> guvnor <
http://localhost:8080/drools-guvnor>. when he asks "This looks
> like
> a brand new repository. Would you like to install a sample repository?"
I
> respond "No thanks"
>
> 4) From eclipse add hellow_world.rf to Guvnor to 'defaultPackage'
package,
> OK
>
> 5) Build package 'default' , and delivers the same error:
>
>
> 2009-11-03 12:22:47,765 DEBUG [com.arjuna.ats.jta.logging.loggerI18N]
> [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local
> XARecoveryModule - second pass
> 2009-11-03 12:24:05,031 INFO [STDOUT] ERROR 03-11 12:24:05,031
> (RepositoryServiceServlet.java:doUnexpectedFailure:76)
> java.lang.NullPointerException
> 2009-11-03 12:24:05,031 ERROR [STDERR]
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public
> abstract org.drools.guvnor.client.rpc.BuilderResult[]
>
org.drools.guvnor.client.rpc.RepositoryService.buildPackage(java.lang.String,java.lang.String,boolean)
> throws com.google.gwt.user.client.rpc.SerializableException' threw an
> unexpected exception: java.lang.NullPointerException
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> java.lang.Thread.run(Thread.java:619)
> 2009-11-03 12:24:05,031 ERROR [STDERR] Caused by:
> java.lang.NullPointerException
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.drools.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:118)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.java:222)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:468)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.drools.compiler.PackageBuilder.addRuleFlow(PackageBuilder.java:440)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.contenthandler.RuleFlowHandler.compile(RuleFlowHandler.java:167)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.builder.ContentPackageAssembler.buildAsset(ContentPackageAssembler.java:197)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.builder.ContentPackageAssembler.buildPackage(ContentPackageAssembler.java:184)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:104)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:117)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1434)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1415)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> java.lang.reflect.Method.invoke(Method.java:597)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.ServiceImplementation_$$_javassist_3.buildPackage(ServiceImplementation_$$_javassist_3.java)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
org.drools.guvnor.server.RepositoryServiceServlet.buildPackage(RepositoryServiceServlet.java:206)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> java.lang.reflect.Method.invoke(Method.java:597)
> 2009-11-03 12:24:05,031 ERROR [STDERR] at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
> 2009-11-03 12:24:05,031 ERROR [STDERR] ... 27 more
> 2009-11-03 12:24:47,765 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger]
> Periodic recovery - first pass <mar, 3 nov 2009 12:24:47>
>
> Thn
> Kris
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
View this message in context:
http://old.nabble.com/Fwd%3A-Build-package-%27default%27-Guvnor-tp2618193...
Sent from the drools - user mailing list archive at
Nabble.com.
------------------------------
Message: 3
Date: Sat, 7 Nov 2009 20:19:22 -0800
From: Wishing Carebear <wishing.carebear(a)gmail.com>
Subject: [rules-users] some pointers for solution
To: rules-users(a)lists.jboss.org
Message-ID:
<27407ce90911072019s6f348333je82e4908b108dd21(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello:
There are n selection criteria from s1 .. sn for each item i1.. in. Each
item can have a subset of criteria which applies to them.
The end user, can choose a subset of criteria like c1 and c5 and only the
item that has c1 and c5 valid should be returned. For example: if item i1
and i2 have criterias valid for c1, c2, c5, c6, c8 since the request is
only
for criteria c1 and c5, i1 and i2 must be returned.
Is it possible to write a rule using drools for this requirement.
Thanks for your help and time,
cabear
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20091107/4e5daaf...
------------------------------
Message: 4
Date: Sun, 8 Nov 2009 01:08:22 -0800 (PST)
From: Greg Barton <greg_barton(a)yahoo.com>
Subject: Re: [rules-users] some pointers for solution
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID: <252810.954.qm(a)web81508.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
There are a couple of ways to do this. I'm sure there's a bit more clean
way than the example I'm providing, but this should get you in the right
direction. It's not 100% rules, because it involves a bit of java
collections trickery. (See attached project,
collection_DroolsCriteriaMatch.tar.gz)
The heart of it is a single rule:
rule "Match"
when
d : Data()
q : Query( size <= d.size )
Number( intValue == q.size )
from accumulate(
Criteria( this memberOf d, this memberOf q ),
init( int total = 0; ),
action( total ++; ),
reverse( total --; ),
result( total )
)
then
System.out.println("Match: " + d + " and " + q) ;
end
The Data object holds data to be queried, Query objects are asserted to
match the Data, and Criteria objects can be contained in either. (With the
aforementioned collections trickery that if a Criteria is contained in a
Query it can be found in a Data object, but the reverse isn't true. See the
Query.contains(Object) method for how that's implemented.)
So the rule above basically says "There's a Data object, and all of the
Query objects Criteria are contained in the Data object."
There's an alternate way of doing this using eval and a bit more java fu.
See the eval_DroolsCriteriaMatch.tar.gz project attached. This one's
probably not optimal, though, as it's basically a brute force check of all
Data objects against the asserted Query.
I tried for a while to get a solution working with different criteria types
from both Data and Query objects being asserted into working memory, but I
couldn't get the accumulate syntax right. Anyone know of a way to do that?
(I figure that would get a "pure rules" solution.)
--- On Sat, 11/7/09, Wishing Carebear <wishing.carebear(a)gmail.com> wrote:
> From: Wishing Carebear <wishing.carebear(a)gmail.com>
> Subject: [rules-users] some pointers for solution
> To: rules-users(a)lists.jboss.org
> Date: Saturday, November 7, 2009, 10:19 PM
> Hello:
> There are n selection criteria from s1 .. sn for each
> item i1.. in. Each item can have a subset of criteria which
> applies to them.
> ?
> The end user, can choose a subset of criteria like c1
> and c5 and only the item that has c1 and c5 valid should be
> returned. For example: if item i1 and i2 have criterias
> valid for c1, c2, c5, c6, c8 since the request is only for
> criteria c1 and c5, i1 and i2 must be returned.
>
> ?
> Is it possible to write a rule using drools for this
> requirement.
> ?
> Thanks for your help and time,
> cabear
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collection_DroolsCriteriaMatch.tar.gz
Type: application/x-gzip
Size: 5760 bytes
Desc: not available
Url :
http://lists.jboss.org/pipermail/rules-users/attachments/20091108/f76ced1...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eval_DroolsCriteriaMatch.tar.gz
Type: application/x-gzip
Size: 4837 bytes
Desc: not available
Url :
http://lists.jboss.org/pipermail/rules-users/attachments/20091108/f76ced1...
------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
End of rules-users Digest, Vol 36, Issue 37
*******************************************