I guess the message (below) was telling me that I had a Package, not a
class.
org.mozilla.javascript.EvaluatorException: "file:///C:/Program
Files/Apache Software Foundation/Tomcat
5.5/webapps/webapp/webtask/request/Request.js", line 8: Not a Java
class: [JavaPackage org.apache.cocoon.ojb.samples.bean.PasswordEncoder]
I changed the line by taking out the "new" at the beginning and the ()
at the end to:
var encoder = Packages.org.apache.cocoon.ojb.samples.bean.PasswordEncoder;
And lo and behold it works.
Not sure why as in my PasswordEncoder.java file, PasswordEncoder is a class.
public class PasswordEncoder {
...
}
Paul
Benjamin Boksa wrote:
Any ideas anyone?
Have you tried
importClass(Packages.rg.apache.cocoon.ojb.samples.bean.PasswordEncoder);
[...]
var encoder = new PasswordEncoder();
?
Just an "any idea" ;-). I have not tried it - but I use the construct
above in some places.
Let me know if that helps
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]