9 Replies Latest reply on Mar 23, 2009 5:59 AM by Heiko Braun

    juel libs

    Tom Baeyens Master

      added the juel libs to the repo.
      added juel and javax.el api dependencies to the pom files

      still i get a

      java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
       at com.sun.script.juel.JuelScriptEngine.<init>(JuelScriptEngine.java:95)
       at com.sun.script.juel.JuelScriptEngineFactory.getScriptEngine(JuelScriptEngineFactory.java:241)
       at javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:130)
       at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:94)
       at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:73)
       at org.jbpm.pvm.expr.ExpressionTest.testExpressionManagerParsing(ExpressionTest.java:66)
      



      Pascal, can you have a look to see if you can find the problem ?

        • 1. Re: juel libs
          Pascal Verdage Newbie

          Thanks for the add.
          I won't be here tomorrow so I'll look at it first thing monday morning.
          Regards,
          Pascal

          • 2. Re: juel libs
            porcherg Novice

             

            "tom.baeyens@jboss.com" wrote:
            added the juel libs to the repo.


            The juel-impl files are in: http://repository.jboss.org/maven2/juel/juel/juel-impl/, but maven looks for them in http://repository.jboss.org/maven2/juel/juel-impl/ .
            As a result compilation fails.

            regards,
            Guillaume

            • 3. Re: juel libs
              Tom Baeyens Master

              should be fixed. i'll try again myself to see if that fixes the problem.

              • 4. Re: juel libs
                Tom Baeyens Master

                still a lib issue somewhere. i expect that the javax.el lib in the maven repo != the one we have in the ivy repo.

                i'll check that now.

                error i still see is:

                java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
                 at com.sun.script.juel.JuelScriptEngine.<init>(JuelScriptEngine.java:95)
                 at com.sun.script.juel.JuelScriptEngineFactory.getScriptEngine(JuelScriptEngineFactory.java:241)
                 at javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:130)
                 at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:94)
                 at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:73)
                 at org.jbpm.pvm.expr.ExpressionTest.testExpressionManagerParsing(ExpressionTest.java:66)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at junit.framework.TestCase.runTest(TestCase.java:164)
                 at org.jbpm.pvm.test.base.JbpmTestCase.runTest(JbpmTestCase.java:62)
                 at junit.framework.TestCase.runBare(TestCase.java:130)
                 at junit.framework.TestResult$1.protect(TestResult.java:106)


                both when running in eclipse and running mvn from the command line

                • 5. Re: juel libs
                  Tom Baeyens Master

                  now i remember.

                  i had to recompile the classes for java 5 (was java6) of one of the libs. don't remember which one though

                  • 6. Re: juel libs
                    Tom Baeyens Master

                    no. probably the bytecode version ain't it. as i used the ivy juel libs to deploy into the maven repo

                    • 7. Re: juel libs
                      Tom Baeyens Master

                      javax.el.ExpressionFactory is in juel.jar

                      and on the command line with -X for debug, i get

                       Test Classpath :
                       C:\wstempranillo\pvm\modules\core\target\test-classes
                       C:\wstempranillo\pvm\modules\core\target\classes
                       C:\Documents and Settings\tom\.m2\repository\org\hibernate\hibernate\3.2.5.ga\hibernate-3.2.5.ga.jar
                       C:\Documents and Settings\tom\.m2\repository\net\sf\ehcache\ehcache\1.2.3\ehcache-1.2.3.jar
                       C:\Documents and Settings\tom\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
                       C:\Documents and Settings\tom\.m2\repository\commons-collections\commons-collections\2.1.1\commons-collections-2.1.1.jar
                       C:\Documents and Settings\tom\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar
                       C:\Documents and Settings\tom\.m2\repository\asm\asm-attrs\1.5.3\asm-attrs-1.5.3.jar
                       C:\Documents and Settings\tom\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
                       C:\Documents and Settings\tom\.m2\repository\antlr\antlr\2.7.6\antlr-2.7.6.jar
                       C:\Documents and Settings\tom\.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar
                       C:\Documents and Settings\tom\.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar
                       C:\Documents and Settings\tom\.m2\repository\hsqldb\hsqldb\1.8.0.7\hsqldb-1.8.0.7.jar
                       C:\Documents and Settings\tom\.m2\repository\com\cenqua\clover\clover\2.3.1\clover-2.3.1.jar
                       C:\Documents and Settings\tom\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
                       C:\Documents and Settings\tom\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar
                       C:\Documents and Settings\tom\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar
                       C:\Documents and Settings\tom\.m2\repository\org\livetribe\livetribe-jsr223\2.0.3\livetribe-jsr223-2.0.3.jar
                       C:\Documents and Settings\tom\.m2\repository\org\jboss\seam\jboss-seam\2.0.1.GA\jboss-seam-2.0.1.GA.jar
                       C:\Documents and Settings\tom\.m2\repository\javassist\javassist\3.3.GA\javassist-3.3.GA.jar
                       C:\Documents and Settings\tom\.m2\repository\org\jboss\el\jboss-el\2.0.1.GA\jboss-el-2.0.1.GA.jar
                       C:\Documents and Settings\tom\.m2\repository\javax\el\el-api\1.0\el-api-1.0.jar
                       C:\Documents and Settings\tom\.m2\repository\org\springframework\spring\2.5.4\spring-2.5.4.jar
                       C:\Documents and Settings\tom\.m2\repository\jboss\jboss-j2ee\4.2.1.GA\jboss-j2ee-4.2.1.GA.jar
                       C:\Documents and Settings\tom\.m2\repository\cactus\cactus\13-1.7.1\cactus-13-1.7.1.jar
                       C:\Documents and Settings\tom\.m2\repository\cactus\cactus-ant\13-1.7.1\cactus-ant-13-1.7.1.jar
                       C:\Documents and Settings\tom\.m2\repository\commons-httpclient\commons-httpclient\2.0.2\commons-httpclient-2.0.2.jar
                       C:\Documents and Settings\tom\.m2\repository\httpunit\httpunit\1.6\httpunit-1.6.jar
                       C:\Documents and Settings\tom\.m2\repository\xerces\xmlParserAPIs\2.2.1\xmlParserAPIs-2.2.1.jar
                       C:\Documents and Settings\tom\.m2\repository\xerces\xercesImpl\2.6.2\xercesImpl-2.6.2.jar
                       C:\Documents and Settings\tom\.m2\repository\nekohtml\nekohtml\0.9.1\nekohtml-0.9.1.jar
                       C:\Documents and Settings\tom\.m2\repository\rhino\js\1.5R4.1\js-1.5R4.1.jar
                       C:\Documents and Settings\tom\.m2\repository\jtidy\jtidy\4aug2000r7-dev\jtidy-4aug2000r7-dev.jar
                       C:\Documents and Settings\tom\.m2\repository\aspectj\aspectjrt\1.2.1\aspectjrt-1.2.1.jar
                       C:\Documents and Settings\tom\.m2\repository\cargo\cargo\0.5\cargo-0.5.jar
                       C:\Documents and Settings\tom\.m2\repository\ant\ant\1.5.4\ant-1.5.4.jar
                       C:\Documents and Settings\tom\.m2\repository\juel\juel\2.1.0\juel-2.1.0.jar
                       C:\Documents and Settings\tom\.m2\repository\juel\juel-engine\2.1.0\juel-engine-2.1.0.jar
                       C:\Documents and Settings\tom\.m2\repository\juel\juel-impl\2.1.0\juel-impl-2.1.0.jar
                      


                      • 8. Re: juel libs
                        Tom Baeyens Master

                        got it fixed by moving the juel libs up in the dependencies list.

                        but still i would like to find out why the other el libs are included.