title: Use Tomcat 6.0 as server for java web application cause javax.persistence annotations to be messed up
body: <p>Normally, I use Glass Fish as my testing server for NetBeans.
  Recently, I tried to switch to Tomcat 6.0. As soon as I changed the server, compiler no longer understand javax.persistence.Entity. When I checked out the library structure of Tomcat 6.0, there was a file named annotation-api.jar, in which another javax.persistence package resides (!!!). Is it possible to resolve this kind of conflict, which there are two package with different contents share the same name?</p>