Monday, December 15, 2008

Adding jBPM support to a Seam app

I created my app with seam-gen. While adding support for jBPM, I got the following error :

Caused by: org.dom4j.DocumentException: Error on line 29 of document  : The prefix "bpm" for element "bpm:jbpm" is not bound. Nested exception: The prefix "bpm" for element "bpm:jbpm" is not bound.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.jboss.seam.util.XML.getRootElement(XML.java:24)
at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:217)

The fix was to add the following to <components> declaration in the components.xml :


xmlns:bpm="http://jboss.com/products/seam/bpm"
Here's a nice tutorial from mastertheboss on adding jBPM support to a Seam app.

No comments: