cancel
Showing results for 
Search instead for 
Did you mean: 

Create Deployment Artifacts option not working Please Help

afshad
Champ in-the-making
Champ in-the-making
After following the eclipse setup instructions in the user guide I added my own process to src/main/test in the activiti-engine-examples

Then i deleted the activiti-engine-examples.bar and activiti-engine-examples.jar files from the project.

Then I tried using the MB3 option Create Deployment Artifacts to create a new bar and jar files but nothing happens when I do that.
No indicator/progress nothing and no bar or jar files are created.

There is nothing in my problems view and nothing in the error log. The xml seems to be fine.
Ive attached an image of my eclipse workspace.
Can anyone please help me figure out whats going on.
Thank you.
15 REPLIES 15

tiesebarrell
Champ in-the-making
Champ in-the-making
Afshad,

your processes should be placed in src/main/resources/diagrams. not in src/main/test . That's probably why creating the deployment artifcact does nothing: it doesn't find any processes in your project.

afshad
Champ in-the-making
Champ in-the-making
I moved it to src/main/resources/diagrams and still nothing happens on clicking Create deployment artifacts.

Nothing in the deployment folder.
What could be missing here?

tiesebarrell
Champ in-the-making
Champ in-the-making
what exactly is now in your src/main/resources/diagrams folder? You can look in Eclipse's .log file in your workspace to see if any errors occurred.

afshad
Champ in-the-making
Champ in-the-making
what exactly is now in your src/main/resources/diagrams folder? You can look in Eclipse's .log file in your workspace to see if any errors occurred.

Thanks for the response. Previously I had the activiti demo running (ant demo.start) while creating the deployment artifacts. I shut the demo down and closed the activiti explorer in the web browser. Then i ran Create Deployment Artifacts. Now in the deployment folder I have:
Expense_process.bar and Expense process.jar as you can see in the image below. The contents of my src/main/resources/diagrams is shown in the image below as well.
It has: MyProcess.activiti/MyProcess.bpmn20.xml/MyProcess.png
Does the bar file contain MyProcess as well?
Then from the command line I do ant demo.start and apache is started.
I then open up the Activiti explorer in the browser and login kermit/kermit
I goto Manage->Deployments->Upload New and choose the Expense_process.bar file.
I get the following error:
Deployment failed
resultVariableName not supported for tasks using 'class' | JavaServiceTaskTest.testIllegalUseOfResultVariableName.bpmn20.xml | line 17 | column 15
(above also shown in image below)
The tomcat logfile also has exceptions as shown in the zip attachment.

Also attached in another post is the eclipse log.
Basically ive just created my own little BPM workflow as shown in the image and want to deploy it as part of the activiti-engine-example workspace.

Thanks much for your help.

afshad
Champ in-the-making
Champ in-the-making
what exactly is now in your src/main/resources/diagrams folder? You can look in Eclipse's .log file in your workspace to see if any errors occurred.

Please note Ive also attached the eclipse log file.

Activiti explorer deployment error is also attached.

tiesebarrell
Champ in-the-making
Champ in-the-making
This doesn't look like your deployment is empty - there's something wrong in the process itself. You're assigning a result variable where it's not supported, so you might want to check that first.

Also, note that there's a port already in use in one of the console's errors when starting the database. Probably not a real problem, but make sure all JVMs and other services are shutdown and if necessary kill them when restarting.

tiesebarrell
Champ in-the-making
Champ in-the-making
Actually, it's not a problem in your process, but you're apparently trying to deploy a test case process:

INFO: Processing resource JavaServiceTaskTest.testIllegalUseOfResultVariableName.bpmn20.xml

Which, by its name, looks like it's supposed to generate an exception.

If you rename the .bar fiel to .zip, you can simply extract it to inspect what's in it. Some old processes might be in there - take a look at the resulting contents.

I'm not familiar with the test process examples myself, but from the error it seems obvious you're deploying a process that's meant to test for failure.

afshad
Champ in-the-making
Champ in-the-making
Actually, it's not a problem in your process, but you're apparently trying to deploy a test case process:

INFO: Processing resource JavaServiceTaskTest.testIllegalUseOfResultVariableName.bpmn20.xml

Which, by its name, looks like it's supposed to generate an exception.

If you rename the .bar fiel to .zip, you can simply extract it to inspect what's in it. Some old processes might be in there - take a look at the resulting contents.

I'm not familiar with the test process examples myself, but from the error it seems obvious you're deploying a process that's meant to test for failure.

Thanks. Ok the mistake I was making was to include my testing activiti process as part of the default activiti-engine-examples workspace. This was causing too much confusion.
I now created a new Activiti project in eclipse as you can see in the image. I am able to successfully deploy this project by uploading the .bar file.
However when I start the process from the Activiti explorer I get the exception in the tomcat console shown in the attachment. It seems like it does not know where my class file is. How can I fix this? Thanks
NOTE: I just posted this deployment issue question in the Activiti engine forum. Perhaps thats the better place for it.

tiesebarrell
Champ in-the-making
Champ in-the-making
If you're running the process in the Activiti demo setup, you should make sure your classes are on Tomcat's classpath when starting Activiti - that is, the classes are not and should not be part of the .bar file. If you look in your deployment folder in the project, you can see there's also a .jar file that's created. If you have the class in the same project, it should be in that jar, so it's all ready-made for you. Otherwise, you will need to create a jar containing the class yourself. Then you can drop the jar in Tomcat's lib directory for a quick solution. Most approaches for a more "enterprisey" solution tend to suggest repackaging activiti-rest and including the jar using Maven. You can then run that war on any container, because it contains Activiti, the REST API and your process' classes.