cancel
Showing results for 
Search instead for 
Did you mean: 

ant demo.setup does not work on MacOS 10.6.4 on 5.0 beta 2

coderinabstract
Champ in-the-making
Champ in-the-making
after several tries and hours and going through forum trying to use maven to update correct jar cannot start with tomcat..full exception trace below..any help to evaluate this technology appreciated..thanks

h2.start:
   [launch] launching cmd '/Applications/activiti-5/apps/h2/h2.start.sh ' in dir '/Applications/activiti-5/apps/h2'
   [launch] waiting for launch completion msg 'TCP server running on'…
   [launch]   TCP server running on tcp://192.168.1.144:9092 (others can connect)

db.create:
      [sql] Executing resource: org/activiti/db/create/activiti.h2.create.sql
      [sql] 31 of 31 SQL statements executed successfully
      [sql] Executing resource: org/activiti/db/cycle/create/activiti.h2.create.sql
      [sql] 1 of 1 SQL statements executed successfully

tomcat.install:

internal.download.tomcat:
    [unzip] Expanding: /Applications/downloads/apache-tomcat-6.0.29.zip into /Applications/activiti-5/apps

tomcat.copy.users:

tomcat.enable.debug:
     [copy] Copying 1 file to /Applications/activiti-5/apps/apache-tomcat-6.0.29/conf

cfg.create:
     [copy] Copying 1 file to /Applications/activiti-5/setup/build/activiti-cfg
      [jar] Building jar: /Applications/activiti-5/setup/build/activiti-cfg.jar

deploy.activiti.engine.into.tomcat:
     [copy] Copying 1 file to /Applications/activiti-5/apps/apache-tomcat-6.0.29/lib

db.demo.data:
      [sql] Executing resource: /Applications/activiti-5/setup/build/demo/h2.data.sql
      [sql] 26 of 26 SQL statements executed successfully
[deploy-bar] Initializing process engine default
[deploy-bar] Oct 11, 2010 11:07:36 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
[deploy-bar] INFO: initializing process engine for resource jar:file:/Applications/activiti-5/setup/build/activiti-cfg.jar!/activiti.properties
[deploy-bar] Oct 11, 2010 11:07:36 PM org.activiti.engine.ProcessEngines initProcessEnginFromResource
[deploy-bar] INFO: Exception while initializing process engine Smiley Tonguerovider com.sun.el.ExpressionFactoryImpl not found

BUILD FAILED
org.activiti.engine.ActivitiException: Process engine 'default' can not be initialized! org.activiti.engine.ActivitiException: Provider com.sun.el.ExpressionFactoryImpl not found
   at org.activiti.engine.impl.el.ExpressionFactoryResolver.getExpressionFactoryforEl11(ExpressionFactoryResolver.java:190)
   at org.activiti.engine.impl.el.ExpressionFactoryResolver.resolveExpressionFactory(ExpressionFactoryResolver.java:55)
   at org.activiti.engine.impl.el.ExpressionManager.<init>(ExpressionManager.java:58)
   at org.activiti.engine.impl.cfg.ProcessEngineConfiguration.<init>(ProcessEngineConfiguration.java:201)
   at org.activiti.engine.ProcessEngineBuilder.buildProcessEngine(ProcessEngineBuilder.java:263)
   at org.activiti.engine.ProcessEngines.buildProcessEngine(ProcessEngines.java:126)
   at org.activiti.engine.ProcessEngines.initProcessEnginFromResource(ProcessEngines.java:101)
   at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:76)
   at org.activiti.engine.impl.ant.DeployBarTask.execute(DeployBarTask.java:71)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   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:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.apache.tools.ant.Main.runBuild(Main.java:758)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found
   at javax.el.FactoryFinder.newInstance(FactoryFinder.java:66)
   at javax.el.FactoryFinder.find(FactoryFinder.java:162)
   at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:154)
   at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:125)
   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:597)
   at org.activiti.engine.impl.el.ExpressionFactoryResolver.getExpressionFactoryforEl11(ExpressionFactoryResolver.java:181)
   … 24 more
Caused by: java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
   at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
   at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
   at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at javax.el.FactoryFinder.newInstance(FactoryFinder.java:52)
   … 32 more

   at org.activiti.engine.impl.ant.DeployBarTask.execute(DeployBarTask.java:85)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   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:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.apache.tools.ant.Main.runBuild(Main.java:758)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
7 REPLIES 7

frederikherema1
Star Contributor
Star Contributor
Hi,

Looks like there is a el-service file somewhere on your classpath containing 'com.sun.el.ExpressionFactoryImpl' as expressionFactory provider, when this class is not available.

Try locating the file $java.home/lib/el.properties (or /META-INF/services/javax.el.ExpressionFactory somewhere on your classpath). Can you also double-check if the el-api.jar is present in your tomcat/lib folder?

Because there is an error trying to instantiate the el-provider, we don't fall trough to using JUEL-el as default and engine initialization fails.

coderinabstract
Champ in-the-making
Champ in-the-making
Thanks for the suggestion.

Could not find the files and tomcat has the API in the lib.

Anyway to modify ant  to see where each class is being loaded from?

Thoughts??

Can the samples be run in eclipse directly?? Could not figure out a way to get them to run?? Junit tsetse fail in eclipse with the same error

Any suggestions?

Thank You

frederikherema1
Star Contributor
Star Contributor
Something that will work for you is the following:

1. Create a zip-archive containing one folder: META-INF/services/
In this folder, add the file named 'javax.el.ExpressionFactory', containing:
de.odysseus.el.ExpressionFactoryImpl
2. Rename the zip-archive to *.jar (eg. expression-fix.jar)

3. Add the jar to the $[distro}/lib folder (eg. /Users/fheremans/activiti/activiti-5.0.beta2/lib)

4. Alter file $[distro}/setup/build.xml, add an extra include to the fileset used in target 'deploy.activiti.engine.into.tomcat' (around line 312 somewhere), so it looks like the fragment below:

      <fileset dir="${activiti.home}/lib">
        <include name="activiti-cycle-${activiti.version}.jar"/>
        <include name="expression-fix.jar"/>
      </fileset>

This should fix it, however I'm not sure why this error occurs… In the next release these issue will be removed, since we use another approach for expression handling.

coderinabstract
Champ in-the-making
Champ in-the-making
sorry tried everything including searching filesystem within jars…no luck

Thanks for all your help

jbarrez
Star Contributor
Star Contributor
The core team is running all on mac, so we test it actucally the most on os x.

Could you post the exact steps you do, starting from unzipping the Activiti zip ?

coderinabstract
Champ in-the-making
Champ in-the-making
Have wiped out local maven repo and rebuild and it works!!!

jbarrez
Star Contributor
Star Contributor
Great to hear it !
Strange that Maven would screw a jar … its supposed to check these things.