-
1. Re: javax.naming.NameNotFoundException: StatelessFinancialNe
schaefera Oct 31, 2001 12:13 AM (in response to javaadict)I think your problem is how you create the JAR file. I believe that all your files you specifies are packed in the root directory of the JAR file. At tlest the XML deployment descriptors must be added into the META-INF subdirectory. To test is just take your myjar.jar file and expand it with "jar -xvf myjar.jar". You will then see the directory structure in you current directory.
Just from here I would guess you have to do the following (assuming that the EJBs are in the package "finCalc.stateless"):
- switch to drive F:
- change directory to "/j2eebook/Chapter19/Stateless"
- create your JAR file with "jar -cvf myjar.jar finCalc META-INF"
This will add all the files in the directory finCalc and META-INF into the JAR file and keep the directory structur in the JAR file.
Have fun