How can I debug Camunda Webapps in eclipse?
For my solution, I used Camunda Tomcat distribution. The steps may be different for other application servers.
Requirements:
- Eclipse IDE for Java EE Developers
Actions
- Create a new server in your workspace.
- Select Apache Tomcat 7 server (new -> other -> Server, server type Apache Tomcat 7.0.
- Select the server installation directory on Camunda BPM platform (for example
\camunda-bpm-tomcat-7.1.0-Final\server\apache-tomcat-7.0.50\
)
- Copy the Camunda-specific config files (found in
\conf
your distribution folder , for example\camunda-bpm-tomcat-7.1.0-Final\server\apache-tomcat-7.0.50\conf\
) to the server directory- server.xml
- ud-platform.xml
-
Add webapp as Maven project with camunda-webapp-tomcat dependency
-
Pom.xml content:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.camunda.consulting</groupId> <artifactId>debugging-webapp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <dependencies> <dependency> <groupId>org.camunda.bpm.webapp</groupId> <artifactId>camunda-webapp-tomcat</artifactId> <version>7.1.0-Final</version> <type>war</type> </dependency> </dependencies> <repositories> <repository> <id>camunda-bpm-nexus</id> <name>camunda-bpm-nexus</name> <url>https://app.camunda.com/nexus/content/groups/public</url> </repository> </repositories> </project>
-
- Deploy this webapp to the server by clicking Run As> Run On Server
- Select a configured server.
- Adjust the display of the web module as needed
- Start the server in debug mode
- Open webapp in your browser.
source to share
- Create a new Maven project in Eclipse
- Add framework dependencies camunda and spring
- Add web.xml file for bootstrap spring container
- Add Spring Application XML Context Configuration File
If you don't know how to install maven in eclipse. Just download the Spring framework ** strong text **
source to share