cancel
Showing results for 
Search instead for 
Did you mean: 

how to use Remote Java Application to debug activiti-app

windforce
Champ in-the-making
Champ in-the-making
i deploy activiti-app.war in tpmcat8,  it is running quite normal.
but i want to debug it  through remote java application in eclipse.
when i  confige    remote java application  in  Debug Configurations dialog, i can not find itself int the selecttable after Click Browse button.
1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

Please provide more details as I dont understand your question.

using remote debug on Alfresco Activiti Enterprise takes no more than updating the start-activiti.sh as shown below:

#!/bin/sh
JAVA_OPTS="-Xms512m -Xmx1024m -XXSmiley TongueermSize=512m"
export JAVA_OPTS
JAVA_HOME="/Applications/activiti/java"
export JAVA_HOME
JPDA_ADDRESS=5555
export JPDA_ADDRESS
JPDA_TRANSPORT=dt_socket
export JPDA_TRANSPORT
JPDA_SUSPEND=y
export JPDA_SUSPEND

trap 'actstop' SIGINT SIGTERM EXIT

actstop() {
trap '' SIGINT SIGTERM EXIT # ignore INT and TERM while shutting down
echo "**** Shutting down H2... ****" # added double quotes
sh /Applications/activiti/h2/stop-h2.sh
echo "**** Shutting down Tomcat... ****" # added double quotes
sh /Applications/activiti/tomcat/bin/catalina.sh stop
echo "**** DONE."
}

sh /Applications/activiti/h2/start-h2.sh &
sh /Applications/activiti/tomcat/bin/catalina.sh jpda start &
wait

You will now be able to attach a debugger on port 5555.

Cheers,

Greg