cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to do bean instance creation

jaikrishna
Champ on-the-rise
Champ on-the-rise
I am getting the following error :


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [activiti.cfg.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/activiti/image/ProcessDiagramGenerator

I dont know how to resolve this . I am not finding the right jar file containing the above class ..
26 REPLIES 26

vasile_dirla
Star Contributor
Star Contributor
find that line into the activiti code: ProcessEngineConfigurationImpl.java
<code>
Configuration configuration = initMybatisConfiguration(environment, reader, properties);
</code>
and inspect the "reader" , it seems the related input stream could not be read for some reason.

it should point to this file: org/activiti/db/mapping/mappings.xml

did you delete/change something or is a default deployment?

jaikrishna
Champ on-the-rise
Champ on-the-rise
I am not able to find that line at all . I dont have a file named ProcessEngineConfigurationImpl.java actually .. I have a book named Activiti 5.x Business Process Management Beginner's Guide [Kindle Edition]
Dr. Zakir Laliwala (Author), Irshad Mansuri ..
I was trying to follow example given in page no :21 ..

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,

Where will I find the line ?
Configuration configuration = initMybatisConfiguration(environment, reader, properties);

I dont have a file named ProcessEngineConfigurationImpl.java ..
Please help me

vasile_dirla
Star Contributor
Star Contributor
What's your Activiti version?

jaikrishna
Champ on-the-rise
Champ on-the-rise
Activiti 5.17.0

vasile_dirla
Star Contributor
Star Contributor
do you have a class: org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl ?

according to the stacktrace you posted you should have it:
<code>
   at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initMybatisConfiguration(ProcessEngineConfigurationImpl.java:720)
at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.initSqlSessionFactory(ProcessEngineConfigurationImpl.java:708)
</code>

jaikrishna
Champ on-the-rise
Champ on-the-rise
Where can I check such class org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl  is present or not .. Please guide me ..
I am new to activiti ..I am using eclipse …

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,

The class which you were in telling is in jar file activiti 5.17 .. How can I check what value reader is getting ..
Please help me

vasile_dirla
Star Contributor
Star Contributor
download the activiti sources, config your IDE to use these sources for the activiti jar and then use the debugger in order to inspect the values.

try googleing "debugging with eclipse"

jaikrishna
Champ on-the-rise
Champ on-the-rise
I have got  the debugger value of reader which I am getting .. Please guide and help me ..

java.io.InputStreamReader@67fa6619  this is what I am getting