Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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).
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic