Regarding tBRMS component and embedded Rules in talend
by Lavanya
Hi all,
I am new to Drools tool. I would like to implement the Drools Technical
Rule on the data (Excel file) through Talend Studio by using Embedded Rules
under the metadata or by using tBRMS component from palette. From both ways
we tried the job.
The technical Rule that we want to implement is:
package org.sample
import java.util.ArrayList
import java.util.HashMap
import java.lang.Integer
global ArrayList list
global HashMap globalMap
declare Number
message: String
numberone: Integer
numbertwo: Integer
end
rule "numberone is equals to numbertwo"
when
n: Number(numberone == numbertwo);
then
n.setMessage("numberone is equals to numbertwo");
end
rule "numberone is greater than numbertwo"
when
n: Number(numberone > numbertwo);
then
n.setMessage("numberone is greater than numbertwo");
end
rule "numberone is less than numbertwo"
when
n: Number(numberone < numbertwo);
then
n.setMessage("numberone is less than numbertwo");
end
which contains three rules we need to select one rule in the Embedded Rule
component.
*Note: *The component from embedded Rule and tBRMS component configurations
are different.
When I am using Embedded Rules Job is executed but Records are not getting
in the output.
If I am using the tBRMS component from palette in the configuration package
path, In the class URL in place of "package" it is converted to "packages"
when selecting the .jar file in the configuration. When executing the job it
is giving File not found Exception.
After selecting .jar If "packages" is replaced with "package" , it is giving
java.io.IOException: Server returned HTTP response code: 401 for URL
For these issues I have attached the screen shots as follows:
http://drools.46999.n3.nabble.com/file/n3603474/Embeddedrules.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_2.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_2.jpg
Please help me out in this issue.
Thanks and Regards,
Lavanya.
--
View this message in context: http://drools.46999.n3.nabble.com/Regarding-tBRMS-component-and-embedded-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
JbossAS 7 and JBPM Console Server problem
by Cristiano Gavião
Hi,
I'm trying to configure a JBoss AS 7 for JBPM.
I've downloaded the 5.2.0.Final installer, discompacted it and I'm
trying to install jbpm-gwt-console-server using JBossAS Admin Console.
I'm getting this messages:
> 20:09:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1)
> Deployment has its own Persistence Provider class
> org.hibernate.ejb.HibernatePersistence
> 20:09:08,243 INFO [org.jboss.as.server.controller]
> (HttpManagementService-threads - 13) Deployment of
> "jbpm-gwt-console-server-5.2.0.Final.war" was rolled back with failure
> message {"Services with missing/unavailable dependencies" =>
> ["jboss.persistenceunit.\"jbpm-gwt-console-server-5.2.0.Final.war#org.jbpm.persistence.jpa\"
> missing [ jboss.naming.context.java.jboss.java:jdbc.testDS1 ]"]}
> 20:09:08,391 INFO [org.jboss.as.server.deployment] (MSC service
> thread 1-1) Stopped deployment jbpm-gwt-console-server-5.2.0.Final.war
> in 164ms
what should I do to resolve this ?
thanks for any tip
Cheers
Cristiano
14 years, 6 months
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, 6 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, 6 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, 6 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, 6 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, 6 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, 6 months