jakarta-bsf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raza, Rizwan \(MLCI\)" <Rizwan_R...@ml.com>
Subject RE: evaluating simple string "2 == 2"
Date Wed, 15 Oct 2008 15:52:06 GMT
Thanks. Ok I got that so that problem is gone but now it is complaining
org.apache.bsf.engines.java.JavaEngine. I do not think that the bsf
2.4.0 jar that I am using has JavaEngine in it. Am I using an obsolete

Oct 15, 2008 10:45:14 AM org.apache.bsf.BSFManager loadScriptingEngine
SEVERE: Exception :
java.lang.ClassNotFoundException: org.apache.bsf.engines.java.JavaEngine
	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)
	at org.apache.bsf.BSFManager.eval(BSFManager.java:435)
	at EvaluatorB.Evaluate(EvaluatorB.java:18)
	at Evaluator.main(Evaluator.java:7)
Exception in thread "main" java.lang.NullPointerException
	at Evaluator.main(Evaluator.java:8)
org.apache.bsf.BSFException: unable to load language: java

Below is the code.

import org.apache.*;
import org.apache.bsf.*;
import org.apache.commons.*;
import org.apache.commons.logging.*;
import org.apache.bsf.engines.*;

public class EvaluatorB {

	public EvaluatorB()
	public Object Evaluate(){
		Object o = null;
			BSFManager manager = new
			o = manager.eval("java","",0,0,"return
		catch(BSFException exc)
			String s = exc.toString();
		return o;

-----Original Message-----
From: Jack J. Woehr [mailto:jwoehr@softwoehr.com] 
Sent: Wednesday, October 15, 2008 10:33 AM
To: Bean Scripting Framework users
Subject: Re: evaluating simple string "2 == 2"

Raza, Rizwan (MLCI) wrote:
> Thanks Rony for replying. I did the changes but still getting the
> following exception. Do I have to configure (provide path) to some log
> file somewhere?
You have to provide Apache Commons which you can download from Apache.
It's apparently not in your classpath, or at least, not the right level 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory

To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org

This message w/attachments (message) may be privileged, confidential or proprietary, and if
you are not an intended recipient, please notify the sender, do not use or share it and delete
it. Unless specifically indicated, this message is not an offer to sell or a solicitation
of any investment products or other financial product or service, an official confirmation
of any transaction, or an official statement of Merrill Lynch. Subject to applicable law,
Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may
be archived, supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This message is subject
to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging
with Merrill Lynch you consent to the foregoing.

To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org

View raw message