File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Set up problems for HF EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Set up problems for HF EJB" Watch "Set up problems for HF EJB" New topic
Author

Set up problems for HF EJB

Angus Rose
Ranch Hand

Joined: Jun 21, 2002
Posts: 56
Hi all,
I've just started the HF EJB and have followed the instructions in the book to download and install the J2EE 1.3 release - all done. I've started coding the AdviceGuy bean class but on attempting to compile it I get the following :

AdviceBean.java:3: package javax.ejb does not exist
import javax.ejb.*;
^
AdviceBean.java:5: cannot resolve symbol
symbol : class SessionBean
location: class headfirst.AdviceBean
public class AdviceBean implements SessionBean{
^
AdviceBean.java:31: cannot resolve symbol
symbol : class SessionContext
location: class headfirst.AdviceBean
public void setSessionContext(SessionContext sc)
^
3 errors

So I guess I'm missing a j2ee jar somewhere along the line?
Any pointers?

Thank in advance

Angus
Angus Rose
Ranch Hand

Joined: Jun 21, 2002
Posts: 56
Right - where's the embarrassed emoticon - guess who forgot to add the j2ee.jar to their classpath?

Answer - the same person who passed the SCJP exactly one week ago. Doh!

Angus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set up problems for HF EJB
 
Similar Threads
error compiling ejb, first time prompt compile
error in compiling, ejb
NeedJ2EE 1.3 RI server Installation Help
please Help me in setting up environment variables
AdviceBean - compile time erorr