When you run the WSDL-to-Java mapping tool through a JavaTest Agent, it is executed in the Agent's JVM. You must provide a custom class to invoke your WSDL-to-Java mapping tool. This class should implement the com.sun.jck.lib.WSImportTool interface.

package com.sun.jck.lib;
public interface WSImportTool {
    int compile(String[] wsdlFiles, String[] xmlFiles, File outDir, PrintStream out, PrintStream err);
}

WSDL-to-Java mapping should be accomplished during invocation of compile method.

The JCK test suite includes the following sample class that is fully compatible with Oracle's reference implementation and that can be used as a WSDL-to-Java class: com.sun.jck.lib.WSImport.

If your implementation doesn't provide such a class, please, create it and specify it here.