I am working with Netbeans 6.7.1 alongside a Glassfish server 2.1.
Java 1.6 is in the system
I have an enterprise application with a web application with a
jsp page,
and a session bean. These guys are fine.
Now I am trying to create an Entity Bean persisting on the Derby DB
in the Glassfish server.
My Persistence
Unit is "MyPu" and these are its contents :
Rooms.java, the entity bean, is this :
The real puzzle is that it compiles and it sometimes can even go with the GrandHotel.ear and
be successfully deployed, although it refuses to do any database inserts.
However when I run
Verify on the Rooms module (Entity Bean) I get :
Error Name : Could not verify successfully.
Error Description : java.io.IOException:
Cannot determine the Java EE module type for E:\NBProjects\Rooms\dist\Rooms.jar
at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:140)
at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:98)
at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:110)
at com.sun.enterprise.deployment.archivist.ArchivistFactory.getArchivistForArchive(ArchivistFactory.java:96)
at com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:219)
at com.sun.enterprise.tools.verifier.VerificationHandler.<init>(VerificationHandler.java:111)
at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:140)
at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
I see the message :
Cannot determine the Java EE module type but
I have the @Entity annotation written in Rooms.java quite clearly. This error message is rather ambiguous to me.
Does the persistence unit connect to the database and create the ROOMS table I need, or must I do that elsewhere in code?
Can anybody point me in the right direction?