JBoss Community

Re: JBPM 5.4 on Mac OSX Mountain Lion

created by Margus Roo in jBPM - View the full discussion

margusja@IRack:~/Downloads/jbpm-installer$ sudo rm /usr/bin/java

margusja@IRack:~/Downloads/jbpm-installer$ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java /usr/bin/java

margusja@IRack:~/Downloads/jbpm-installer$ java -version

java version "1.6.0_37"

Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)

Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

 

margusja@IRack:~/Downloads/jbpm-installer$ ant start.demo

Buildfile: /Users/margusja/Downloads/jbpm-installer/build.xml

 

 

download.db.driver.check:

     [echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar

download.db.driver:

start.h2.check:

     [echo] Checking if h2 db should be started ...

start.h2:

start.jboss:

check.jboss.version:

start.jboss5:

check.jboss.version:

start.jboss7:

start.eclipse:

BUILD FAILED

/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

          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

          at java.lang.Runtime.exec(Runtime.java:615)

          at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)

          at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)

          at org.apache.tools.ant.taskdefs.Execute.spawn(Execute.java:552)

          at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:653)

          at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)

          at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)

          at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

          at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

          at org.apache.tools.ant.Task.perform(Task.java:348)

          at org.apache.tools.ant.Target.execute(Target.java:390)

          at org.apache.tools.ant.Target.performTasks(Target.java:411)

          at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

          at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

          at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

          at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

          at org.apache.tools.ant.Main.runBuild(Main.java:809)

          at org.apache.tools.ant.Main.startAnt(Main.java:217)

          at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)

          at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Caused by: java.io.IOException: error=2, No such file or directory

          at java.lang.UNIXProcess.forkAndExec(Native Method)

          at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)

          at java.lang.ProcessImpl.start(ProcessImpl.java:130)

          at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)

          ... 23 more

Total time: 2 seconds

 

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.

 

But start.demo works anyway:

margusja@IRack:~/Downloads/jbpm-installer$ ps aux | grep java

margusja        6760   0.0  0.0  2432768    592 s000  S+   10:05AM   0:00.00 grep java

margusja        6746   0.0  5.7  1634088 479176 s000  S    10:02AM   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

margusja        6725   0.0  0.4  4069172  36404 s000  S    10:02AM   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

margusja@IRack:~/Downloads/jbpm-installer$

 

And great news! In server log are nice rows:

10:06:28,921 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-20) Creating RulesRepository with default username.

10:06:28,926 INFO  [stdout] (http-localhost-127.0.0.1-8080-20) =============== session-guest-8

10:06:28,933 INFO  [org.drools.guvnor.server.security.DemoAuthenticator] (http-localhost-127.0.0.1-8080-20) Demo login for user (admin) succeeded.

10:06:28,937 INFO  [org.drools.guvnor.server.files.AuthorizationHeaderChecker] (http-localhost-127.0.0.1-8080-20) admin authenticated for rest api

10:06:28,942 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageName: defaultPackage

10:06:28,945 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageVersion: LATEST

10:06:28,949 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageIsLatest: true

10:06:28,952 INFO  [org.drools.guvnor.server.files.PackageDeploymentServlet] (http-localhost-127.0.0.1-8080-20) PackageIsSource: false

10:06:28,956 INFO  [stdout] (http-localhost-127.0.0.1-8080-20) =============== session-guest-8

 

Many thanks Maciej Swiderski!

Reply to this message by going to Community

Start a new discussion in jBPM at Community