2 Replies Latest reply on Apr 11, 2011 12:01 PM by tma0si3

    Newbie in jbpm :unable to run examples

    tma0si3

      Hello,

       

      I am taking my baby steps in to jBPM 4.4. I going through the User Guide and setting up workspace accordingly.

      http://docs.jboss.org/jbpm/v4/userguide/html_single/

       

      I have imported the example source code that comes through standard download.

       

      When I try to run the examples , i get the below error . Pls help  ,what I am missing.

       

      java.lang.NoClassDefFoundError: javax/el/FunctionMapper

          at java.lang.Class.forName0(Native Method)

          at java.lang.Class.forName(Class.java:247)

          at org.jbpm.pvm.internal.util.ReflectUtil.classForName(ReflectUtil.java:434)

          at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getType(ObjectDescriptor.java:241)

          at org.jbpm.pvm.internal.wire.WireDefinition.addDescriptor(WireDefinition.java:88)

          at org.jbpm.pvm.internal.wire.xml.WireParser.parseDocumentElement(WireParser.java:208)

          at org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:101)

          at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)

          at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)

          at org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:86)

          at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:432)

          at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)

          at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)

          at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)

          at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)

          at org.jbpm.api.Configuration.setResource(Configuration.java:79)

          at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)

          at org.jbpm.test.JbpmTestCase.buildProcessEngine(JbpmTestCase.java:98)

          at org.jbpm.test.JbpmTestCase.setUp(JbpmTestCase.java:87)

          at org.jbpm.examples.bpmn.usertask.taskform.TaskFormTest.setUp(TaskFormTest.java:17)

          at junit.framework.TestCase.runBare(TestCase.java:125)

          at junit.framework.TestResult$1.protect(TestResult.java:106)

          at junit.framework.TestResult.runProtected(TestResult.java:124)

          at junit.framework.TestResult.run(TestResult.java:109)

          at junit.framework.TestCase.run(TestCase.java:118)

          at junit.framework.TestSuite.runTest(TestSuite.java:208)

          at junit.framework.TestSuite.run(TestSuite.java:203)

          at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)

          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

      Caused by: java.lang.ClassNotFoundException: javax.el.FunctionMapper

          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

          ... 33 more

        • 1. Newbie in jbpm :unable to run examples
          jdh

          I feel your pain.  I found a reference to your problem on http://www.coderanch.com/t/214707/JSF/java/javax-el-package.  Basically it looks like the web app your using does not support Servlet 2.5/JSP 2.1.  If you use something newer like Tomcat 6 the library should be available.  Hope this helps.


          Jim

          • 2. Newbie in jbpm :unable to run examples
            tma0si3

            Hi Jim,

            I got my workspace setup. I was just blindly following the notes from

            http://docs.jboss.org/jbpm/v4/userguide/html_single/ to get things started.

             

            Finally, I added the below Jars to buildpath to finally get things going.

             

            junit-3.8.1.jar

            commons-collections-3.2.1.jar

            mail-1.4.jar

            subethasmtp-wiser-1.2.jar

            el-api-6.0.20.jar

            jta.jar

            dom4j.jar

            hibernate-core.jar

            slf4j-log4j12-1.6.1.jar

            slf4j-api-1.6.1.jar

            log4j.jar

            hsqldb.jar

            javassist.jar

            antlr.jar

            antlr-runtime.jar

             

            If we are using the sl4j jars bundles along with standard jbpm download , we will end up crossing our paths with below error.

            ==============================================================

            Exception in thread "main" java.lang.IllegalAccessError: tried to access field

            org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

               at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:60)

            ==============================================================

            Solution is to refer to http://www.slf4j.org/faq.html

             

            Thanks .