Discussion:
[jboss-user] [jBPM] - JBPM 5.4 on Mac OSX Mountain Lion
Michael Harper
2013-01-15 10:09:36 UTC
Permalink
Michael Harper [https://community.jboss.org/people/michael.harper] created the discussion

"JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/791947#791947

--------------------------------------------------------------
I recently downloaded the full installer for JBPM 5.4 and first installed on a mac book pro (winter 2011 model i7, osx mountain lion) and I've had the following issues with a clean install running ant start.demo.noeclipse
With Safari, google, mozilla browsers

Note, the same install on bootcamp under windows 8 runs perfectly but our development team works on Mac's the majority of the time.

1  In drools guvnor under knowledge bases when trying to create a package I get a message telling me there was an error because I am not connected to the server although the package name save's correctly
2  Process diagram details are not being saved. They appear to save properly but are empty when re-opened.
3  Process diagrams appear all black (no colours of any kind) and are hard to read.

In the logs I am getting a lot of these kinds of errors;

Any help would be appreciated.

ERROR [org.jbpm.designer.web.server.DictionaryServlet] (http-localhost-127.0.0.1-8080-5) Unexpected end of file from server
09:54:15,213 INFO  [org.drools.guvnor.server.RepositoryAssetService] (http-localhost-127.0.0.1-8080-2) USER:admin CHECKING IN asset: [P2] UUID: [5459b1e5-55ad-4af7-a72b-d103a4931d46]
09:54:15,225 ERROR [org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler] (http-localhost-127.0.0.1-8080-2) Unexpected end of file from server: java.net.SocketException: Unexpected end of file from server
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:762) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:759) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) [rt.jar:1.7.0_12-ea]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.serialize(BPMN2ProcessHandler.java:189) [classes:]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:155) [classes:]
          at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:184) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:157) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetService$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetService$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.AssetServiceServlet.checkinVersion(AssetServiceServlet.java:220) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_12-ea]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_12-ea]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_12-ea]
          at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_12-ea]
          at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) [gwt-servlet-2.4.0.jar:]
          at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) [gwt-servlet-2.4.0.jar:]
          at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) [gwt-servlet-2.4.0.jar:]
          at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet-2.4.0.jar:]
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.1.1.Final.jar:3.1.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.1.1.Final.jar:3.1.1.Final]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_12-ea]

also

09:53:35,790 INFO  [org.jbpm.designer.server.EditorHandler] (http-localhost-127.0.0.1-8080-1) Performing diagram information pre-processing steps.
09:53:35,797 ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8080-1) Unexpected end of file from server
09:53:35,803 ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8080-1) Unexpected end of file from server
09:53:35,810 ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8080-1) Invalid argument
09:53:35,815 ERROR [org.jbpm.designer.web.server.ServletUtil] (http-localhost-127.0.0.1-8080-1) Invalid argument
09:53:35,820 ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8080-1) Error setting up form widgets: Unexpected end of file from server
09:53:35,825 ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost-127.0.0.1-8080-1) Error setting up form widgets: Unexpected end of file from server
09:53:35,8
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791947#791947]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-01-17 17:16:26 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/792658#792658

