It works well in tomcat 7 in Linux environment
But fails in tomcat 6 (windows) and websphere 7(Linux) with jpa2.0 feature pack.
Does it depend on versions of server??