[jBPM] - jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String.
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String."
To view the discussion, visit: https://community.jboss.org/message/733763#733763
--------------------------------------------------------------
Hi,
I'm passing an object of type Task to WorkItemHandler implementation and it lands in params map as after invoking toString method on my obejct.
WID definition:
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.FloatDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
// the CreateProject work item
[
"name" : "TaskTime",
"parameters" : [
"host" : new StringDataType(),
"task" : new ObjectDataType(),
"date" : new ObjectDataType(),
"time" : new FloatDataType(),
],
"displayName" : "TaskTime",
"icon" : "icons/taskTime.png"
]
]
When I double click on my domain specific node on designer I get a window where I can provide values for parameters. So for task param I have given #{taskObj} and instead of an actual object I have received a String version of this object. The workaround is to explicitly map this param in properties view, but the idea was to give users UI for setting those values in more pleasent way.
ANOTHER problem is that when I set some values to my custom node than Properties view is not changing accorgingly to my my node type. Meannig when I click on some node than the Properties view is updated to show those props. Than when I click to my TaskTime node than Properties view has only those props which ware available for previous node, and if some props are common for both node than values for tham are updated with ne values. So when I click on my TaskTime node I can see the host,task,date,time properties, nor I can see on Entry and on Exit action properties. Furthermore If previosus node had such properties than I can see them for TaskTime node but when I update them than they are updated for that previosud node.
Can someone confirm those issues? Any help on workarounds?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733763#733763]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[JBoss Tools] - Re: Birt 3.7
by Izaak van Niekerk
Izaak van Niekerk [https://community.jboss.org/people/sakkie6yster] created the discussion
"Re: Birt 3.7"
To view the discussion, visit: https://community.jboss.org/message/763819#763819
--------------------------------------------------------------
We are trying to do the same thing (more or less); trying to integrate Birt (4.2.1) with JSF 2.0.
I have followed this forum and tried to implement the same structure but unfortunately without any success.
In essence I created a web project and included the jboss-birt-servlet.jar in my WEB-INF/lib/ folder.
I also copy-pasted all of the jars from the birt runtime (4.2.1) from "birt-runtime-4_2_1\WebViewerExample\WEB-INF\lib"
into the WEB-INF/lib/ folder.
I don't need the jboss-seam-birt.jar right? As this is not really making use of Seam?
I have added the configuration to my web.xml (as directed by Bussard :) )
Furthermore I have my report folder in WebContent/Reports/my_report.rptdesign.
And the very basic tag in my facelet:
<b:birt designName="Customers.rptdesign" designType="embed" format="html" embedded="true">
</b:birt>
When I deploy this (to Glassfish 3.1.2.2 - is this ok?) I get the error message:
+*Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd*+
I must confess that I didn't use the JBoss Tools plugin for Eclipse but rather created the project as a "Dynamic Web Project".
Is this a problem?
Important to note that after the error message on the Glassfish console, the page is still accessible and I can see my Primefaces components, but the report is never displayed?
Am I missing something in my project perhaps?
One thing I might be missing; Bussard mentions the following:
4 - Copy this files to the new WA:
/WebContent/WEB-INF/tlds
/WEB-INF/viewer.properties
/WEB-INF/server-config.wsdd
Where do I find these files and are they important?
Any help/suggestions will be appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/763819#763819]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - Problem with ldap authentication
by Jose Miguel Loor
Jose Miguel Loor [https://community.jboss.org/people/jmiguel77] created the discussion
"Problem with ldap authentication"
To view the discussion, visit: https://community.jboss.org/message/763751#763751
--------------------------------------------------------------
I have an installation of brms-standalone-5.3.0 server, connected to my office ldap this way:
In the login-config
<!--
BRMS Platform Security Domain
-->
<application-policy name="brms">
<authentication>
<!--
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
<module-option name="usersProperties">props/brms-users.properties</module-option>
<module-option name="rolesProperties">props/brms-roles.properties</module-option>
</login-module>
-->
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" >
<module-option name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</module-option>
<module-option name="java.naming.provider.url">ldap://192.168.0.5:389</module-option>
<module-option name="bindDN">cn=admin,dc=ndeveloper,dc=com</module-option>
<module-option name="bindCredential">ndeveloper</module-option>
<module-option name="baseCtxDN">ou=People,dc=ndeveloper,dc=com</module-option>
<module-option name="baseFilter">(cn={0})</module-option>
<module-option name="rolesCtxDN">ou=Group,dc=ndeveloper,dc=com</module-option>
<module-option name="roleFilter">(member={1})</module-option>
<module-option name="roleAttributeID">gidNumber</module-option>
<module-option name="roleAttributeIsDN">false</module-option>
<module-option name="roleNameAttributeID">cn</module-option>
<module-option name="roleRecursion">-1</module-option>
<module-option name="searchScope">ONELEVEL_SCOPE</module-option>
</login-module>
</authentication>
</application-policy>
and in the components.xml
<security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="brms"/>
I can login to th jboss-brms console, register a Guvnor repository in jboss dev studio, and add a new package with a diagram But when i log in to the brms console, search for my package and open the process file, i get this error:
2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) initialize
2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Security domain: brms
2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) login
2012-10-08 11:41:40,675 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Logging into LDAP server, env={java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, roleNameAttributeID=cn, searchScope=ONELEVEL_SCOPE, java.naming.security.principal=cn=admin,dc=ndeveloper,dc=com, roleRecursion=-1, baseCtxDN=ou=People,dc=ndeveloper,dc=com, roleAttributeID=gidNumber, roleFilter=(member={1}), rolesCtxDN=ou=Group,dc=ndeveloper,dc=com, baseFilter=(cn={0}), jboss.security.security_domain=brms, java.naming.provider.url=ldap://192.168.0.5:389, roleAttributeIsDN=false, bindDN=cn=admin,dc=ndeveloper,dc=com, bindCredential=*****, java.naming.security.authentication=simple, java.naming.security.credentials=***}
2012-10-08 11:41:40,680 DEBUG [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) Bad password for username=admin
2012-10-08 11:41:40,680 TRACE [org.jboss.security.auth.spi.LdapExtLoginModule] (http-127.0.0.1-8080-7) abort
2012-10-08 11:41:40,683 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jboss-brms].[OryxEditorServlet]] (http-127.0.0.1-8080-7) Servlet.service() for servlet OryxEditorServlet threw exception
java.lang.IllegalArgumentException: Unable to authenticate user.
at org.drools.guvnor.server.files.OryxEditorServlet.service(OryxEditorServlet.java:53)
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:65)
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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/763751#763751]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months