AnsweredAssumed Answered

Using 3rd party jar files in custom scripting

Question asked by PaulBelanger414 on Dec 16, 2011
Latest reply on Jan 13, 2016 by James Ahlborn
Hi,

I need to access Saxonica xquery functionality in a Data Process - Custom Scripting step. My script begins with:

import net.sf.saxon.Configuration;
import net.sf.saxon.query.StaticQueryContext;
import net.sf.saxon.query.XQueryExpression;
import net.sf.saxon.query.DynamicQueryContext;
import java.util.Properties;
import java.io.InputStream;
...

When I run it in test mode, the following errors are returned:

Test execution of Account Import Process completed with errors.   Embedded message: Error Executing Data Process; Caused by:  javax.script.ScriptException:  org.codehaus.groovy.control.MultipleCompilationErrorsException: startup  failed, Script14.groovy: 1: unable to resolve class  net.sf.saxon.Configuration  @ line 1, column 1.Script14.groovy: 2: unable to resolve class  net.sf.saxon.query.StaticQueryContext  @ line 2, column 1.Script14.groovy: 3: unable to resolve class  net.sf.saxon.query.XQueryExpression  @ line 3, column 1.Script14.groovy: 4: unable to resolve class  net.sf.saxon.query.DynamicQueryContext  @ line 4, column 1.Script14.groovy: ...

I have copied Saxonica jar file (saxon9he.jar) under the following directories:

C:\Program Files\Boomi AtomSphere\Atom - atkins\endorsed
C:\Program Files\Boomi AtomSphere\Atom - atkins\lib


I was expecting Boomi to have those 2 directories in its classpath, but I guess I'm wrong on this. How should I configure the atom machine so that Boomi finds Saxonica jar file ?

Thanks,

Paul

Outcomes