0 Replies Latest reply on Aug 8, 2012 12:26 PM by Luis Victor

    problems building jbpm from source

    Luis Victor Newbie

      hi i downloaded the jbpm distribution and follow this steps to build froms source and get the console and human task problems fixed.

       

      mvn clean install -DskipTests -Dfull

       

      once it successfully completes coppy following libs from jbpm-distribution/target

      jbpm-VERSION-bin.zip

      jbpm-VERSION-gwt-console.zip

      jbpm-VERSION-human-task-war.zip

       

      into jbpm-installer/lib

       

      Once you have that you can run ant install.demo.noeclipse directly or put some already downladed artifacts into jbpm-sintaller/lib forlder such as jboss as7, birt package, designer, guvnor etc. For up  to date version number please check build.properties of the jbpm-installer.

      birt-runtime-3_7_0.zip

      designer-2.2.Final-jboss7.war

      guvnor-distribution-wars-VERSION.war

      jboss-as-7.0.2.Final.zip

      jbpm-VERSION-form-builder.war

       

      i maintained the guvnor and the other files from jbpm 5.3 final release. I'm getting this error when i logging as krisv. Please help.

       

      java.lang.RuntimeException: Could not initialize stateful knowledge session: org/drools/base/FieldDataFactory
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:164)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:128)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:132)
      org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
      org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:51)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)
      org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)
      org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:601)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

      root cause

      java.lang.NoClassDefFoundError: org/drools/base/FieldDataFactory
      org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:210)
      org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:170)
      org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:302)
      org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:230)
      org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
      org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.addProcessesFromConsoleDirectory(StatefulKnowledgeSessionUtil.java:238)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:146)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:128)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:132)
      org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
      org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:51)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)
      org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)
      org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:601)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

      root cause

      java.lang.ClassNotFoundException: org.drools.base.FieldDataFactory from [Module "deployment.jbpm-gwt-console-server.war:main" from Service Module Loader]
      org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
      org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
      org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
      org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
      org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
      org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:210)
      org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:170)
      org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:302)
      org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:230)
      org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
      org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:46)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.addProcessesFromConsoleDirectory(StatefulKnowledgeSessionUtil.java:238)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:146)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:128)
      org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:132)
      org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
      org.jbpm.integration.console.TaskManagement.<init>(TaskManagement.java:51)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)
      org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)
      org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)
      org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:601)
      org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
      org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
      org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
      org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
      org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
      org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
      org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

      note The full stack trace of the root cause is available in the JBoss Web/7.0.1.Final logs.