Caused by: java.lang.NullPointerException
at beans.NewSessionBean.addBook(NewSessionBean.java:27)
Which is line 27? The one that says "em.persist(lib);" ?
If so, your em is null. Is EJBPU defined? Are there any errors when you deploy the jar?
[Message sent by forum member 'matterbury' (matterbury)]
http://forums.java.net/jive/thread.jspa?messageID=346668