-
1. Re: Anybody have an example of how to embed the JBPM 6 Engine in a Liferay Vaadin application?
salaboy21 May 21, 2014 3:55 AM (in response to abhiramgiri)Hi Abhiram,
Let's say that nobody have a specific example about Liferay, Vaadin and jBPM, so in order for us to help you, you will need to be more concrete, about what kind of issues are you facing. Did you add the jBPM dependencies to your project? Did you tried to run a process? What are the errors? Those kind of things will help us to help you
Regards
-
2. Re: Anybody have an example of how to embed the JBPM 6 Engine in a Liferay Vaadin application?
abhiramgiri May 21, 2014 4:55 AM (in response to salaboy21)Hi Mauricio,
I am implementing jbpm in liferay vaadin. I am refering the example given by Maciej Swiderski as test-spring-ht-jta.zipMaciej Swiderski
In pom.xml I am adding these inside <properties>
<!--Added for JBPM-->
<jbpm.version>6.0.0.Final</jbpm.version>
In pom.xml I am adding these inside <dependencies>
<!--Added for JBPM-->
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-test</artifactId>
<version>${jbpm.version}</version>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-spring</artifactId>
<version>${jbpm.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>3.0.7.RELEASE</version>
</dependency>
In pom.xml I am adding these inside <repositories>
<!--Added for JBPM-->
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
I copied your kmodule-spring.xml to my META-INF folder
But it is showing the following error when I am deploying in liferay Jboss server
06:38:42,033 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."myproject.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myproject.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myproject.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS016053: Service class org.drools.compiler.cdi.KieCDIExtension didn't implement the javax.enterprise.inject.spi.Extension interface
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadExtension(WeldPortableExtensionProcessor.java:119)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:100)
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:86)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.ClassCastException: org.drools.compiler.cdi.KieCDIExtension cannot be cast to javax.enterprise.inject.spi.Extension
at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadExtension(WeldPortableExtensionProcessor.java:117)
... 8 more
06:38:45,567 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "myproject.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myproject.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myproject.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment
\"myproject.war\""}}
06:38:52,134 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment myproject.war in 7050ms
06:38:52,246 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."myproject.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."myproject.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "myproject.war"
06:38:52,741 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"myproject.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"myproject.war\".POST_MODULE: Failed t
o process phase POST_MODULE of deployment \"myproject.war\""}}}}
-
3. Re: Anybody have an example of how to embed the JBPM 6 Engine in a Liferay Vaadin application?
salaboy21 May 21, 2014 5:00 AM (in response to abhiramgiri)Can you please attach the full stack trace from jboss? (server.log file)