我需要重新在JVM里面定义org.Test，这样系统以后对该类的调用自然就被我监控了，也就是我前面问的，类的重载问题，今天收获不小，在sourceforge上搜获一篇文章介绍他是怎么改写Tomcat代码实现类重载，地址忘了，收藏在公司，明天再转贴在这这里。原理就是通过自定义ClassLoader去define新的org.Test，我试过了，不再报duplicate define class exception了。
Name spaces in the JVM arise from a simple rule that all JVMs must follow when they resolve the symbolic references contained inside class files. Sometimes, an entry in a constant pool may refer symbolically to a type that hasn't yet been loaded. When such entries are resolved, the JVM must load the referred-to type. Because all types must be loaded by a class loader, the JVM must at that point decide which class loader to ask to load the type.
To choose a class loader, the JVM uses this simple rule:
The Resolution Rule - The JVM loads referenced types via the same class loader that loaded the referencing type.