Problems importing sub-process with Designer 2.0
by jwest
*Hi,
We saw Tihomir blog about jBPM Web Designer 2.0 released
(http://surdilovic.wordpress.com) where there is mentioned a list of new
features including: ''Support for sub-processes'. We went to the
documentation link but couldn't find anything about sub-process. We'd love
to hear more on this.
We have download and installed the jbpm 5.2, which comes with Designer 2.0,
but when we tried to upload from Eclipse to Guvnor a simple process that
makes reference to a simple sub-process, we are getting the following
exception:*
/17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Unresolved
reference 'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19,
80)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
java.lang.Thread.run(Thread.java:662)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) Caused by:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference
'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19, 80)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1154)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:732)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:525)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1938)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityScanner.load(XMLEntityScanner.java:1772)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1273)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1239)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) ... 25 more
17:43:27,615 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-8) null: java.lang.NullPointerException
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)
[classes:]
at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
[classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]/
*We also tried to load the simple process into Guvnor using the new feature
"import from BPMN2", but we got another exception:*
/18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of
file.
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:201)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
java.lang.Thread.run(Thread.java:662)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) Caused by:
org.xml.sax.SAXParseException: Premature end of file.
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:203)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:802)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) ... 24 more
18:35:54,370 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-7) null: java.lang.NullPointerException
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)
[classes:]
/
*Using "import from BPMN2", we also tried pasting the xml (bpmn2 content),
but we got again the former exception regarding to "Unresolved reference
'my.subprocess'". Forgot to tell, the sub-process with Id=my.subprocess was
loaded in Guvnor successfully before trying to upload/import the process
that makes reference to it.
Any help will be appreciated.*
--
View this message in context: http://drools.46999.n3.nabble.com/Problems-importing-sub-process-with-Des...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
JAAS issue for GUVNOR login
by starfish15
Hi,
We are trying to use JAAS to authenticate the GUVNOR login. I have done the
following already.
1. We use Tomcat 6 as the server.
2. Added Realm in the server.xml as follows
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="drools-guvnor"
userClassNames="com.test.user.User" />
drools-guvnor is the drools war file. The Principal class is User.
3. Added the jaas.config file at <Tomcat>/conf as follows
drools-guvnor{
com.test.JaasGuvnor required debug=true;
};
4.Added the jaas-config-name in components.xml of Tomcat as follows
<security:identity authenticate-method="#{authenticator.authenticate}"
jaas-config-name="D:/Tomcat/6.0.29/apache-tomcat-6.0.29/conf/jass.config"/>
However, i continuously get this runtime error as mentioned below whenever i
try to go to GUVNOR
ERROR 20-12 22:48:02,453 (LoggingHelper.java:error:69) Service method
'public abstract org.drools.guvnor.client.rpc.Us
erSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lan
g.SecurityException: Unable to locate a login configuration
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
javax.security.auth.login.Configuration$3.run(Configuration.java:247)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
at
javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
at
org.jboss.seam.security.Identity.getLoginContext(Identity.java:406)
at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
at
org.drools.guvnor.server.security.SecurityServiceImpl.checkAutoLogin(SecurityServiceImpl.java:109)
at
org.drools.guvnor.server.security.SecurityServiceImpl.getCurrentUser(SecurityServiceImpl.java:90)
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
... 46 more
Any help will be highly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/JAAS-issue-for-GUVNOR-login-tp3601947p3...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
How to do Rule Flow?
by Venkat
Hi, I have written some rules and now I want to write rule-flow. But there
are few questions.
1. I have written some rules of validation, where if not having values, they
will throw exceptions, in the flow the exception is a different task, so
should I write the rule file for these errors?
2. Also one of the rule in the rule file is a separate task in the
rule-flow. How can I do that.
Please help me on this.
Thanks,
Venkat.
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-do-Rule-Flow-tp3601937p3601937.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
java script to drl
by G S
I have a source code written in Java script but I want that logic to
be written in .drl (drools). Any guidelines, or ideas how I can
convert java script to rules?
sample source code attached.
14 years, 3 months
Drools Planner Beginner
by cmcl79
Hi,
I'm a beginner to Drools planner. I think it has everything I need to solve
my staff and user scheduling problems.
At the moment I have worked out how to edit the xml files in the nurse
rostering problem to begin to shape my problem. However the xml is very
intrecate and I don't think I will be able to morph this example to exactly
match my problem. Is there any way I can generate my own xml files to encode
my exact problem?
I'm a complete beginner to Drools and to programming.
Many thanks,
C
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-Beginner-tp3601171p36011...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 3 months
Working memory batch insert performance
by Zhuo Li
Hi, folks,
I recently did a benchmark on Drools 5.1.2 and noticed that data insert into
a stateful session is very time consuming. It took me about 30 minutes to
insert 10,000 data rows on a 512M heapsize JVM. Hence I have to keep
inserting data rows when I receive them and keep them in working memory,
rather than loading them in a batch at a given time. This is not a friendly
way for disaster recovery and I have two questions here to see if anybody
has any thoughts:
1. Is there any better way to improve the performance of data insert
into a stateful session;
2. I noticed that there is a method called BatchExecution() for a
stateless session. Did not get a chance to test it yet but is this a better
way to load data in a batch and then run rules?
My requirement is I need to load a batch of data once by end of the day, and
then run the rules to filter out matched data against unmatched data. I have
a 3-hour processing window to complete this loading and matching process,
and the data I need to load is about 1 million to 2 millions. My JVM
heapsize can be set up to 1024 M.
Best regards
Abe
14 years, 3 months
Poor performance from a simple join
by David Martin
Folks:
My co-workers and I have been using Drools to great success, but we ran smack into a performance brick wall recently.
In the example below, both BINNING_INPUT and LU_DEVICE_TYPE have large numbers of associated facts in working memory (BINNING_INPUT has more than 8 million facts in working memory, LU_DEVICE_TYPE about 10k.)
LU_DEVICE_TYPE models a lookup table.
rule "Binning for Attribute: Device_type_desc"
when
$call :
BINNING_INPUT()
$device_typeLookup :
LU_DEVICE_TYPE(
$call.device_type == device_type
)
then
$call.setDevice_type_desc($device_typeLookup.getDevice_type_desc());
end
It's a simple enough rule: join on the device_type field. Unfortunately, this rule and a few others like it are taking FOREVER to insert. Even when I cut the number of BINNING_INPUT facts in working memory down from 8M to 10k.
This feels like a basic Drools question. But I can't seem to find any help from google.
Please advise!
Thanks in advance,
Dave Martin
14 years, 3 months
Multiplying the count of each score rule
by Patrik Dufresne
Hi,
I'm still in process to model my planning problem and I have some
difficulties in defining the correct weight of soft constraints. I have
soft constraints with different priorities : C1, C2, C3, ..., Cn where C1
are higher then C2. Currently, I've tried to set different weight for each
of them : C1 get higher weight. But it's not sufficient since multiple C2
may balance one C1. What I really need is to set the priority to every soft
constraints.
Solution #1 :
My first thought it to implement a new score definition
(HardAndSoftPriorityScoreDefinition) having separate soft score for each
priority. The rule may insert ConstraintOccurence by defining the weight
and the priority. This solution seems elegant but require effort to
implement the score definition, the score calculation, and other things I
don't even know about.
Solution #2 :
The other solution is stated in the Drools Planner User Guide :
"Most use cases will also weigh their constraints differently, by
multiplying the count of each score rule with its weight. For example in
freight routing, you can make 5 broken "avoid crossroads" soft constraints
count as much as 1 broken "avoid highways at rush hour" soft constraint.
This allows your business analysts to easily tweak the score function as
they see fit."
Even tough I don't know how to implement this, it's seems much easier to
achieve since it's only a rule. Compare to solution #1, it's lack the
support of soft constraints with same priority but different weights.
What is your opinion about both solution.
Is one faster then the other ?
Is it hard to create a new score definition ?
Did anyone ever did this ?
--
Patrik Dufresne
14 years, 3 months