--------------------------------------------------------------
Running on OSX as well and did not experience any problems. Could you clean the demo (ant clean.demo) and re-install it once again (ant install.demo.noeclipse). Then start the demo environment (ant start.demo.noeclipse) and then perform the activities that lead to a failure. Once you encounter the error please make a copy of server.log and upload it here. Additionally if you could describe step by step what you did to encounter this error. That can help to try to reproduce it on my side so hopefully that can give us some useful information.

Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792658#792658]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Michael Harper
2013-01-18 10:15:06 UTC
Permalink
Michael Harper [https://community.jboss.org/people/michael.harper] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/792764#792764

--------------------------------------------------------------
Thank you Maciej,

The steps I ran this morning were;
ant clean.demo
ant install.demo.noeclipse
ant start.demo.noeclipse

I then added an admin user to jboss using the add-user.sh program so I could see installed modules.
Checked that drools-guvnor was running by opening it.
Checked that jbpm-console was running by opening it.
Went back into drools-guvnor and switched to Knowledge bases and added a new package jbpm5
Added a new bpmn process with a start node, generic process and end node and tried to save it (note diagam components are all in black which is especially bad with flow where you can only see the arrow head)
Tried to save the diagram but when it re-opened it was empty. Error messages similar to above.

I have noticed quite a lot of errors in the log apart from those above. Perhaps these might indicate something; The last one seems the most relevant, but the others are a bit worrying.

a)
09:42:45,216 ERROR [org.reflections.Reflections] (MSC service thread 1-13) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.ReflectionsException: could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfs:/content/jbpm-gwt-console.war/WEB-INF/classes/
          at org.reflections.vfs.Vfs.fromURL(Vfs.java:99) [reflections-0.9.5-RC2_jboss-SP1.jar:]
          at org.reflections.vfs.Vfs.fromURL(Vfs.java:89) [reflections-0.9.5-RC2_jboss-SP1.jar:]
          at org.reflections.Reflections.scan(Reflections.java:136) [reflections-0.9.5-RC2_jboss-SP1.jar:]
.....

b)

09:42:59,574 WARN  [org.jboss.as.ee] (MSC service thread 1-8) JBAS011006: Not installing optional component org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation
          at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_12-ea]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_12-ea]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_12-ea]

.....

c)

[strategy,guvnorUrl,guvnorUser,guvnorPass,serviceFactory,guvnorFileService,guvnorFormService,guvnorTaskService,guvnorMenuService]; root of factory hierarchy
09:43:01,205 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) Class Path entry derbyLocale_cs.jar in "/content/drools-guvnor.war/WEB-INF/lib/derby-10.5.3.0_1.jar"  does not point to a valid jar for a Class-Path reference.
09:43:01,208 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) Class Path entry derbyLocale_de_DE.jar in "/content/drools-guvnor.war/WEB-INF/lib/derby-10.5.3.0_1.jar"  does not point to a valid jar for a Class-Path reference.
09:43:01,211 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) Class Path entry derbyLocale_es.jar in "/content/drools-guvnor.war/WEB-INF/lib/derby-10.5.3.0_1.jar"  does not point to a valid jar for a Class-Path reference.
09:43:01,214 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) Class Path entry derbyLocale_fr.jar in "/content/drools-guvnor.war/WEB-INF/lib/derby-10.5.3.0_1.jar"  does not point to a valid jar for a Class-Path reference.
09:43:01,217 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-11) Class Path entry derbyLocale_hu.jar in "/content/drools-guvnor.war/WEB-INF/lib/derby-10.5.3.0_1.jar"  does not point to a valid jar for a Class-Path reference.
09:43:01,2

.....

d)

