在你Class.forName(serviceName)的serviceName中加上该类的包路径.
如果还不行,把语句Service s=(Service)Class.forName(serviceName).newInstance();
改成Service s=("该类的包路径".Service)Class.forName(serviceName).newInstance();
应该可以解决问题.