hi
I have just started studying
java programming again after a long spell working in network support and I am trying to get my head around
ejb and j2ee concepts in general using the Headfirst ejb book, which seems very good however I am having some difficulty at the end of the first chapter.
I know this is a popular book here and I was wondering if someone could help me out?
I have deployed the AdviceApp bean successfully which created AdviceAppClient.jar and AdviceApp.ear in the Advice folder.
I then attempted to compile the client using AdviceClient.java from the Advice folder however I got this compiler error, where it does not find the headfirst package.
AdviceClient.java:4: package headfirst does not exist
import headfirst.*;
^
AdviceClient.java:5: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceClient.java:18: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, Advice
Home.class);
^
AdviceClient.java:18: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, Advice
Home.class);
^
AdviceClient.java:18: cannot resolve symbol
symbol : class AdviceHome
location: class AdviceClient
AdviceHome home = (AdviceHome) PortableRemoteObject.narrow(o, Advice
Home.class);
^
AdviceClient.java:20: cannot resolve symbol
symbol : class Advice
location: class AdviceClient
Advice advisor = home.create();
^
6 errors