<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
jBPM 5.3 Deployment on Amazon EC2 instance
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/user111">user111</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/753815#753815">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi, I've downloaded the jbpm-5.3.0.Final-installer-full.zip and have got it working fine on my localhost.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm now trying to deploy it on an Amazon EC2 Centos instance and having no end of problems.  Amazon EC2 is a NAT'd server, so the actual IP on the server is different to the IP accessible from the Internet.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm trying to get the JBPM-console working correctly. I can see the console and launch processes, but tasks never arrive for the users. Keep getting stack traces which I can share if required.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So, the things I've tried on the Final installer are:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>1)  Modify build.xml so that the bind address is the NAT'd IP address on the server's primary interface.</p><p>2)  In standalone.xml I've changed the management and public addresses from localhost to 0.0.0.0 (Listen on all interfaces)</p><p>3)  Then 'ant install.demo'  to push the changes</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>It is now accessible from the Internet and I can access drools-guvnor, jbpm-console etc.</p><p>Here are the listening ports:</p><p>[root@myinst2 data]# lsof -i -Pn|grep java|grep -i listen</p><p>java     29475        root    7r  IPv4 1416067      0t0  TCP *:9092 (LISTEN)</p><p>java     29536        root  161u  IPv4 1416083      0t0  TCP *:9999 (LISTEN)</p><p>java     29536        root  163u  IPv4 1416084      0t0  TCP 10.240.217.46:8080 (LISTEN)</p><p>java     29536        root  166u  IPv4 1416085      0t0  TCP *:9990 (LISTEN)</p><p>java     29536        root  170u  IPv4 1416087      0t0  TCP *:1090 (LISTEN)</p><p>java     29536        root  171u  IPv4 1416088      0t0  TCP *:1091 (LISTEN)</p><p>java     29536        root  799u  IPv4 1416111      0t0  TCP 127.0.0.1:5445 (LISTEN)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So what is the subtle difference between having a working JBPM-console on localhost vs live on the Internet?  </p><p><span>I tried modifying the war file for the jbpm-console as advised here: </span><a class="jive-link-external-small" href="http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html#d0e4624" target="_blank">http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html#d0e4624</a><span>  but then JBPM-console wouldn't even start. All I did was add the NAT'd IP address for bpm.console.server.host=<NAT IP address> in WEB-INF/classes/jbpm.console.properties.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any advice on how to deploy JBPM 5.3 on a Cloud server (using NAT - like they all do) would be appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Geoff.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/753815#753815">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>