"Could not resolve a persistence unit" error...
Hello,
I created a Netbeans Visual Web application. I added an Entity Class from a database table. A resource is added into Server Resources part. when I look at its properties, I see that it's JNDI name is set to "bitkiwiki" and I check the Sun Application Server's JDBC Resources and I see "bitkiwiki" in JDBC Resources.
My controller class has a EntityManagerFactory element:
@PersistenceUnit(unitName ="bitkiwiki")
private EntityManagerFactory emf;
When I compile the project it compiles successfully but when I deploy it, I get an error like this:
Deploying application in domain failed; Deployment Error -- Could not resolve a persistence unit corresponding to the persistence-unit-ref-name .......
The Persistance UnitName exists in the server resources but it still complains about it.
What's the problem you think?
Thanks.

