• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Set up problems for HF EJB

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic