AnsweredAssumed Answered

Deploying via Process Designer and manually

Question asked by kerkira67 on Nov 3, 2006
Latest reply on May 11, 2012 by chaabani
Hi,

I am writing and deploying some workflow test definitions  using eclipse jBPM plugin. For some of them deployment fails with the following error message:
Exception happened while deploying

java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/alfresco/jbpm/deployprocess
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1149)
   at org.jbpm.ui.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
   at org.jbpm.ui.util.ProcessDeployer.access$3(Unknown Source)
   at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
   at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
   at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
   at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:479)
   at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
   at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
   at org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
   at org.eclipse.core.launcher.Main.run(Main.java:977)
   at org.eclipse.core.launcher.Main.main(Main.java:952)

I have also tried to manually deploy the definitions. In order to do that I created the file workflow-bootstrap-context.xml in the %ALFRESCO_HOME%\jboss\server\default\conf\alfresco\extension\bootstrap directory. Here is the content of the file:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

<bean id="myworkflows.workflowBootstrap" parent="workflowDeployer">
   <property name="workflowDefinitions">
      <list>
         <props>
            <prop key="engineId">jbpm</prop>
            <prop key="location">alfresco/workflow/NegoziazioneCommesse.xml</prop>
            <prop key="mimetype">text/xml</prop>
         </props>
      </list>
   </property>
</bean>

</beans>

I put the NegoziazioneCommesse.xml file under %ALFRESCO_HOME%\jboss\server\default\conf\alfresco\workflow.
Here is the content of the file:

<?xml version="1.0" encoding="UTF-8"?>

<process-definition
  xmlns="urn:jbpm.org:jpdl-3.1"  name="NegoziazioneCommesse">
   <swimlane name="istituto">
      <assignment expression="istituto"></assignment>
   </swimlane>
   <swimlane name="dipartimento">
      <assignment expression="dipartimento"></assignment>
   </swimlane>
   <swimlane name="progettazione operativa">
      <assignment expression="progop"></assignment>
   </swimlane>
   <start-state name="Inizio">
      <transition name="" to="Stato intermedio">
      </transition>
   </start-state>
   <state name="Stato intermedio">
      <transition name="" to="Fine">
      </transition>
   </state>
   <end-state name="Fine"></end-state>
</process-definition>

When starting alfresco, I get the following error message:

14:01:50,390 ERROR [ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Workflow deployment failed
        at org.alfresco.repo.workflow.WorkflowDeployer.deploy(WorkflowDeployer.j
ava:216)
        at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeplo
yer.java:227)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLi
fecycleBean.java:54)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:45)
        at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:225)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:323)


Where do I mistake?

Thank you very much

Roberto

Outcomes