cancel
Showing results for 
Search instead for 
Did you mean: 

How to install activiti-rest.war on JBoss 7?

mpgong
Champ in-the-making
Champ in-the-making
Hello

I was wondering if anyone has installed activiti on jboss 7 that could shed some light on the error i get below.  I can deploy the explorer but not the rest war.

Thanks.


14:17:01,690 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."activiti-rest.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."activiti-rest.war".INSTALL: Failed to process phase INSTALL of deployme
nt "activiti-rest.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.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.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_01]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_01]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_01]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011030: Could not configure component org.activiti.engine.impl.webservice.experimental.RuntimeWebServiceImpl
        at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:92)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
        … 5 more
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.activiti.engine.impl.webservice.experimental.RuntimeWebServiceImpl
        at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
        at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
        … 6 more

14:17:01,780 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "activiti-rest.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"activiti-rest.war\".INSTALL" => "org.jboss.msc.service.StartException in serv
ice jboss.deployment.unit.\"activiti-rest.war\".INSTALL: Failed to process phase INSTALL of deployment \"activiti-rest.war\""}}
14:17:01,980 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment activiti-rest.war in 201ms
14:17:01,980 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."activiti-rest.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."activiti-rest.war".INSTALL: Failed to process phase INSTALL of deployment "activiti-rest.war"

5 REPLIES 5

dextaiwan
Champ in-the-making
Champ in-the-making
Hi mpgong,

I had the same problem and removing the activiti-cxf.jar from the WEB-INF/lib folder did the trick. Now I am getting HTTP 403 errors but I assume this is fine because I don't want to grant everybody free access to my process engine's API Smiley Wink It furthermore shows that the deployment was successful.

cheers,
dextaiwan

kethur
Champ in-the-making
Champ in-the-making
Hi,

I have JBoss 5.1.0 in my environment and I would like to integrate Activiti in to it.  Could you please correct me with below steps of integration?  Please note I only want activiti-engine and i dont want activiti-explorer because we may not use it.

1) copy the below directory from the Activiti installation to your jboss directory
from: F:\activiti-5.10\apps\apache-tomcat-6.0.32\webapps\activiti-rest
to: F:\jboss-5.1.0.GA\server\default\deploy

2) modify the below files accordingly
activiti-context.xml
db.properties
logging.properties

3) Restart the app server

Am i missing anything?

Thanks,
Raj

jbarrez
Star Contributor
Star Contributor
Nope, that should be it. If you only need the rest API, you

- copy the rest war
- adapt the db properties if needed
- restart and pray

kethur
Champ in-the-making
Champ in-the-making
Thanks.  When you say rest-api that is nothing but activiti-engine.  Am I right?

jbarrez
Star Contributor
Star Contributor
Well, that is indeed only the engine (+ mandatory dependencies, not many of them) and of course the webapp that exposes the rest operations on the engine.