0 Replies Latest reply on Nov 6, 2015 5:00 PM by SANJAY GAUTAM

    Clustered Jbpm-console doesnt not get deployed if I Shut down and restart one of the server in clust

    SANJAY GAUTAM Expert

      Hi Members,

       

      I have created the cluster with following the blogs provided by Maciej , my configuration looks like below.

       

      1. zookeeper

      2. Helix

      3. Two Jboss Server Nodes of Jboss 7.1.1

       

      Use Case

       

      1. Start both the server.
      2. Deploy the jbpm-console. : Gets Deployed Successfully
      3. Shut Down one of the server.
      4. Restart the the server you just stopped.
      5. jbpm-console doesn't get deployed by itself in the server which was shut down.
      6. Now event I try to deploy and distribute it manually nothing happens it fails again and again on this server
      PS: My other application deployed on that node successfully deploys itself automatically on the shut down server.

       

      Server Details Settings for the two server nodes are as below


       

                 <jvm name="default">

       

                    <jvm-options>

                      <option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>

                    </jvm-options>

                 </jvm>

                 -->

              <system-properties>

                        <property name="org.quartz.properties"     value="/app/mds/jboss-as-7.1.1.Final/domain/configuration/org.quartz.properties" boot-time="false"/>

                        <property name="jboss.node.name" value="nodeOne" boot-time="false"/>

                        <property name="org.uberfire.nio.git.dir" value="/app/mds/jboss-as-7.1.1.Final/domain/servers/server-one/repo"    boot-time="false"/>

                        <property name="org.uberfire.cluster.id" value="jbpm-cluster"    boot-time="false"/>

                        <property name="org.uberfire.cluster.zk" value="localhost:55181"    boot-time="false"/>

                        <property name="org.uberfire.cluster.local.id" value="nodeOne_12345"   boot-time="false"/>

                        <property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"  boot-time="false"/>

                        <property name="org.uberfire.nio.git.daemon.port" value="55418" boot-time="false"/>

                        <property name="org.uberfire.metadata.index.dir" value="/app/mds/jboss-as-7.1.1.Final/domain/servers/server-one/index" boot-time="false"/>

                        <property name="org.uberfire.cluster.autostart" value="false" boot-time="false"/>

                        <property name="org.kie.demo" value="false" />

                        <property name="org.kie.example" value="false" />

                        <property name="org.kie.nio.git.daemon.enabled" value="false" />

                        <property name="org.uberfire.nio.git.daemon.enabled" value="false"/>

                        <property name="org.uberfire.nio.git.ssh.enabled" value="false"/>

              </system-properties>

      </server>

      <server name="server-two" group="main-server-group" auto-start="true">

                  <!-- server-two avoids port conflicts by incrementing the ports in

                       the default socket-group declared in the server-group -->

                  <socket-bindings port-offset="150"/>

                   <system-properties>

                              <property name="org.quartz.properties"    value="/app/mds/jboss-as-7.1.1.Final/domain/configuration/org.quartz.properties" boot-time="false"/>

                              <property name="jboss.node.name" value="nodeTwo" boot-time="false"/>

                              <property name="org.uberfire.cluster.id" value="jbpm-cluster"    boot-time="false"/>

                              <property name="org.uberfire.cluster.zk" value="localhost:55181"    boot-time="false"/>

                              <property name="org.uberfire.cluster.local.id" value="nodeTwo_12346"     boot-time="false"/>

                              <property name="org.uberfire.cluster.vfs.lock" value="vfs-repo"  boot-time="false"/>

              <!--

                              <property name="org.kie.nio.git.dir" value="${jboss.server.data.dir}"/>

              -->             <property name="org.uberfire.nio.git.daemon.port" value="55419" boot-time="false"/>

                              <property name="org.uberfire.nio.git.dir" value="/app/mds/jboss-as-7.1.1.Final/domain/servers/server-two/repo"    boot-time="false"/>

                              <property name="org.uberfire.metadata.index.dir" value="/app/mds/jboss-as-7.1.1.Final/domain/servers/server-two/index" boot-time="false"/>

                              <property name="org.uberfire.cluster.autostart" value="false" boot-time="false"/>

                              <property name="org.kie.demo" value="false" />

                              <property name="org.kie.example" value="false" />

                              <property name="org.kie.nio.git.daemon.enabled" value="false" />

                              <property name="org.uberfire.nio.git.daemon.enabled" value="false"/>

                              <property name="org.uberfire.nio.git.ssh.enabled" value="false"/>

                      </system-properties>

              </server>

          </servers>

       

      Error

       

      13:38:43,525 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] (MSC service thread 1-3) Using manager EnhancedLocalRepositoryManager with priority 10.0 for /export/home/mds/.m2/repository

       

      13:38:43,533 DEBUG [org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider] (MSC service thread 1-3) Using manager EnhancedLocalRepositoryManager with priority 10.0 for /export/home/mds/.m2/repository

      13:38:43,628 WARN  [org.jbpm.kie.services.impl.KModuleDeploymentService] (MSC service thread 1-3) Unexpected error while deploying unit org.guvnor:guvnor-asset-mgmt-project:6.2.0.Final

      13:38:43,630 WARN  [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (MSC service thread 1-3) Error when deploying unit org.guvnor:guvnor-asset-mgmt-project:6.2.0.Final [strategy=SINGLETON] error message java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>(Ljavax/net/ssl/SSLSocketFactory;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V

      13:38:43,633 DEBUG [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (MSC service thread 1-3) Stacktrace:: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>(Ljavax/net/ssl/SSLSocketFactory;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V

        at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:157) [jbpm-kie-services-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-services-cdi-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.initDeployments(DeploymentManagerEntryPointImpl.java:113) [jbpm-console-ng-business-domain-backend-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.initDeployments(DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl.bootstrapDeployments(AdministrationServiceImpl.java:191) [jbpm-console-ng-business-domain-backend-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.bootstrapDeployments(AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.2.0.Final.jar:6.2.0.Final]

        at org.kie.workbench.backend.AppSetup.assertPlayground(AppSetup.java:179) [classes:]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]

        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]

        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:516) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:174) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:291) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java) [classes:]

        at org.uberfire.backend.server.cdi.SystemConfigProducer.runPostConstruct(SystemConfigProducer.java:122) [uberfire-backend-cdi-0.5.0.Final.jar:0.5.0.Final]

        at org.uberfire.backend.server.cdi.SystemConfigProducer.afterDeploymentValidation(SystemConfigProducer.java:105) [uberfire-backend-cdi-0.5.0.Final.jar:0.5.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]

        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]

        at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:369) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

      Caused by: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>(Ljavax/net/ssl/SSLSocketFactory;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V

        at org.eclipse.aether.transport.http.SslSocketFactory.<init>(SslSocketFactory.java:57) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.SslSocketFactory.<init>(SslSocketFactory.java:39) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.GlobalState.newConnectionManager(GlobalState.java:166) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.GlobalState.getConnectionManager(GlobalState.java:148) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.LocalState.<init>(LocalState.java:61) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.HttpTransporter.<init>(HttpTransporter.java:127) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.transport.http.HttpTransporterFactory.newInstance(HttpTransporterFactory.java:93) [aether-transport-http-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultTransporterProvider.newTransporter(DefaultTransporterProvider.java:110) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.connector.basic.BasicRepositoryConnector.<init>(BasicRepositoryConnector.java:115) [aether-connector-basic-1.0.0.v20140518.jar:]

        at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:180) [aether-connector-basic-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:113) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:516) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) [aether-impl-1.0.0.v20140518.jar:]

        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294) [aether-impl-1.0.0.v20140518.jar:]

        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:171) [maven-core-3.2.2.jar:3.2.2]

        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:224) [maven-core-3.2.2.jar:3.2.2]

        at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:903) [maven-model-builder-3.2.2.jar:3.2.2]

        at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:755) [maven-model-builder-3.2.2.jar:3.2.2]

        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:309) [maven-model-builder-3.2.2.jar:3.2.2]

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:148) [maven-core-3.2.2.jar:3.2.2]

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:114) [maven-core-3.2.2.jar:3.2.2]

        at org.kie.scanner.embedder.MavenEmbedder.readProject(MavenEmbedder.java:294) [kie-ci-6.2.0.Final.jar:6.2.0.Final]

        at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:42) [kie-ci-6.2.0.Final.jar:6.2.0.Final]

        at org.kie.scanner.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:35) [kie-ci-6.2.0.Final.jar:6.2.0.Final]

        at org.kie.scanner.MavenPomModelGenerator.parse(MavenPomModelGenerator.java:19) [kie-ci-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kproject.xml.PomModel$Parser.parse(PomModel.java:64) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kie.builder.impl.AbstractKieModule.getPomModel(AbstractKieModule.java:367) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kie.builder.impl.AbstractKieModule.getJarDependencies(AbstractKieModule.java:109) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.kie.scanner.MavenClassLoaderResolver.getClassLoader(MavenClassLoaderResolver.java:49) [kie-ci-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:52) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kie.builder.impl.KieModuleKieProject.<init>(KieModuleKieProject.java:40) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:99) [drools-compiler-6.2.0.Final.jar:6.2.0.Final]

        at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:106) [jbpm-kie-services-6.2.0.Final.jar:6.2.0.Final]

        ... 49 more

      13:38:43,743 INFO  [org.guvnor.common.services.backend.config.DefaultApplicationPreferencesLoader] (MSC service thread 1-3) Setting preference 'type' to 'kjar'.

      13:38:43,744 INFO  [org.guvnor.common.services.backend.config.DefaultApplicationPreferencesLoader] (MSC service thread 1-3) Setting preference 'drools.dateformat' to 'dd-MMM-yyyy'.

      13:38:43,746 INFO  [org.guvnor.common.services.backend.config.DefaultApplicationPreferencesLoader] (MSC service thread 1-3) Setting preference 'drools.defaultlanguage' to 'en'.

      13:38:43,747 INFO  [org.guvnor.common.services.backend.config.DefaultApplicationPreferencesLoader] (MSC service thread 1-3) Setting preference 'rule-modeller-onlyShowDSLStatements' to 'false'.