Forums Register Login

appclient gives classnotfoundexception

+Pie Number of slices to send: Send
Hello.

I am trying to get the Advice bean example in chapter 1 of the Head First book running.

I am running Sun's App Server 8.1 2005Q1 on Win2K.

When I try to run the application using appclient I get the following error:

C:\ejb\advice>c:\sun\appserver\bin\appclient -client AdviceAppClient.jar
WARNING: ACC003: Application threw an exception.
java.lang.NoClassDefFoundError: headfirst.AdviceHome
at AdviceClient.class$(AdviceClient.java:16)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:9)

But I looked at my AdviceAppClient.jar and the headfirst\AdviceHome.class file is in there!


C:\ejb\advice>jar -tvf AdviceAppClient.jar
1417 Mon Dec 19 14:49:52 EST 2005 AdviceClient.class
93 Mon Dec 19 14:49:52 EST 2005 META-INF/sun-j2ee-ri.project
1064 Mon Dec 19 14:49:52 EST 2005 app-client-ic.jar
226 Mon Dec 19 14:49:52 EST 2005 headfirst/Advice.class
1176 Mon Dec 19 14:49:52 EST 2005 headfirst/AdviceBean.class
262 Mon Dec 19 14:49:52 EST 2005 headfirst/AdviceHome.class
1186 Mon Dec 19 14:49:52 EST 2005 ejb-jar-ic.jar
200 Mon Dec 19 14:49:52 EST 2005 META-INF/MANIFEST.MF
477 Mon Dec 19 14:49:52 EST 2005 META-INF/application.xml
354 Mon Dec 19 14:49:52 EST 2005 META-INF/sun-application.xml

Does anybody have any advice? Thank yous in advance.
+Pie Number of slices to send: Send
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 652 times.
Similar Threads
Starting Headfirst EJB... Quick compile question
HowTo: Advice Bean deployed on JBoss
Message Driven Bean - Resource
java.lang.No Class Def Found Error
How To Find Stub/Skeleton Classes
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:53:38.