[JBoss jBPM] - Multiple Simultaneous Task Instances of the Same Task
by dleerob
Lets say we have a task node, called "My Node". On that task node, we have a task, called "My Task".
Lets say now that a manager selects a list of users, could be one user, could be fifty users, that have to now each complete an instance of "My Task". Lets call the number of users he selects 'N'. Is it possible to create 'N' number of task instances of "My Task", each assigned to each of the 'N' number of users selected, so they now all have to finish their "My Task" task instance (simultaneously/in parallell), and the token will only then move forward onto the next node once all 'N' task instances have been completed?
Anyone know if this is possible with Jbpm, or have any idea how to go about it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100095#4100095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100095
18Â years, 5Â months
[JNDI/Naming/Network] - Re: Missing EJB 3.0 Session bean name in Global JNDI Namespa
by benix
Here's the server log on startup. as found at the end of the log, the SampleEnterprise.ear does get deployed without any errors. also i could access a few pages of the application until the moment the lookup code is executed..
| ===============================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: D:\jboss-4.0.5.GA\bin\\..
|
| JAVA: C:\Program Files\Java\jdk1.6.0\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
| ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: C:\Program Files\Java\jdk1.6.0\lib\tools.jar;D:\jboss-4.0.5.GA\bin\
| \run.jar
|
| ===============================================================================
|
| 17:46:19,343 INFO [Server] Starting JBoss (MX MicroKernel)...
| 17:46:19,359 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
| nch_4_0 date=200610162339)
| 17:46:19,359 INFO [Server] Home Dir: D:\jboss-4.0.5.GA
| 17:46:19,359 INFO [Server] Home URL: file:/D:/jboss-4.0.5.GA/
| 17:46:19,359 INFO [Server] Patch URL: null
| 17:46:19,359 INFO [Server] Server Name: default
| 17:46:19,359 INFO [Server] Server Home Dir: D:\jboss-4.0.5.GA\server\default
| 17:46:19,359 INFO [Server] Server Home URL: file:/D:/jboss-4.0.5.GA/server/defa
| ult/
| 17:46:19,359 INFO [Server] Server Log Dir: D:\jboss-4.0.5.GA\server\default\log
|
| 17:46:19,359 INFO [Server] Server Temp Dir: D:\jboss-4.0.5.GA\server\default\tm
| p
| 17:46:19,359 INFO [Server] Root Deployment Filename: jboss-service.xml
| 17:46:20,156 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
| 17:46:20,156 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0-b105,S
| un Microsystems Inc.
| 17:46:20,156 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 17:46:20,921 INFO [Server] Core system initialized
| 17:46:23,593 INFO [WebService] Using RMI server codebase: http://EDC-BENI:8083/
|
| 17:46:23,625 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
| ce:log4j.xml
| 17:46:33,296 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date
| =200609291417)
| 17:46:34,812 INFO [Embedded] Catalina naming disabled
| 17:46:34,875 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
| the classpath. Will load the default rule set.
| 17:46:34,875 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
| the classpath. Will load the default rule set.
| 17:46:35,218 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
| .0.0-8080
| 17:46:35,234 INFO [Catalina] Initialization processed in 359 ms
| 17:46:35,234 INFO [StandardService] Starting service jboss.web
| 17:46:35,234 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.2
| 0
| 17:46:35,265 INFO [StandardHost] XML validation disabled
| 17:46:35,328 INFO [Catalina] Server startup in 94 ms
| 17:46:35,656 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
| http-invoker.sar/invoker.war/
| 17:46:36,578 INFO [WebappLoader] Dual registration of jndi stream handler: fact
| ory already defined
| 17:46:37,296 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
| b-tomcat55.sar/ROOT.war/
| 17:46:37,984 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
| loy/tmp26714jbossws-context-exp.war/
| 17:46:38,687 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
| deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 17:46:40,125 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
| loy/management/console-mgr.sar/web-console.war/
| 17:46:41,390 INFO [MailService] Mail Service bound to java:/Mail
| 17:46:41,843 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-ha-local-jdbc.rar
| 17:46:42,062 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 17:46:42,281 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-local-jdbc.rar
| 17:46:42,515 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jboss-xa-jdbc.rar
| 17:46:42,625 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/jms/jms-ra.rar
| 17:46:42,828 INFO [RARDeployment] Required license terms exist, view META-INF/r
| a.xml in .../deploy/mail-ra.rar
| 17:46:44,015 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
| :service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 17:46:44,453 INFO [A] Bound to JNDI name: queue/A
| 17:46:44,468 INFO [B] Bound to JNDI name: queue/B
| 17:46:44,468 INFO [C] Bound to JNDI name: queue/C
| 17:46:44,468 INFO [D] Bound to JNDI name: queue/D
| 17:46:44,468 INFO [ex] Bound to JNDI name: queue/ex
| 17:46:44,500 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 17:46:44,500 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 17:46:44,500 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
|
| 17:46:44,515 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 17:46:44,593 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
| 0.0:8093
| 17:46:44,671 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 17:46:44,875 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
| :service=DataSourceBinding,name=beniDataSource' to JNDI name 'java:beniDataSourc
| e'
| 17:46:45,171 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
| oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 17:46:45,328 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
| loy/jmx-console.war/
| 17:46:45,859 INFO [EARDeployer] Init J2EE application: file:/D:/jboss-4.0.5.GA/
| server/default/deploy/SampleEnterprise.ear
| 17:46:49,203 INFO [EJBDeployer] Deployed: file:/D:/jboss-4.0.5.GA/server/defaul
| t/tmp/deploy/tmp26747SampleEnterprise.ear-contents/SampleEnterprise-ejb.jar
| 17:46:49,234 INFO [TomcatDeployer] deploy, ctxPath=/SampleEnterprise-war, warUr
| l=.../tmp/deploy/tmp26747SampleEnterprise.ear-contents/SampleEnterprise-war-exp.
| war/
| 17:46:50,046 INFO [EARDeployer] Started J2EE application: file:/D:/jboss-4.0.5.
| GA/server/default/deploy/SampleEnterprise.ear
| 17:46:50,187 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
| -8080
| 17:46:50,812 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 17:46:50,828 INFO [JkMain] Jk running ID=0 time=0/47 config=null
| 17:46:50,859 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
| ch_4_0 date=200610162339)] Started in 31s:500ms
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100093#4100093
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100093
18Â years, 5Â months
[JBoss Seam] - @Asynchronous mail example fails
by pietermartin
Hi,
Sending a simple mail works fine but sending a simple mail asynchronously fails with java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factor.
I am using jboss-seam-2.0.0.CR3 and jboss-4.2.1.GA
Exception is
|
| 09:01:45,708 ERROR [STDERR] java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
| 09:01:45,709 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
| 09:01:45,709 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60)
| 09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95)
| 09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77)
| 09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
| 09:01:45,709 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:18)
| 09:01:45,710 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:01:45,710 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:01:45,710 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:01:45,710 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 09:01:45,710 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor_$$_javassist_2.scheduleSend(AsynchronousMailProcessor_$$_javassist_2.java)
| 09:01:45,711 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:01:45,711 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:01:45,711 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:01:45,711 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| 09:01:45,711 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
| 09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
| 09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
| 09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:114)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.FutureTask.run(FutureTask.java:123)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| 09:01:45,712 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| 09:01:45,712 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
|
|
|
Is this a bug?
Thanks
Pieter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100087#4100087
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100087
18Â years, 5Â months
[Beginners Corner] - Re: USERS and ROLES - why in seperate tables?
by konstandinos
Thanks for the reply.
Your post makes total sense: sticking to First-Normal form is the ideal, and thus I should have a row in my ROLES table for each username->Role mapping.
What is weird though is that in my current application-policy (which uses DatabaseServerLoginModule) my module-option for "rolesQuery" has the following:
<module-option name = "rolesQuery">SELECT role_name, role_group FROM __user_roles WHERE user_id=?</module-option>
... and in my __user_roles table I have just one row for each username, and under the role_name column I have a comma-separated list of Roles.
I am using this because that's what the jboss docs advised. I guess what is confusing to me is the fact that this still works.
So bearing in mind that the comma-separate roles approach works just fine, are there any real benefits to sticking to First-Normal form in this case?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100086#4100086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100086
18Â years, 5Â months
[Persistence, JBoss/CMP, Hibernate, Database] - jboss with postgres database using hibernate and spring
by jyotiva
I have an application based on springs and hibernate, which is working fine with Mysql database on
jboss 4.0.3. I am trying to change the database from mysql to postgres. The database porting has been successful and i have generted the hibernate files. Jboss configuration has also been modified w.r.t the newdatabase. When i start the jboss, i get the following error:
11:25:31,115 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: 42703
11:25:31,115 ERROR [JDBCExceptionReporter] ERROR: column usersadapt0_.user_id do
es not exist
11:25:31,130 INFO [STDOUT] org.springframework.orm.hibernate3.HibernateJdbcExce
ption: JDBC exception on Hibernate data access; nested exception is org.hibernat
e.exception.SQLGrammarException: could not execute query
11:25:31,130 INFO [STDOUT] Caused by:
11:25:31,130 INFO [STDOUT] org.hibernate.exception.SQLGrammarException: could n
ot execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:65)
the above column exists in the database..but it is not able to recognize.
I have - postgres 8.3
Postgres driver PostgreSQL 7.4 JDBC3 with SSL (build 210)
The 8.3 driver is giving some error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100085#4100085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100085
18Â years, 5Â months
[JBoss jBPM] - Re: How to save values to a node?
by dleerob
Thanks for the input.
I did originally have it like that. However, our framework automatically generates a history page of variables that were set at each task instance in a process (iterates through all task instances for a process). It then displays a list of each completed task instance to the user, along with all their variables under each task name.
Problem is that if I don't use a task node with a task, then the framework wont really know at which node the variables were set. i.e There wont be a task instance for it, so it just wont be shown.
Do you have any ideas on another way to link/add variables to a "node", and not a "task node"? So if it doesn't have a task instance, how would I know at which point in the flow, or which node the variables "belong" to?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100084#4100084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100084
18Â years, 5Â months