cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Exception in thread 'main' java.lang.NoClassDefFoundError: javax/el/ELContext while running 'Hello World ' program

krishna_v174
Champ in-the-making
Champ in-the-making
Hi,

I am Very new to Aciviti. I tried to run the "Hello world " program which i got a sample from the internet.
While running i got the following Exception .
I already added the jar containing ELContext class in to my build path. But i wouldn't help me.


Exception in thread "main" java.lang.NoClassDefFoundError: javax/el/ELContext
   at org.activiti.impl.cfg.ProcessEngineFactory.createDefaultExpressionManager(ProcessEngineFactory.java:267)
   at org.activiti.impl.cfg.ProcessEngineFactory.init(ProcessEngineFactory.java:107)
   at org.activiti.impl.cfg.ProcessEngineFactory.createProcessEngine(ProcessEngineFactory.java:169)
   at org.activiti.DbProcessEngineBuilder.buildProcessEngine(DbProcessEngineBuilder.java:214)
   at Main.main(Main.java:17)
Caused by: java.lang.ClassNotFoundException: javax.el.ELContext
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   … 5 more
2 REPLIES 2

felipe1
Champ in-the-making
Champ in-the-making
Are you deploying in a web container like Tomcat or jBoss? In that case you have to make sure that the jar is in the container's or your war's /lib folder.

Are you using maven? If so, can you post you pom.xml?

frederikherema1
Star Contributor
Star Contributor
What version of activiti are you using?