[JBoss jBPM] - Re: Please help me, 'scheduler' unavailable ??
by EugeneV
"cwad0000" wrote : have you created a scheduler and started it?
|
I just realized that it was not running (in a separate JVM, as per docs) because it was throwing a null pointer exception. So, then I modified the source as explained in http://jira.jboss.com/jira/browse/JBPM-315?page=comments. Now I see:
13:45:11,943 [main] DEBUG Scheduler : starting the scheduler
| 13:45:11,959 [main] INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
| 13:45:11,959 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
| 13:45:12,381 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
| 13:45:12,396 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
| 13:45:12,396 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
| 13:45:12,396 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
| 13:45:12,396 [main] DEBUG JbpmConfiguration : loading specific configuration...
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
| 13:45:12,412 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
| 13:45:12,427 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
| 13:45:12,427 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
| 13:45:12,427 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
| 13:45:12,427 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
| 13:45:12,459 [JbpmScheduler] DEBUG JbpmContextInfo : creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
| 13:45:12,459 [JbpmScheduler] DEBUG JbpmContext : creating JbpmContext
| 13:45:12,459 [JbpmScheduler] DEBUG DbPersistenceServiceFactory : creating persistence service
| 13:45:12,459 [JbpmScheduler] DEBUG JbpmContext : closing JbpmContext
| Exception in thread "JbpmScheduler" java.lang.NoClassDefFoundError: org/hibernate/Session
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55)
| at org.jbpm.svc.Services.getService(Services.java:136)
| at org.jbpm.svc.Services.getPersistenceService(Services.java:175)
| at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:594)
| at org.jbpm.JbpmContext.getSchedulerSession(JbpmContext.java:527)
| at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:103)
| at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984624#3984624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984624
19Â years, 6Â months
[JBoss Seam] - Re: Wildcards for no-conversation-view-id
by iradix
I've got an idea for revamping pages.xml. What if Page objects had a parent child relationship with each other, less specific matches parenting more specific children. For attributes that can only have a single value (no-conversation-id for instance) if the value isn't defined directly on the child, it will call through to it's parent until a value is found. For multiple values, like Page Parameters, the collections for each page in the hierarchy are combined, least specific first.
Actions would be treated like page parameters, and if I make this change I'd actually like add a nested element as well so that more than one action can be defined per page. I think this will be very useful for generic validations.
I also think an inheritFromParent flag would be useful in situations like the one I outlined above. If you want to explicitly define the ordering of your page actions, you could just set it to true and redifine within the specific page.
What do you think?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984622#3984622
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984622
19Â years, 6Â months