Hi,
I have deployed the processdefinition with very simple code as follow,
ProcessDefinition def = ProcessDefinition.parseXmlResource("source/processdefinition.xml");
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
jbpmContext.deployProcessDefinition(def);
I made it soo simple but it is not working, the error messages are
DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.1.xsd)
DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.1.xsd' resource
DEBUG NodeTypes : node 'page' will not be available. class 'org.jboss.seam.pageflow.Page' couldn't be loaded
DEBUG NodeTypes : node 'start-page' will not be available. class 'org.jboss.seam.pageflow.Page' couldn't be loaded
Exception in thread "main" java.lang.NullPointerException
Please guide me where i am making wrong!
Thank you
at source.deploy.main(deploy.java:19)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000560#4000560
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000560
Is it working?
i.e. If I specify an alternate EntityManager in components.xml it isn't being injected:
<component name="org.jboss.seam.selectitems.SelectItemsConfig">
| <property name="entityManager">#{MyAlternateEM}</property>
| </component>
I know 'MyAlternateEM' exists as the rest of my app is using it, and if I debug org.jboss.seam.selectitems.Config#find(Class,Object) and change the String 'entityManager' passed into Component.getInstance() to 'MyAlternateEM' all is well.
(I've also tried dropping the '#{' and '}' from around 'MyAlternateEM' in components.xml to no avail)
Any ideas?
Thanks and regards,
Sean
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000556#4000556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000556
I can spot two problems
1) If you specify a key, then you should be the value attribute of the selectOneMenu should point to a String setter method (in this or the action method convert it to an object).
So this explains the first exception.
2) If you specify a converter then don't specify a key (that will just confuse things)
Quite why you got the second exception, I'm not sure, but I would suspect a classloading exception - make sure the selectitems.jar is in the classpath of the ear, and the selectitems-ui.jar is in the classpath of the war.
Btw I would recommend writing a custom converter to using a key.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000554#4000554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000554
hi everybody,
when I want to create a process with :
| JbpmConfiguration jbpmconfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmconfiguration.createJbpmContext();
| try {
| ProcessInstance processInstance = jbpmContext.newProcessInstance("WorkflowNode");
| }finally{
| jbpmContext.close();
| }
|
hi give error :
exception can't create a process instance when processDefinition is null.
thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000551#4000551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000551
Thxs. I corrected the typo, but it's still not working. I also can't see it in the JNDI Tree of the MX console so it seems to be a binding problem. It should appear there, right?
Well, there is no real argument for using this over that. But I read the oreilly books and follow standards. So, I guess if there is a standard way of doing something, and I mean industry standard, I rather use it.
But since seam and many other things are proprietary in the first place there is really no point in not using what you suggest. I guess it's just a prefence to choose standards over propiertary software.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000547#4000547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000547