Hi there, I am using weblogic 6.1 server. I had read from specification that ejb-jar.xml , weblogic-ejb-jar.xml and weblogic-cmp-rdbms-jar.xml are required to be in jar file. In my case I had done so but still server gives me the following error: Unable to deploy EJB: cabin.jar from cabin.jar: An error occurred while reading the deployment descriptor. The error was: java.io.FileNotFoundException: META-INF/weblogic-ejb-jar.xml not found in jar file. I want to use CMP services. Please tell where is the problem ?. Also, tell me what I am supposed to write in deployment descriptors in order to establish connection with data source of Ms Access. It would be of great help to me if you kindly write me in brief especially about deployment descriptors. Waiting for your response. thank you,
A jar file is like a zip file. Inside the file there is a directory structure, just like there would be on your hard drive. I bet your XML files exist at the root level of that structure, instead of where they should be, in the META-INF subdirectory. You can look at the structure of the jar file through WinZip, or from a command line with the command: jar tvf cabin.jar
Joined: Feb 25, 2003
Also, when you create the META-INF/ directory, make sure you do it in all caps -- Meta-Inf/ or meta-inf/ or other variants will not be recognized.
<a href="http://www.javaranch.com/bookpromo.jsp" target="_blank" rel="nofollow">WebLogic Book Giveaway</a> 2/25-2/27
Joined: Jun 09, 2002
Hi charles and aaron, Yes, you were right I was missing my xml files in META_INF directory but know I had rectified the problem . Pleasse look at my other post on the same post.