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

package com.sun.jck.lib;
public interface WSGenTool {
    int generate(String sei, File outDir, PrintStream out, PrintStream err);
}

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

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

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