I think I found the problem on my own,
The exception is thrown due to I have weblogic.jar and glassfish's appserv-rt.jar both in the class path ( I was working on weblogic before glassfish).
Once I remove the weblogic.jar from the class path, I no longer have this exception.
[Message sent by forum member 'chesterxgchen123' (chesterxgchen123)]
http://forums.java.net/jive/thread.jspa?messageID=225770