Hi,
I am having an issue in integrating GUVNOR and JBPM-FORM-BUILDER when I deploy guvnor and
form builder on different nodes. I am getting Http-500 : Error getting task from Guvnor.
Or I am getting Http 404 : /jbpm-form-builder/embed. It asks for authentication to
form-builder And the error comes after successful authentication. I cannot find any server
log printed, only the error comes on screen. Attached is the screen shot.
All works fine when I deploy guvnor and form builder on the same node. But on different
nodes the errors are seen while opening/creating the form definitions from guvnor.1
Environment :
Node 1:
1. drools-guvnor.war
2. designer.war
Node 2:
1. jbpm-form-builder.war
Server tried with
a. Jboss EAP6.0.1
b. Jboss AS-7.1
2. Guvnor 5.4.0
3. Jbpm-form-builder 5.4
Guvnor Preference.properties: path=>drools-guvnor.war/WEB-INF/classes/
#
# Global preferences for Guvnor web app.
visual-ruleflow=true
verifier=true
oryx-bpmn-editor=true
# asset.format.enabled.XYZ determines if format XYZ (as named inside guvnor extensions)
# is enabled on the current guvnor instalation
asset.format.enabled.formdef=true
# Date and language settings
drools.dateformat=dd-MMM-yyyy
drools.defaultlanguage=en
drools.defaultcountry=US
#RuleModeller (guided editor) checkbox default value
rule-modeller-onlyShowDSLStatements=false
#Designer configuration
designer.url=http://localhost:8080
#Do not change this unless you know what are you doing
designer.context=designer
designer.profile=jbpm
#FormBuilder configuration
#Do not change this unless you know what are you doing
formbuilder.url=http://localhost:8280
formbuilder.context=jbpm-form-builder
formbuilder.profile=guvnor
Form-builder . springcomponents.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
<!-- Select configuration strategy -->
<bean id="strategy" class="java.lang.String">
<constructor-arg type="java.lang.String" value="guvnor"/>
</bean>
<!-- Guvnor configuration -->
<bean id="guvnorUrl" class="java.lang.String">
<constructor-arg type="java.lang.String"
value="http://localhost:8080/drools-guvnor"/>
</bean>
<bean id="guvnorUser" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="guvnorPass" class="java.lang.String">
<constructor-arg type="java.lang.String" value="admin"/>
</bean>
<bean id="serviceFactory"
class="org.jbpm.formbuilder.server.ServiceFactory"
factory-method="getInstance"/>
<!-- Guvnor services -->
<bean id="guvnorFileService"
class="org.jbpm.formbuilder.server.file.GuvnorFileService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorFormService"
class="org.jbpm.formbuilder.server.form.GuvnorFormDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorTaskService"
class="org.jbpm.formbuilder.server.task.GuvnorTaskDefinitionService">
<property name="baseUrl" ref="guvnorUrl"/>
<property name="user" ref="guvnorUser"/>
<property name="password" ref="guvnorPass"/>
</bean>
<bean id="guvnorMenuService"
class="org.jbpm.formbuilder.server.menu.GuvnorMenuService">
</bean>
</beans>
[cid:image001.png@01CE54BB.19387130]
Regards,
Zahid