Hi All,

I was trying to deploy the duke bookstore example in sun java ee
tutorial ( servlets basics chapter)

I use Glass fish V2 server.

following are the errors I get:

init:
deps-module-jar:
init:
deps-jar:
Compiling 11 source files to D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\build\classes
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:13: package javax.persistence does not
exist
import javax.persistence.Entity;
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:14: package javax.persistence does not
exist
import javax.persistence.Id;
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:15: package javax.persistence does not
exist
import javax.persistence.Table;
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:18: cannot find symbol
symbol: class Entity
@Entity
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:19: cannot find symbol
symbol: class Table
@Table(name = "WEB_BOOKSTORE_BOOKS")
D:\netbeans_projects\J2EE\javaee-5-doc-
tutorial-1.0_05\javaeetutorial5\examples\web\bookstore\src\com\sun
\bookstore\database\Book.java:55: cannot find symbol
symbol  : class Id
location: class com.sun.bookstore.database.Book
    @Id
6 errors
BUILD FAILED (total time: 1 second)

There is a post already existing on this. But reference is for JBOSS
server.

I use Glassfish. I was not able to figure out

Please help me on this.

Thanks,
Prathibha


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to