Re: Java Extension doesn't work in cocoon

2002-10-08 Thread Spencer

After tearing out my hair I finally realised that it was "the classpath,
stupid!!" Thanks for your help

Spencer


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Java Extension doesn't work in cocoon

2002-10-08 Thread Jacob L E Blain Christen

Your problem screams "It's the classpath stupid!" to me.

It looks as if the xalan and/or xpath libraries you are using
at the command line and from within cocoon are out of synch.

P.S. No I'm not calling you stupid!

--
Jacob L E Blain Christen
Entheal LLC

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Java Extension doesn't work in cocoon

2002-10-08 Thread Spencer

Please could someone help me, I have been stumped by this for 2 days!!

I am using a simple Java extension that is called from the xsl stylesheet.
The Java is included when the transformation is run from the command line
using xalan. When i run the exact same transformation from Cocoon, Cocoon
cannot find the file and gives the error:

java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension
function, could not find method
org.apache.xpath.axes.SelfIteratorNoPredicate.match ([ExpressionContext,])
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
):3231
)at java.lang.Thread.run(Thread.java:536
read.java:536)

Match is the name of the static method in the Java file:

...
  public boolean match (patternString)
   {
boolean b;
b = Pattern.matches ("He\\Wllo", patternString);
return b;
   }
...

from the xsl file:


http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:java="java"
xmlns:match="xalan://XSLPatternMatch" exclude-result-prefixes="match" >












Thanks

Spencer


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>