<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
    starting up jBPM 4.3
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/zecas">zecas zecas</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/538483#538483">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,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm starting to use jBPM, and I'm trying to setup my environment. I'm having some troubles, any help solving would be appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm not a JBoss expert, so I'm learning it as I'm moving through the process.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've downloaded jboss-5.1.0.GA, extracted to a specific directory, say c:/x/jboss-5.1.0.GA, and that would be my application server location.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I already have MySQL 5.1.22 running on default port 3306.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I've also downloaded jbpm-4.3, and extracted it to say c:/jboss/jbpm-4.3. As I want to learn things the hard way <span> :) </span>, instead of just trying to install a demo, I just went to the install directory and looked into build.xml file. Then I started changing and executing targets:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>[Step A] Database schema</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I created a jbpm4 schema in mysql database, with a specific user proper permissions. I updated the jbpm-4.3/install/jdbc/mysql.properties accordingly.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Instead of passing a parameter, I just changed database property:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;property name="database" value="mysql" /&gt; &lt;!-- {hsqldb | mysql | oracle | postgresql} --&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then I executed "ant create.jbpm.schema".</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Build succesfull, and I've checked that the schema contained the (empty) tables required by jbpm engine.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>[Step B] Installing jBPM</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I wanted to execute "install.jbpm.into.jboss" target, so I've changed the "jboss.home" parameter:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;property name="jboss.home" value="c:/x/jboss-5.1.0.GA" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Since I have jboss installed, I didn't change any other parameters.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I executed "ant install.jbpm.into.jboss".</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The build was successfull.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>[Step C] Creating some users</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Don't know if they are needed at this point, but I just looked into "load.example.identities" target, and checking that it executes the "${jbpm.home}/install/src/demo/example.identities.sql", I opened the script to see it.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It is a simple script, so I just executed it manually against the schema. Success.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So far so good ... I learned something, and setup was running great.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then the problems came, and so my questions.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I started JBoss with "ant jboss.start" to make things easier, apparently startup was successfull.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>1#</strong><span> Accessing </span><a class="jive-link-external-small" href="http://localhost:8080/admin-console/" target="_blank">http://localhost:8080/admin-console/</a><span> (after authentication) displays the WAR projects: gwt-console-jbpm.war, gwt-console-server-jbpm.war, jbpmeditor.war.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>When accessing </span><a class="jive-link-external-small" href="http://localhost:8080/jbpm-console/" target="_blank">http://localhost:8080/jbpm-console/</a><span> I can see the login screen, but I cannot access it, with any of the users I inserted into the database.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Maybe some other user? What is the default one, and where can I see those definitions?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>2#</strong><span> Accessing the jbpm editor which has the context root jbpmeditor (I've checked in jboss console), through </span><a class="jive-link-external-small" href="http://localhost:8080/jbpmeditor/" target="_blank">http://localhost:8080/jbpmeditor/</a><span> will give me a "HTTP Status 404 - /jbpmeditor/" error.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Restarting the application displays no errors on ".../server/default/log/*.log" files.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>What am I missing here?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any help appreciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/538483#538483">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://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>