XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Sanjay KamatSubject: 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,]).

-Sanjay

Postnext
Adam AbrevayaSubject: Re: Class Not Found Exception - Again
Author: Adam Abrevaya
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:




- Adam

Posttop
Sanjay KamatSubject: Re: Class Not Found Exception - Again
Author: Sanjay Kamat
Date: 20 Aug 2002 10:56 AM
Adam,
Thanks. Adding the directory to JVM classpath worked. I had assumed that "." being in my system class path was sufficient.
-Sanjay

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.