Please do not compile the example by running compileVarArgServletDemo in the
$MATLABROOT\toolbox\javabuilder\Examples\java_web_vararg_demo\compile
directory. First copy the whole java_web_vararg_demo directory to some working directory outside of your MATLAB installation directory, then run compileVarArgServletDemo from this new location.