Saturday, May 26, 2007 07:26 AM
I'm using the Visual Web Pack in Netbeans 5.5. I made most of my database connections via CachedRowSet and CachedRowDataProvider but some of the backing beans I tried to use some java persistence annotation and features to fulfill some back stage operations. But when I add a backing bean class. An Exception arises in the prerender method of my start page, which has nothing to do with
javax.persistence.EntityManager.The problematic page is under
, but my persistence class is under
. It makes no sense that the two will have any conflicts. The exception here bothers me a lot.
java.lang.ClassCastException: com.sun.enterprise.util.EntityManagerFactoryWrapper cannot be cast to javax.sql.DataSource
Does anyone know why a originally normal page could have been effected by a persistence class under other package.