• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Head First EJB - Problem

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the Head First EJB Book to try to learn EJB. The problem I have is in the Intro with the example application. I have downloaded the Sun Application Server PE 8 for use with this book. I followed the example step by step, and everything seemed fine (the new deploy tool had a few differences, but the J2EE validator showed no errors, and kicked back the client jar). The problem I have is when I write the client app and try to get back the Advice...

Problem 1:
When I compile the source using

I get all kinds of errors saying it couldn't find packages. I then added the AdviceAppClient.jar to my classpath environment variable, and compiled the java source for the client (no errors).
Problem 2:
When I run the AdviceClient.class file with the method suggested in the book, I get an error

Problem 3:
When I run the AdviceClient.class file without the -cp, I get a different error


Has anyone else encountered these issues? Am I doing something really dumb here? I have found the Head First books good in the past (I have used the Head First Servlets and JSP book, as well as the Head First Design Patterns).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic