Subject:Class Not Found Exception - Again Author:Sanjay Kamat Date:16 Aug 2002 03:09 PM
Here is a simple java source:
public class MyStubs{
public MyStubs()
{
}
public Object returnSuccess(String strMessage)
{
String result = "Success" ;
return result;
}
public Object returnFailure( String strMessage)
{
String result = "Failure" ;
return result;
}
}
An XSLT script using these extensions runs fine from command line invocation of Apache Xalan processor, but within eXcelon Stylus Studio gives NoSuchMethodException: For extension function, could not find method java.lang.String.returnSuccess([ExpressionContext,]).
Subject:Re: Class Not Found Exception - Again Author:(Deleted User) Date:16 Aug 2002 03:44 PM
Sanjay,
I'm not able to reproduce this.
The first thing I'd check is to be sure that the embedded JVM within
Stylus contains the a path in the classpath where MyStubs.class lives.
Check the settings in "Tools->Options->Java Virtual Machine" to ensure
they are correct.
If that isn't the problem, check that the calling syntax is correct.
This worked for me: