Hello, I write an small examples demonstrate how EJB,Java Persistences and JSP work together. I have one session bean: +CustomerSession.java +CustomerSessionLocal.java +CustomerSessionRemote.java and some persistence classes: +Address +Customer +Subscription Well, my JSP page looks like: <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ page language="java" %> <%@ page import="javax.naming.InitialContext" %> <%@ page import="enterprise.customer_cmp_ejb.persistence.Customer" %> <%@ page import="enterprise.customer_cmp_ejb.persistence.Subscription" %> <%@ page import="enterprise.customer_cmp_ejb.ejb.session.*" %> <%@ page import='java.util.*' %> .................. InitialContext ic = new InitialContext(); Object o = ic.lookup("java:comp/env/CustomerSessionLocal"); CustomerSessionLocal custSession = (CustomerSessionLocal) o; ................. When I build the war file, NetBeans 5.5 announced that there are some errors: Compiling 1 source file to D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\classes D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:7: package enterprise.customer_cmp_ejb.persistence does not exist import enterprise.customer_cmp_ejb.persistence.Customer; D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:8: package enterprise.customer_cmp_ejb.persistence does not exist import enterprise.customer_cmp_ejb.persistence.Subscription; D:\Projects\EESample_JavaPersistence\EESample_JavaPersistence-war\build\generated\src\org\apache\jsp\createCustomer_jsp.java:9: package enterprise.customer_cmp_ejb.ejb.session does not exist import enterprise.customer_cmp_ejb.ejb.session.*; I don't understand why. However, i also try editing the web.xml as follow: EJB Session CustomerSessionLocal Session enterprise.customer_cmp_ejb.ejb.session.CustomerSessionLocal CustomerSession In spite of trying hard, the build can't complete. I hope I'll get your supports. Thanks very much!!!