Hi There,
I am upgrading a stable (2.1.7) customer application that I wrote to 2.1.11.
In my flowscript, I get an error on this line and I don't know why--the
jar file with this package is on the classpath.
var encoder = new
Packages.org.apache.cocoon.ojb.samples.bean.PasswordEncoder();
The "caused by" is below.
Any ideas what I am doing wrong?
thx
Paul
Caused by: org.mozilla.javascript.EcmaError: TypeError: [JavaPackage
org.apache.cocoon.ojb.samples.bean.PasswordEncoder] is not a function,
it is org.mozilla.javascript.NativeJavaPackage. (file:///C:/Program
Files/Apache Software Foundation/Tomcat
5.5/webapps/webapp/webtask/request/Request.js#8)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229)
at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3219)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3235)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3254)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3309)
at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3297)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3116)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:172)
at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.setupContext(FOM_JavaScriptInterpreter.java:610)
at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:718)
...
47 more
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]