<!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;">
    Re: JBPM 5.4 on Mac OSX Mountain Lion
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/margusja">Margus Roo</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/796984#796984">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>margusja@IRack:~/Downloads/jbpm-installer$ sudo rm /usr/bin/java</p><p>margusja@IRack:~/Downloads/jbpm-installer$ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java /usr/bin/java</p><p>margusja@IRack:~/Downloads/jbpm-installer$ java -version</p><p>java version "1.6.0_37"</p><p>Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)</p><p>Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>margusja@IRack:~/Downloads/jbpm-installer$ ant start.demo</p><p>Buildfile: /Users/margusja/Downloads/jbpm-installer/build.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>download.db.driver.check:</p><p>&#160;&#160;&#160;&#160; [echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar</p><p>download.db.driver:</p><p>start.h2.check:</p><p>&#160;&#160;&#160;&#160; [echo] Checking if h2 db should be started ...</p><p>start.h2:</p><p>start.jboss:</p><p>check.jboss.version:</p><p>start.jboss5:</p><p>check.jboss.version:</p><p>start.jboss7:</p><p>start.eclipse:</p><p>BUILD FAILED</p><p>/Users/margusja/Downloads/jbpm-installer/build.xml:846: Execute failed: java.io.IOException: Cannot run program "./eclipse/Eclipse.app/Contents/MacOS/eclipse": error=2, No such file or directory</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.Runtime.exec(Runtime.java:615)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.Execute.spawn(Execute.java:552)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:653)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.reflect.Method.invoke(Method.java:601)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Task.perform(Task.java:348)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Target.execute(Target.java:390)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Target.performTasks(Target.java:411)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Project.executeTarget(Project.java:1368)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Project.executeTargets(Project.java:1251)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Main.runBuild(Main.java:809)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.Main.startAnt(Main.java:217)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)</p><p>Caused by: java.io.IOException: error=2, No such file or directory</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.UNIXProcess.forkAndExec(Native Method)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.UNIXProcess.&lt;init&gt;(UNIXProcess.java:135)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.ProcessImpl.start(ProcessImpl.java:130)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)</p><p>&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;... 23 more</p><p>Total time: 2 seconds</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I don't have eclipse binary ./eclipse/Eclipse.app/Contents/MacOS/eclipse but I can't start ant start.demo.noeclipse. If I use noeclipse then there won't be jboss thred.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>But start.demo works anyway:</p><p>margusja@IRack:~/Downloads/jbpm-installer$ ps aux | grep java</p><p>margusja&#160;&#160;&#160;&#160;&#160;&#160;&#160; 6760&#160;&#160; 0.0&#160; 0.0&#160; 2432768&#160;&#160;&#160; 592 s000&#160; S+&#160;&#160; 10:05AM&#160;&#160; 0:00.00 grep java</p><p>margusja&#160;&#160;&#160;&#160;&#160;&#160;&#160; 6746&#160;&#160; 0.0&#160; 5.7&#160; 1634088 479176 s000&#160; S&#160;&#160;&#160; 10:02AM&#160;&#160; 1:09.86 java -D[Standalone] -d32 -client -XX:MaxPermSize=256m -Xms256m -Xmx512m -Dorg.jboss.boot.log.file=/Users/margusja/Downloads/jbpm-installer/jboss-as-7.1.1.Final/standalone/log/boot.log -Dlogging.configuration=file:/Users/margusja/Downloads/jbpm-installer/jboss-as-7.1.1.Final/standalone/configuration/logging.properties -jar /Users/margusja/Downloads/jbpm-installer/jboss-as-7.1.1.Final/jboss-modules.jar -mp /Users/margusja/Downloads/jbpm-installer/jboss-as-7.1.1.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/Users/margusja/Downloads/jbpm-installer/jboss-as-7.1.1.Final -b localhost -Djbpm.console.directory=.//sample/evaluation/src/main/resources -Dreporting.needcontext=true</p><p>margusja&#160;&#160;&#160;&#160;&#160;&#160;&#160; 6725&#160;&#160; 0.0&#160; 0.4&#160; 4069172&#160; 36404 s000&#160; S&#160;&#160;&#160; 10:02AM&#160;&#160; 0:00.79 /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/bin/java -classpath /Users/margusja/Downloads/jbpm-installer/db/driver/h2.jar org.h2.tools.Server -tcp</p><p>margusja@IRack:~/Downloads/jbpm-installer$ </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>And great news! In server log are nice rows:</p><p>10:06:28,921 WARN&#160; [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-20) Creating RulesRepository with default username.</p><p>10:06:28,926 INFO&#160; [stdout] (http-localhost-127.0.0.1-8080-20) =============== session-guest-8</p><p>10:06:28,933 INFO&#160; [org.drools.guvnor.server.security.DemoAuthenticator] (http-localhost-127.0.0.1-8080-20) Demo login for user (admin) succeeded.</p><p>10:06:28,937 INFO&#160; [org.drools.guvnor.server.files.AuthorizationHeaderChecker] (http-localhost-127.0.0.1-8080-20) admin authenticated for rest api</p><p>10:06:28,942 INFO&#160; [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageName: defaultPackage</p><p>10:06:28,945 INFO&#160; [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageVersion: LATEST</p><p>10:06:28,949 INFO&#160; [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageIsLatest: true</p><p>10:06:28,952 INFO&#160; [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageIsSource: false</p><p>10:06:28,956 INFO&#160; [stdout] (http-localhost-127.0.0.1-8080-20) =============== session-guest-8</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Many thanks <a class="jive-link-profile-small" href="https://community.jboss.org/people/swiderski.maciej">Maciej Swiderski</a>!</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/796984#796984">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>