[JBoss jBPM] - Re: Beginner question: Using jBPM from EJB application
by ruchika
Hello Jarppe,
Can ypu please list down the steps that I need to follow to access jBPM from an external standalone program. I am getting the following error:
log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml'
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
at EvenNumbersTest.main(EvenNumbersTest.java:15)
Caused by: org.jbpm.JbpmException: jbpm configuration resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml' is not available
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:286)
... 1 more
I am not sure what I am missing. Any help will be greatly appreciated.
Regards,
Ruchika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183737#4183737
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183737
15 years, 8 months
[JBoss jBPM] - Re: The jbpm does not read my custom hibernate.cfg.xml
by ruchika
Hello,
I have a standalone application from where I am trying to access bussiness process(I created using jpdl).
I tried what you suggested but I am getting the below error:
log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml'
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
at EvenNumbersTest.main(EvenNumbersTest.java:15)
Caused by: org.jbpm.JbpmException: jbpm configuration resource 'D:\eclipse_new\eclipse-SDK-3.4.1-win32\eclipse\workspace\TestEvenNumberjDPL\src\lib\jbpm.cfg.xml' is not available
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:286)
... 1 more
I am not sure what I am missing.
Can you please tell me steps to access process from standalone application?
Its urgent and any help will be greatly appreciated.
Regards,
Ruchika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183732#4183732
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183732
15 years, 8 months
[JBoss jBPM] - Re: Invoke jBPM workflow from external app
by ruchika
Hello,
Thanks for reply.
I try adding 'jbpm.cfg.xml' in class path but i am getting same error.
Below is the complete error stack trace:
log4j:WARN No appenders could be found for logger (org.jbpm.JbpmConfiguration).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml'
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292)
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:257)
at org.jbpm.JbpmConfiguration$Configs.getObjectFactory(JbpmConfiguration.java:425)
at org.jbpm.JbpmConfiguration$Configs.getObject(JbpmConfiguration.java:437)
at org.jbpm.JbpmConfiguration$Configs.getString(JbpmConfiguration.java:441)
at org.jbpm.graph.def.ProcessDefinition.createNewProcessDefinition(ProcessDefinition.java:97)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:179)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:160)
at EvenNumbersTest.main(EvenNumbersTest.java:42)
Caused by: org.jbpm.JbpmException: jbpm configuration resource 'jbpm.cfg.xml' is not available
at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:286)
... 9 more
I am not sure what I am missing.
Regards,
Ruchika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183717#4183717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183717
15 years, 8 months
[JBoss jBPM] - authorization, roles in jbpm
by laszlo99
Hi
I've downloaded jBPM-Suite and succesfully started jbpm-console under jboss. But I have to use another app server and I don't know how roles are passing to gravel (lib). I mean when I use jboss as app server, in login-config xml are defined rules like where roles should be taken from. Then in xhtml files are gravel's tags like '<ga:checkRole roles="#{access.role.process.deploy}">' where roles are from WEB-INF\access.properties. This tag allows to hide some data for users who shouldn't saw this section. But now there is a point. Roles from access.properties are passed to gravel lib by attribute of <ga:checkRole> tag, but how are passed roles saved for example in database (bounded with defined users like it sets in jbpm-suit sql examples)? How can i replace default authorization module by for example my module?
regards
laszlo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183523#4183523
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183523
15 years, 8 months