Created file:/Users/michaelharper/Documents/sargent-disc/app-servers/jbpm-installer/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp4cb501b091a8580b/designer.war-a0430c5520b602d7/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
09:55:37,982 ERROR [org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository] (http-localhost-127.0.0.1-8080-3) Unable to connect to Gunvor. Is it running? [Invalid argument]
09:55:38,650 ERROR [org.jbpm.designer.web.server.ServletUtil] (http-localhost-127.0.0.1-8080-7) Invalid argument
09:55:38,651 ERROR [org.jbpm.designer.web.server.DictionaryServlet] (http-localhost-127.0.0.1-8080-3) Unexpected end of file from server
09:57:03,773 INFO  [org.drools.guvnor.server.RepositoryAssetService] (http-localhost-127.0.0.1-8080-3) USER:admin CHECKING IN asset: [myprocess1] UUID: [83821b82-0872-4cee-9f27-0431a36b2303]
09:57:03,787 ERROR [org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler] (http-localhost-127.0.0.1-8080-3) Unexpected end of file from server: java.net.SocketException: Unexpected end of file from server
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:762) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:759) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) [rt.jar:1.7.0_12-ea]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.serialize(BPMN2ProcessHandler.java:189) [classes:]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:155) [classes:]
          at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:184) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:157) [guvnor-w
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792764#792764]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-01-18 11:50:58 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/792780#792780

--------------------------------------------------------------
Post by Michael Harper
d)
Created file:/Users/michaelharper/Documents/sargent-disc/app-servers/jbpm-installer/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp4cb501b091a8580b/designer.war-a0430c5520b602d7/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
09:55:37,982 ERROR [org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository] (http-localhost-127.0.0.1-8080-3) Unable to connect to Gunvor. Is it running? [Invalid argument]
09:55:38,650 ERROR [org.jbpm.designer.web.server.ServletUtil] (http-localhost-127.0.0.1-8080-7) Invalid argument
09:55:38,651 ERROR [org.jbpm.designer.web.server.DictionaryServlet] (http-localhost-127.0.0.1-8080-3) Unexpected end of file from server
09:57:03,773 INFO  [org.drools.guvnor.server.RepositoryAssetService] (http-localhost-127.0.0.1-8080-3) USER:admin CHECKING IN asset: [myprocess1] UUID: [83821b82-0872-4cee-9f27-0431a36b2303]
09:57:03,787 ERROR [org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler] (http-localhost-127.0.0.1-8080-3) Unexpected end of file from server: java.net.SocketException: Unexpected end of file from server
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:762) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:759) [rt.jar:1.7.0_12-ea]
          at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:623) [rt.jar:1.7.0_12-ea]
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) [rt.jar:1.7.0_12-ea]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.serialize(BPMN2ProcessHandler.java:189) [classes:]
          at org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler.storeAssetContent(BPMN2ProcessHandler.java:155) [classes:]
          at org.drools.guvnor.server.RepositoryAssetOperations.checkinVersion(RepositoryAssetOperations.java:184) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.checkinVersion(RepositoryAssetOperations$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.RepositoryAssetService.checkinVersion(RepositoryAssetService.java:157) [guvnor-w
I believe this is the only error that is relevant here causing problems when saving process. The only thing that comes to my mind is that there is something (like firewall) that does not allow to access guvnor or somehow alters the request. Do you have anything od that sort?

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792780#792780]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Michael Harper
2013-01-18 12:16:43 UTC
Permalink
Michael Harper [https://community.jboss.org/people/michael.harper] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/792787#792787

--------------------------------------------------------------
No we don't.

It does look like there is some interference. If I find out what's causing it I'll post the detail.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792787#792787]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
yukihane renka
2013-02-07 11:47:41 UTC
Permalink
yukihane renka [https://community.jboss.org/people/yukihane] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796497#796497

--------------------------------------------------------------
On my Mac, same error occurs.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796497#796497]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-02-07 14:50:12 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796539#796539

--------------------------------------------------------------
what java version do you run it on?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796539#796539]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Margus Roo
2013-02-09 07:43:49 UTC
Permalink
Margus Roo [https://community.jboss.org/people/margusja] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796864#796864

--------------------------------------------------------------
Same here:
***@IRack:~/Downloads/jbpm-installer$ java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796864#796864]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Margus Roo
2013-02-09 21:30:47 UTC
Permalink
Margus Roo [https://community.jboss.org/people/margusja] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796902#796902

--------------------------------------------------------------
Did a new install. Like described - http://docs.jboss.org/jbpm/v5.1/userguide/ch03.html#d0e402 http://docs.jboss.org/jbpm/v5.1/userguide/ch03.html#d0e402
Could not get eclipse so I did ant install.demo.noeclipse - BUID was OK.

Now start:
***@IRack:~/Downloads/jbpm-installer$ ant start.demo.noeclipse
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.demo.noeclipse:
BUILD SUCCESSFUL
Total time: 1 second

But there no jboss process:
margusja        1745   0.0  0.0  2432768    592 s000  R+   11:21PM   0:00.00 grep java
margusja        1702   0.0  0.4  2968544  35016 s000  S    11:19PM   0:00.78 /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

after it I run a command:
***@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
***@IRack:~/Downloads/jbpm-installer$

Eclipse error is ok - I don't have eclipse binary in directory ./eclipse/Eclipse.app/Contents/MacOS/eclipse.
But now jboss started (even two of them):

***@IRack:~/Downloads/jbpm-installer$ ps aux | grep java
margusja        1871 129.2  8.2  3545184 692008 s000  R    11:23PM   1:11.77 /usr/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -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        1829   2.0  9.7  3576256 812128 s000  S    11:23PM   1:39.39 /usr/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -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        1885   0.0  0.0  2423356    208 s000  U+   11:25PM   0:00.00 grep java
margusja        1840   0.0  0.4  4088384  36388 s000  S    11:23PM   0:00.77 /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

Ok - I opened jbpm_console - http://localhost:8080/jbpm-console/app.html http://localhost:8080/jbpm-console/app.html. Started new process and opened started process' task and got to the jboss error log:

23:26:51,762 INFO  [org.jboss.bpm.console.server.plugin.PluginMgr] (http-localhost-127.0.0.1-8080-11) Successfully loaded plugin 'org.jboss.bpm.console.server.plugin.FormDispatcherPlugin': class org.jbpm.integration.console.forms.FormDispatcherComposite
23:26:52,187 ERROR [org.jbpm.integration.console.shared.GuvnorConnectionUtils] (http-localhost-127.0.0.1-8080-11) Error checking guvnor existence: Invalid argument
23:26:52,192 WARN  [org.jbpm.integration.console.forms.AbstractFormDispatcher] (http-localhost-127.0.0.1-8080-11) Could not connect to Guvnor.
23:26:57,826 ERROR [org.jbpm.integration.console.shared.GuvnorConnectionUtils] (http-localhost-127.0.0.1-8080-8) Error checking guvnor existence: Invalid argument
23:26:57,831 WARN  [org.jbpm.integration.console.forms.AbstractFormDispatcher] (http-localhost-127.0.0.1-8080-8) Could not connect to Guvnor.

I have put process image, process form template and task form template to guvnor repo to the defaultPackage and built it - build was ok.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796902#796902]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Margus Roo
2013-02-10 12:57:16 UTC
Permalink
Margus Roo [https://community.jboss.org/people/margusja] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796914#796914

--------------------------------------------------------------
One more thing I see every time I start jboss:
14:08:30,328 INFO  [org.drools.repository.RulesRepositoryConfigurator] (http-localhost-127.0.0.1-8080-12) Creating an instance of the RulesRepositoryConfigurator.
14:08:33,202 INFO  [stdout] (http-localhost-127.0.0.1-8080-12) =============== session-admin-4
14:08:33,826 ERROR [org.jbpm.integration.console.shared.GuvnorConnectionUtils] (http-localhost-127.0.0.1-8080-8) Error retriving packages from guvnor: Invalid argument
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796914#796914]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-02-11 07:26:07 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796976#796976

--------------------------------------------------------------
could you try to run it on Java 1.6 instead?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796976#796976]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Margus Roo
2013-02-11 08:09:16 UTC
Permalink
Margus Roo [https://community.jboss.org/people/margusja] created the discussion

"Re: JBPM 5.4 on Mac OSX Mountain Lion"

To view the discussion, visit: https://community.jboss.org/message/796984#796984

--------------------------------------------------------------
***@IRack:~/Downloads/jbpm-installer$ sudo rm /usr/bin/java
***@IRack:~/Downloads/jbpm-installer$ sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java /usr/bin/java
***@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)

***@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:
***@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
***@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 https://community.jboss.org/people/swiderski.maciej Maciej Swiderski!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/796984#796984]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...