[jBPM] - How to implement "Move to this node"
by David Caicedo
David Caicedo [https://community.jboss.org/people/david.caicedo.tcs] created the discussion
"How to implement "Move to this node""
To view the discussion, visit: https://community.jboss.org/message/735730#735730
--------------------------------------------------------------
Hi,
I'm trying to recreate a functionality "Move to this Node" in the jbpm-console, because I want to create some process Instances and move them to specific node.
I've read something in this forum, but I just know that it´s possible, but I don't know what is the way, 'cause the post only said: "check the API".
I checked javadoc aboud Node, Token, ExecutionContext, etc... but I couldn´t find a clue to move my token to specific node, So I´m expecting find
a method called like moveTOXXX or something like that. Till now I´ve not found it.
Please maybe somenone can support me to implement this solution.
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735730#735730]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[Beginner's Corner] - JAAS Login issue
by ionutvaidianu
ionutvaidianu [https://community.jboss.org/people/ionutvaidianu] created the discussion
"JAAS Login issue"
To view the discussion, visit: https://community.jboss.org/message/728886#728886
--------------------------------------------------------------
Hello,
I'm quite new to JBoss AS, so please bare with me and any help is appreciated.
Here is my problem: I have a RichFaces web application and I want to restrict access to most of the pages. As far as I have found so far the best way (opened for suggetions and debate here) to secure content is at container level by defining a security domain and a module that will authorize the users so they can be able to access secured pages.
I have done all the configuration, the pages are protected, but even from a user that authenticates. In other words event after authentication I get redirected to the login page and cannot access any of the protected pages. I get no error / message in the server console (The log level for CONSOLE is on DEBUG).
Is it a known issue, is there a WA for it or am I doing something wrong?
Thanks!
Here is the setup:
JBoss AS 7.1.1 Final, standalone configuration.
The security domain (the associated datasource is functional because at some point I got wrong password in the server console):
<security-domain name="SecuredRealm">
<authentication>
<login-module code="Database" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/securityDS"/>
<module-option name="principalsQuery" value="select passwd from Users where username=?"/>
<module-option name="rolesQuery" value="select userRoles,'Roles' from UserRoles where username=?"/>
<module-option name="hashAlgorithm" value="MD5"/>
<module-option name="hashEncoding" value="base64"/>
<module-option name="unauthenticatedIdentity" value="guest"/>
<module-option name="maxInvalidLoginAttempts" value="5"/>
</login-module>
</authentication>
</security-domain>
jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<security-domain>java:/jaas/SecuredRealm</security-domain>
</jboss-web>
web.xml
|
| <security-constraint> |
|
|
| <web-resource-collection> |
|
|
|
| <web-resource-name>SecuredRealm</web-resource-name> |
|
|
|
| <url-pattern>/*</url-pattern> |
|
|
|
| <http-method>GET</http-method> |
|
|
|
| <http-method>POST</http-method> |
|
|
| </web-resource-collection> |
|
|
| <auth-constraint> |
|
|
|
| <role-name>*</role-name> |
|
|
| </auth-constraint> |
|
|
| <!-- <user-data-constraint> --> |
|
|
| <!-- <transport-guarantee>CONFIDENTIAL</transport-guarantee> --> |
|
|
| <!-- </user-data-constraint> --> |
|
| </security-constraint> |
|
| <security-constraint> |
|
|
| <web-resource-collection> |
|
|
|
| <web-resource-name>Unprotected area</web-resource-name> |
|
|
|
| <url-pattern>/resources/*</url-pattern> |
|
|
| </web-resource-collection> |
|
| </security-constraint> |
|
| <login-config> |
|
|
|
| <auth-method>FORM</auth-method> |
|
|
|
| <realm-name>SecuredRealm</realm-name> |
|
|
|
| <form-login-config> |
|
|
|
|
| <form-login-page>/jasl.jsf</form-login-page> |
|
|
|
| <form-error-page>/jasl.jsf</form-error-page> |
|
|
| </form-login-config> |
|
|
| </login-config> |
|
|
| <security-role> |
|
|
|
| <role-name>admin</role-name> |
|
|
| </security-role> |
|
|
| <security-role> |
|
|
|
| <role-name>normal</role-name> |
|
|
| </security-role> |
|
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728886#728886]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[jBPM] - Re: Console crashes on opening Process Overview (fresh jBPM5.2 installation)
by hamsterdancer
hamsterdancer [https://community.jboss.org/people/hamsterdancer] created the discussion
"Re: Console crashes on opening Process Overview (fresh jBPM5.2 installation)"
To view the discussion, visit: https://community.jboss.org/message/647034#647034
--------------------------------------------------------------
Ok we found the problem.
As Tihomir already said, the problem is about the version of commons codec. We found THREE different versions of commons codec in the different projects which are parts of the jBPM Installer. 1.3, 1.4 and 1.5.
It looks like jboss loads the libraries in a different order on different systems. The following output (I've got by a colleague) may help to fix the problem permanently.
> 18:32:21,749 INFO [stdout] (http-localhost-127.0.0.1-8080-1)
> >>>>>>>>>>>> commons codec location :
> vfs:/content/jbpm-gwt-console-server.war/WEB-INF/lib/org.apache.commons.codec_1.3.0.v201101211617.jar
> 18:32:21,750 ERROR
> [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server]]
> (http-localhost-127.0.0.1-8080-1) StandardWrapper.Throwable:
> java.lang.NoSuchMethodError:
> org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
Our temporary solution is to change the build.xml to exclude the old library on the jboss installation
> <!-- Install reporting AS7 -->
> <target name="install.reporting.into.jboss7" depends="check.birt.as7" if="birt.download" >
> <mkdir dir="${install.home}/birt"/>
> <unzip src="${install.home}/lib/birt-runtime-${birt.version.as7}.zip"
> dest="${install.home}/birt"/>
> <copy todir="${install.home}/target/jbpm-gwt-console-server-war/WEB-INF/lib">
> <fileset dir="${install.home}/birt/birt-runtime-${birt.version.as7}/ReportEngine/lib">
> <include name="**/*.jar"/>
> <exclude name="**/org.apache.commons.codec_1.3.0.v201101211617.jar"/>
> </fileset>
> </copy>
I hope it helps without causing additional problems^^
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647034#647034]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[jBPM] - IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.BPMN2ProcessProvider'
by mutou wang
mutou wang [https://community.jboss.org/people/mutou] created the discussion
"IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.BPMN2ProcessProvider'"
To view the discussion, visit: https://community.jboss.org/message/737590#737590
--------------------------------------------------------------
Hello, everyone!
When I was running the java sentences:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newFileResource(filename), ResourceType.BPMN2);
the second line throws a IIIlegalArgumentException like this:
java.lang.IllegalArgumentException: Unable to instantiate service for Class 'org.drools.compiler.BPMN2ProcessProvider' at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:161)
at org.drools.compiler.BPMN2ProcessFactory.loadProvider(BPMN2ProcessFactory.java:29)
at org.drools.compiler.BPMN2ProcessFactory.getBPMN2ProcessProvider(BPMN2ProcessFactory.java:21)
at org.drools.compiler.BPMN2ProcessFactory.configurePackageBuilder(BPMN2ProcessFactory.java:12)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:607)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:37)
at org.thgrid.robinia.executor.impl.JbpmInstance.readKnowledgeBase(JbpmInstance.java:85)
at org.thgrid.robinia.executor.impl.JbpmInstance.doIt(JbpmInstance.java:64)
at org.thgrid.robinia.executor.impl.AbstractInstance.run(AbstractInstance.java:154)
at org.thgrid.robinia.event.CallbackEventHandler.handle(CallbackEventHandler.java:11)
at org.thgrid.robinia.event.EventProcessThread.handleEvent(EventCenter.java:67)
at org.thgrid.robinia.event.EventProcessThread.run(EventCenter.java:45)
Caused by: java.lang.IllegalArgumentException: Unable to instantiate 'org.jbpm.bpmn2.BPMN2ProcessProviderImpl' at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:210)
at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.call(ServiceRegistryImpl.java:202)
at org.drools.util.ServiceRegistryImpl.get(ServiceRegistryImpl.java:159)
... 11 more
Caused by: java.lang.ClassNotFoundException: org.jbpm.bpmn2.BPMN2ProcessProviderImpl at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source)
at org.drools.util.ServiceRegistryImpl$ReflectionInstantiator.newInstance(ServiceRegistryImpl.java:207) ... 13 more
I debuged this program for days and search the Internet for solutions, but in vain.
How could this Exceptions happen?
And What should I do to solve this problem??
Thank you!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737590#737590]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[JBoss Messaging] - Excessive disk usage on SQL 2008 R2 with JBoss messaging 1.4.2.GA-SP1
by Graeme Wright
Graeme Wright [https://community.jboss.org/people/gw2603] created the discussion
"Excessive disk usage on SQL 2008 R2 with JBoss messaging 1.4.2.GA-SP1"
To view the discussion, visit: https://community.jboss.org/message/729864#729864
--------------------------------------------------------------
We have seen issues when running Jboss 4.2.3 with JBoss Messaging 1.4.2.GA-SP1 using MS SQL 2008 R2 for the data-store where in high volume environments the disk usage is disproportionate to the volume of messages being persisted.
I know that there is a known behaviour with MS SQL and the following note from JBoss messaging docs explains this,
Microsoft SQL Server does not automatically de-allocate the hard-drive space occupied by data in a database when that data is deleted. If used as a data-store for services that temporarily store many records, such as a messaging service, the disk space used will grow to be much greater than the amount of data actually being stored. Your database administrator should implement database maintenance plans to ensure that unused space is reclaimed. Please refer to your Microsoft SQL Server documentation for the DBCC commands ShrinkDatabase and UpdateUsage for guidance. https://jira.jboss.org/jira/browse/SOA-629 https://jira.jboss.org/jira/browse/SOA-629
however we have seen the JBM_MSG table grow beyond the volumes actually being submitted, we have other similar environments that do not exhibit the same behaviour. Users believe the number that each message is consuming 5mb for what would only be at most few hundred KB message and is actually consming 200MB of disk to store this, obviously this sounds like an issue with SQL Server and we have opened a ticket with Microsoft but was sseeing if anyone else had seen this.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729864#729864]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[jBPM] - Timer triggered more than it should after an exception (infinite loop some times).
by Miloud Haimoune
Miloud Haimoune [https://community.jboss.org/people/milhaim] created the discussion
"Timer triggered more than it should after an exception (infinite loop some times)."
To view the discussion, visit: https://community.jboss.org/message/736786#736786
--------------------------------------------------------------
Hi All,
I'm having an infinite loop in my business process in my project, so I reduced my process to a sample one and reproduced the bug. I'm using jbpm5.2 seam and jboss 5.1.
the process:
https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18600/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18...
In an ad-hoc model, I start the process and a timer is triggered each 60s to check some rules. I have a variable "iteration" which is incremented in the a script action (each time the triggered), after the third iteration a throw an exception with I catch in my processManager.
The rule where the exception is thrown
https://community.jboss.org/servlet/JiveServlet/showImage/2-736786-18601/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-736786-18...
To reproduce the bug I start tow process instance, let the exception occurred and start a new process instance than the timer is triggered 3, 4 5 times in a second and it should happen just ones each 60s. Some times this exception produces an infinite loop (triggering the timer).
I joined the process definition, the rule file and processmanager.ava (inspired from the jbpm console code).
My question :
Is it a problem in my code or a bug in jbpm, and if there is a way to workaround.
If you need any further information, please let me know.
thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/736786#736786]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months