cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Des Magner <>
Subject Adding my Java code to flowscript
Date Sun, 23 Jan 2011 00:25:49 GMT

I am trying to add some custom code to be called from my flowscript but 
with no success. I followed the instructions in the user documentation 
to the letter ( I 
have added my source directory entry to the component-instance in the 
format "file:/path/to/my/source" but it doesn't seem to want to pick up 
the code. Say I have the following code in my flowscript:

var resource = new Packages.Test();

with the file placed in my source dir as specified above, I 
consistently get the following error:

org.mozilla.javascript.EvaluatorException: "file:///....js", line ..: 
Not a Java class: [JavaPackage Test]

I can get around it by placing the compiled class in the 
cocoon/WEB-INF/classes directory but this is not a very elegant solution.

Any help would be greatly appreciated.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message