Knowledge Agent unexpected behavior for remote resource at guvnor
by bhochhi
I am trying to use KnowledgeAgent to auto update the knowledgebase when rules
are updated at guvnor. Following is my Test Class that creates the kAgent
and executes the rules every 3 Seconds.
/
import org.drools.KnowledgeBase;
import org.drools.agent.KnowledgeAgent;
import org.drools.agent.KnowledgeAgentConfiguration;
import org.drools.agent.KnowledgeAgentFactory;
import org.drools.io.ResourceFactory;
import org.drools.runtime.StatefulKnowledgeSession;
public class MainClass {
public static void main(String[] st) throws Exception {
KnowledgeAgentConfiguration aconf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
aconf.setProperty("drools.agent.newInstance", "true");
final KnowledgeAgent kagent =
KnowledgeAgentFactory.newKnowledgeAgent("kagent", aconf);
ResourceFactory.getResourceChangeNotifierService().start();
ResourceFactory.getResourceChangeScannerService().start();
kagent.applyChangeSet(ResourceFactory.newClassPathResource("ChangeSet.xml"));
KnowledgeBase kbase = kagent.getKnowledgeBase();
while (true) {
try {
Thread.sleep(3000);
kbase = kagent.getKnowledgeBase();
System.out.println("Number of packages(should be 1): " +
kbase.getKnowledgePackages().size());
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
session.insert("");
System.out.println("Number of rules fired: " + session.fireAllRules());
session.dispose();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
/
And following is my ChangeSet.xml
/
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...'
>
<add>
<resource basicAuthentication="enabled" username="admin"
password="admin" type="DRL"
source="http://localhost:8080/brms/rest/packages/ReceiverConfigurationRules/source"></resource>
</add>
</change-set>
/
And I have one rules package "ReceiverConfigurationRules" and simple drl
rule with no condition( so will always fire).
So, when I run my program, for few times, it works as expected printing
number of packages and number of rule fired as "1". However as soon as
"DebugKnowledgeAgentEventListener" logs the following into the console, It
starts printing number of packages with kBase as "0" and number of rules
fired as "0". This is unexpected behavior. Is this a bug or am I missing
something important?
==>[BeforeChangeSetAppliedEvent: org.drools.io.impl.ChangeSetImpl@34f2e383]
==>[BeforeChangeSetProcessedEvent:
org.drools.io.impl.ChangeSetImpl@34f2e383]
==>[BeforeResourceProcessedEvent(RESOURCE_MODIFIED): [UrlResource
path='http://localhost:8080/brms/rest/packages/ReceiverConfigurationRules/source']]
==>[AfterResourceProcessedEvent(RESOURCE_MODIFIED): [UrlResource
path='http://localhost:8080/brms/rest/packages/ReceiverConfigurationRules/source']]
==>[AfterChangeSetProcessedEvent: org.drools.io.impl.ChangeSetImpl@34f2e383]
==>[KnowledgeBaseUpdatedEvent: org.drools.impl.KnowledgeBaseImpl@3fd7ada9]
==>[AfterChangeSetAppliedEvent: org.drools.io.impl.ChangeSetImpl@34f2e383]
Weird thing is when I use local resource like
source="file:\\\configRules.drl", everything is works perfect. Have anyone
experienced such issue? I used drools 5.4.final core as well as 5.3 but same
issue. I appreciate your help in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Knowledge-Agent-unexpected-behavior-for...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
error while deploying drools guvnor 5.5 on was8
by ashish6276
Hi
i am deploying drools guvnor 5.5 on was8.0. deployement is successfull. But
when i start the application i am getting following exception. Please
suggest some way to come out.
[5/2/13 15:27:45:601 IST] 00000088 SystemErr R SLF4J: Found binding in
[bundleresource://430.fwk105863925:1/org/slf4j/impl/StaticLoggerBinder.class]
[5/2/13 15:27:45:601 IST] 00000088 SystemErr R SLF4J: Found binding in
[wsjar:file:/C:/Program%20Files/ibm/WODM80/WAS/AppServer/profiles/WODMSample8000/installedApps/SamplesCell/guvnorWAS_war.ear/guvnorWAS.war/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[5/2/13 15:27:45:617 IST] 00000088 SystemErr R SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R
com.ibm.ws.exception.RuntimeWarning:
com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load
webapp: Failed to load webapp: WebBeans with api type with normal scope must
be proxiable to inject.
javax.el.ExpressionFactory has final methods! CDI doesn&#39;t allow
that.
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:428)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:638)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1354)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2150)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5413)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5539)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1246)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
java.lang.reflect.Method.invoke(Method.java:611)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
java.lang.reflect.Method.invoke(Method.java:611)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
[5/2/13 15:27:54:556 IST] 00000088 SystemErr R at
com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:241)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:564)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.RequestProcessor.processActionPerform(Unknown
Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.RequestProcessor.process(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.ActionServlet.process(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:193)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown
Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown
Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.RequestProcessor.process(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.ActionServlet.process(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.struts.action.ActionServlet.doPost(Unknown Source)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:950)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:499)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:320)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyReadCompletedCallback.complete(SSLConnectionLink.java:643)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R Caused by:
com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load
webapp: Failed to load webapp: WebBeans with api type with normal scope must
be proxiable to inject.
javax.el.ExpressionFactory has final methods! CDI doesn&#39;t allow
that.
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:759)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R ... 96 more
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R Caused by:
com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load
webapp: WebBeans with api type with normal scope must be proxiable to
inject.
javax.el.ExpressionFactory has final methods! CDI doesn't allow that.
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:176)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R ... 98 more
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R Caused by:
javax.enterprise.inject.UnproxyableResolutionException: WebBeans with api
type with normal scope must be proxiable to inject.
javax.el.ExpressionFactory has final methods! CDI doesn't allow that.
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.util.InjectionExceptionUtils.throwUnproxyableResolutionException(InjectionExceptionUtils.java:39)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.util.WebBeansUtil.checkUnproxiableApiType(WebBeansUtil.java:2086)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.DefinitionUtil.createProducerComponent(DefinitionUtil.java:695)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.DefinitionUtil.createProducerComponents(DefinitionUtil.java:659)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.DefinitionUtil.defineProducerMethods(DefinitionUtil.java:632)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.component.creation.AbstractInjectedTargetBeanCreator.defineProducerMethods(AbstractInjectedTargetBeanCreator.java:142)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.util.WebBeansUtil.defineManagedBean(WebBeansUtil.java:3078)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.BeansDeployer.defineManagedBean(BeansDeployer.java:881)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.BeansDeployer.deploySingleAnnotatedType(BeansDeployer.java:536)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.BeansDeployer.deployFromClassPath(BeansDeployer.java:482)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:171)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:609)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:405)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
[5/2/13 15:27:54:571 IST] 00000088 SystemErr R ... 99 more
Thanks
Ashish
--
View this message in context: http://drools.46999.n3.nabble.com/error-while-deploying-drools-guvnor-5-5...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Re: [rules-users] Issue in Integrating Guvnor and Form Builder
by Zahid Ahmed
Hi,
Want to add that I am getting my processIds and task ids in IO-DATA tab
[cid:image002.png@01CE5582.AD67BF10]
But still Unable to link it in guvnor
Regards,
Zahid
From: Zahid Ahmed
Sent: 20 May 2013 17:36
To: Rules Users List (rules-users(a)lists.jboss.org)
Subject: Issue in Integrating Guvnor and Form Builder
Hi,
I am having an issue in integrating GUVNOR and JBPM-FORM-BUILDER. I cannot find any link between form builder and guvnor. Although I can create/open form definitions in guvnor using form builder but, when I save the form definition a popup is displayed with disable drop downs of "Process ID" and "TASK ID"
Problem :
How to link forms with processes in guvnor. Do I have to keep form builder as standalone form designer, generate forms and then upload manually as FTLs in guvnor with names "<tasknam>-taskform" or there's someway to directly link forms to human tasks.
1. Standalone form builder
a. Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)
2. Form builder embedded in guvnor
a. Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)
[cid:image003.png@01CE5582.AD67BF10]
Environment :
Server Node:
1. drools-guvnor.war
2. designer.war
3. jbpm-form-builder.war
Server tried with
a. Jboss AS-7.1
2. Guvnor 5.4.0
3. Jbpm-form-builder 5.4
Guvnor Preference.properties: path=>drools-guvnor.war/WEB-INF/classes/
#
# Global preferences for Guvnor web app.
visual-ruleflow=true
verifier=true
oryx-bpmn-editor=true
# asset.format.enabled.XYZ determines if format XYZ (as named inside guvnor extensions)
# is enabled on the current guvnor instalation
asset.format.enabled.formdef=true
# Date and language settings
drools.dateformat=dd-MMM-yyyy
drools.defaultlanguage=en
drools.defaultcountry=US
#RuleModeller (guided editor) checkbox default value
rule-modeller-onlyShowDSLStatements=false
#Designer configuration
designer.url=http://localhost:8080
#Do not change this unless you know what are you doing
designer.context=designer
designer.profile=jbpm
#FormBuilder configuration
#Do not change this unless you know what are you doing
formbuilder.url=http://localhost:8080
formbuilder.context=jbpm-form-builder
formbuilder.profile=guvnor
Form-builder . springcomponents.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<!-- Select configuration strategy -->
<bean id="strategy" class="java.lang.String">
<constructor-arg type="java.lang.String" value="guvnor"/>
</bean>
<!-- Guvnor configuration -->
<bean id="guvnorUrl" class="java.lang.String">
<constructor-arg type="java.lang.String" value="http://localhost:8080/drools-guvnor"/>
</bean>
<bean id="guvnorUser" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="guvnorPass" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="serviceFactory" class="org.jbpm.formbuilder.server.ServiceFactory" factory-method="getInstance"/>
<!-- Guvnor services -->
<bean id="guvnorFileService" class="org.jbpm.formbuilder.server.file.GuvnorFileService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorFormService" class="org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorTaskService" class="org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorMenuService" class="org.jbpm.formbuilder.server.menu.GuvnorMenuService">
</bean>
</beans>
Regards,
Zahid
12 years, 10 months
Issue in Integrating Guvnor and Form Builder
by Zahid Ahmed
Hi,
I am having an issue in integrating GUVNOR and JBPM-FORM-BUILDER. I cannot find any link between form builder and guvnor. Although I can create/open form definitions in guvnor using form builder but, when I save the form definition a popup is displayed with disable drop downs of "Process ID" and "TASK ID"
Problem :
How to link forms with processes in guvnor. Do I have to keep form builder as standalone form designer, generate forms and then upload manually as FTLs in guvnor with names "<tasknam>-taskform" or there's someway to directly link forms to human tasks.
1. Standalone form builder
a. Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)
2. Form builder embedded in guvnor
a. Resources are not linked to guvnor process's and tasks. Guvnor path provided in spring-components.xml (content pasted in email below)
[cid:image001.png@01CE5580.6CDA1710]
Environment :
Server Node:
1. drools-guvnor.war
2. designer.war
3. jbpm-form-builder.war
Server tried with
a. Jboss AS-7.1
2. Guvnor 5.4.0
3. Jbpm-form-builder 5.4
Guvnor Preference.properties: path=>drools-guvnor.war/WEB-INF/classes/
#
# Global preferences for Guvnor web app.
visual-ruleflow=true
verifier=true
oryx-bpmn-editor=true
# asset.format.enabled.XYZ determines if format XYZ (as named inside guvnor extensions)
# is enabled on the current guvnor instalation
asset.format.enabled.formdef=true
# Date and language settings
drools.dateformat=dd-MMM-yyyy
drools.defaultlanguage=en
drools.defaultcountry=US
#RuleModeller (guided editor) checkbox default value
rule-modeller-onlyShowDSLStatements=false
#Designer configuration
designer.url=http://localhost:8080
#Do not change this unless you know what are you doing
designer.context=designer
designer.profile=jbpm
#FormBuilder configuration
#Do not change this unless you know what are you doing
formbuilder.url=http://localhost:8080
formbuilder.context=jbpm-form-builder
formbuilder.profile=guvnor
Form-builder . springcomponents.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<!-- Select configuration strategy -->
<bean id="strategy" class="java.lang.String">
<constructor-arg type="java.lang.String" value="guvnor"/>
</bean>
<!-- Guvnor configuration -->
<bean id="guvnorUrl" class="java.lang.String">
<constructor-arg type="java.lang.String" value="http://localhost:8080/drools-guvnor"/>
</bean>
<bean id="guvnorUser" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="guvnorPass" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="serviceFactory" class="org.jbpm.formbuilder.server.ServiceFactory" factory-method="getInstance"/>
<!-- Guvnor services -->
<bean id="guvnorFileService" class="org.jbpm.formbuilder.server.file.GuvnorFileService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorFormService" class="org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorTaskService" class="org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorMenuService" class="org.jbpm.formbuilder.server.menu.GuvnorMenuService">
</bean>
</beans>
Regards,
Zahid
12 years, 10 months
BPMN2 Question
by starfish15
Hello,
I am very new to BPMN. We are currently using Drools 5.3 version. I face the
below error when i run the project. Also am trying to understand the running
of Call Activity. Anyways a flow does begin running and then it gives the
following error
java.lang.NoSuchFieldError: session
at
org.jbpm.process.instance.impl.MVELReturnValueEvaluator.evaluate(MVELReturnValueEvaluator.java:91)
at
org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:128)
at
org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:72)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at
org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
at
org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
at
org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
Not sure i understood this error. Would appreciate if some help could be
provided with what the error meant exactly.
Regards,
starfish.
--
View this message in context: http://drools.46999.n3.nabble.com/BPMN2-Question-tp4023888.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 10 months
Error Guvnor and Form Builder on Different Nodes in JBOSS
by Zahid Ahmed
Hi,
I am having an issue in integrating GUVNOR and JBPM-FORM-BUILDER when I deploy guvnor and form builder on different nodes. I am getting Http-500 : Error getting task from Guvnor. Or I am getting Http 404 : /jbpm-form-builder/embed. It asks for authentication to form-builder And the error comes after successful authentication. I cannot find any server log printed, only the error comes on screen. Attached is the screen shot.
All works fine when I deploy guvnor and form builder on the same node. But on different nodes the errors are seen while opening/creating the form definitions from guvnor.1
Environment :
Node 1:
1. drools-guvnor.war
2. designer.war
Node 2:
1. jbpm-form-builder.war
Server tried with
a. Jboss EAP6.0.1
b. Jboss AS-7.1
2. Guvnor 5.4.0
3. Jbpm-form-builder 5.4
Guvnor Preference.properties: path=>drools-guvnor.war/WEB-INF/classes/
#
# Global preferences for Guvnor web app.
visual-ruleflow=true
verifier=true
oryx-bpmn-editor=true
# asset.format.enabled.XYZ determines if format XYZ (as named inside guvnor extensions)
# is enabled on the current guvnor instalation
asset.format.enabled.formdef=true
# Date and language settings
drools.dateformat=dd-MMM-yyyy
drools.defaultlanguage=en
drools.defaultcountry=US
#RuleModeller (guided editor) checkbox default value
rule-modeller-onlyShowDSLStatements=false
#Designer configuration
designer.url=http://localhost:8080
#Do not change this unless you know what are you doing
designer.context=designer
designer.profile=jbpm
#FormBuilder configuration
#Do not change this unless you know what are you doing
formbuilder.url=http://localhost:8280
formbuilder.context=jbpm-form-builder
formbuilder.profile=guvnor
Form-builder . springcomponents.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<!-- Select configuration strategy -->
<bean id="strategy" class="java.lang.String">
<constructor-arg type="java.lang.String" value="guvnor"/>
</bean>
<!-- Guvnor configuration -->
<bean id="guvnorUrl" class="java.lang.String">
<constructor-arg type="java.lang.String" value="http://localhost:8080/drools-guvnor"/>
</bean>
<bean id="guvnorUser" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="guvnorPass" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="serviceFactory" class="org.jbpm.formbuilder.server.ServiceFactory" factory-method="getInstance"/>
<!-- Guvnor services -->
<bean id="guvnorFileService" class="org.jbpm.formbuilder.server.file.GuvnorFileService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorFormService" class="org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorTaskService" class="org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorMenuService" class="org.jbpm.formbuilder.server.menu.GuvnorMenuService">
</bean>
</beans>
[cid:image001.png@01CE54BB.19387130]
Regards,
Zahid
12 years, 10 months
fusion
by Ravi Gupta
How would one write a rule that checked if say Message has been inserted
into the stream 10 times over the last 30 days?
12 years, 10 months
Re: [rules-users] [uberfire-users] Configurable and Reusable Editor
by Michael Anstis
All Drools and jBPM components use the Uberfire framework.
Any individual component can be used in isolation (subject to inclusion of
any dependencies) by any other Uberfire compliant application.
Vice-versa any 3rd party Uberfire compliant component can be used within
the Kie Workbench extending its functionality.
On 17 May 2013 13:35, "Suminda Dharmasena" <sirinath(a)sakrio.com> wrote:
> Hi,
>
> The components and functionality can be used for larger tools than just
> jBPM and Drools solution through customisation. I think this should be kept
> in mind when developing.
>
> Suminda
> --
> Suminda Sirinath Salpitikorala Dharmasena, B.Sc. Comp. & I.S. (Hon.)
> Lond., P.G.Dip. Ind. Maths. J'Pura, MIEEE, MACM, CEO Sakrīō! ▣ *Address*:
> 6G • 1st Lane • Pagoda Road • Nugegoda 10250 • Sri Lanka. ▣ *Mobile*:
> +94-(0)711007945 ▣ *Tele*: +94-(0)11-5 864614 / 5 875614 / 2 825908 ▣ *Web
> *: http://www.sakrio.com ▣
>
> This email is subjected to the email Terms of Use and Disclaimer:
> http://www.sakrio.com/email-legal. Please read this first.
> --
>
> _______________________________________________
> uberfire-users mailing list
> uberfire-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/uberfire-users
>
12 years, 10 months