File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Error while running my first ejb program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Error while running my first ejb program" Watch "Error while running my first ejb program" New topic

Error while running my first ejb program

ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
hi i m using Sun Application Server 8.1 and tried to run a ejb code that was given in head first ejb book. as per this online tutorial created an application and deployed it ane even created the client side jar file . but when running it using the command appclient -client AdviceAppClient.jar
i m getting the following error

E:\projects\advice>appclient -client AdviceAppClient.jar
Feb 2, 2007 10:18:55 AM com.sun.enterprise.appclient.Main <init>
WARNING: ACC003: Application threw an exception.
java.lang.NoClassDefFoundError: headfirst.AdviceHome
at AdviceClient.class$(
at AdviceClient.go(
at AdviceClient.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.util.Utility.invokeApplicationMain(
at com.sun.enterprise.appclient.Main.<init>(
at com.sun.enterprise.appclient.Main.main(

couldnot figure out the actual cause of the error ......
if someone could help me out of it

thanks in advance

I agree. Here's the link:
subject: Error while running my first ejb program
It's not a secret anymore!