AnsweredAssumed Answered

call custom java class from script

Question asked by rhofkens on Sep 5, 2006
Latest reply on Sep 5, 2006 by rhofkens

I'm trying to call a custom java class from a script.  According to the Rhino documentation, this should be possible using something like this:

writer = new;

The class is in the classpath.  I get the following error:

11:28:07,890 ERROR [SpringAwareUserTransaction] Transaction didn't commit org.alfresco.service.cmr.repository.ScriptException: Failed to execute script 'workspace://SpacesStore/e7955351-3cbd-11db-beca-6765312473fe': Referenc
eError: "geoxt" is not defined. (AlfrescoScript#5)
        at org.alfresco.repo.jscript.RhinoScriptService.executeScript(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Looks like I have to register the reference somewhere… any ideas?