JBoss Community

Re: couldn't get value for file 'classes/java/lang/bsh.class

created by Sunay Shah in jBPM - View the full discussion

Hello All,

 

I think the problem is at the jbpm3.2.6 only because i have made one test class with the same jar files and its able to load Beanshell , which is not possible in my decision Handler

 

see my test class has following code

 

           BSFManager bsfManager = new BSFManager();   
            BSFEngine bsfEngine = bsfManager.loadScriptingEngine("beanshell");

            System.out.println("==> Engine loaded successfully");
            System.out.println("=====>" + bsfEngine.getClass().getName());

 

this is able to load the bsfengine and prints

==> Engine loaded successfully
=====>bsh.util.BeanShellBSFEngine    

 

while in decision handler

  BSFEngine bsfEngine = this.manager.loadScriptingEngine("beanshell");


this code is throwing exception with  message

 

Unable to load Language : beanshell

 

and log this exception

  org.jbpm.JbpmException: couldn't get value for file 'classes/java/lang/bsh.class'

 

I am using following jars..

 

bsh.jar

bsf.jar

bsh-2.0b2.jar

 

Any one have idea about this painstacking issue ?? :(

 

 

Thanks

Sunay

Reply to this message by going to Community

Start a new discussion in jBPM at Community