<!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;">&#160;</p><p>I'm now trying to deploy it on an Amazon EC2 Centos instance and having no end of problems.&#160; 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;">&#160;</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;">&#160;</p><p>So, the things I've tried on the Final installer are:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1)&#160; Modify build.xml so that the bind address is the NAT'd IP address on the server's primary interface.</p><p>2)&#160; 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)&#160; Then 'ant install.demo'&#160; to push the changes</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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&#160;&#160;&#160;&#160; 29475&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160;&#160;&#160; 7r&#160; IPv4 1416067&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP *:9092 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 161u&#160; IPv4 1416083&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP *:9999 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 163u&#160; IPv4 1416084&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP 10.240.217.46:8080 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 166u&#160; IPv4 1416085&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP *:9990 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 170u&#160; IPv4 1416087&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP *:1090 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 171u&#160; IPv4 1416088&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP *:1091 (LISTEN)</p><p>java&#160;&#160;&#160;&#160; 29536&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160; 799u&#160; IPv4 1416111&#160;&#160;&#160;&#160;&#160; 0t0&#160; TCP 127.0.0.1:5445 (LISTEN)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So what is the subtle difference between having a working JBPM-console on localhost vs live on the Internet?&#160; </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>&#160; but then JBPM-console wouldn't even start. All I did was add the NAT'd IP address for bpm.console.server.host=&lt;NAT IP address&gt; in WEB-INF/classes/jbpm.console.properties.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</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>