Hi All:
I am just trying out examples of entity beans. I am using
JBOSS 4.0.0,
EJB 2.0, MyEclipse 8.6. Reason for using JBOSS 4.0.0 and EJB 2.0 is just for learning sake. I am reading head first book. In the process help me if I made any mistakes. I wrote a build file using
ant to deploy this in deploy directory of JBOSS. I also have login-config.xml, standardjaws.xml and jbosscmp-jdbc.xml file in my Meta-Inf directory. I am getting this error:
java.lang.NullPointerException
at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)
at $Proxy0.findByPrimaryKey(Unknown Source)
at AccesesPackage.DirectorMovie.go(DirectorMovie.java:24)
at AccesesPackage.DirectorMovie.main(DirectorMovie.java:13)
My ejb.jar file:
My Jboss.xml is:
In my director package I have these files:
director home:
director component interface:
director bean:
My movie package has following files:
movie home:
movie component interface:
movie bean:
Finally I have a client class like this:
Any help is greatly appreciated. I get some confidence going by solving this example.
Thank you in advance.