I have a rather large java server application that I am considerint porting to the EJB and JOnAS.  I am trying to figure out a few things and I simply can't figure them out.  I attempting to get the simple beans working in the "Enterprise Java Beans" book from O'Reilly.  Here is what I did to one of the beans, I figured I could replicate this to the other examples and then to my applications.
 
I created a directory /gedulah/dev and took the directory structure from the sample and installed it in this tree.  I then have:
/gedulah/dev/com/titan/cruise and a bunch of other directories at the cruise level.
 
I created a jonas-ejb-jar.xml file for the bean and put it in the cruise directory.  I didn't touch the sample.
 
I compile the source from the dev directory with the command
java com/titan/cruise/*.java
 
I then create the interposition classes with the command
GenIC -d /gedulah/dev -keepgenerated com/titan/cruise/ejb-jar.xml
 
I create the META-INF directory and copy the xml files with
cp com/titan/cruise/*.xml META-INF
 
I create the jar archive with
jar -cvf cruise.jar META-INF/*.xml com/titan/cruise/*.class
 
I add cruise.jar to the path in config_env and add it to the jonas.properties as
jonas.beans.descriptors /gedulah/dev/cruise.jar
 
When I run the EJBServer I get the error
ClassNotFoundException JOnASCruiseBeanHome_Stub
 
Thanks in Advance

Reply via email to