aspose file tools*
The moose likes BEA/Weblogic and the fly likes Please help on deployment descriptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Please help on deployment descriptors" Watch "Please help on deployment descriptors" New topic
Author

Please help on deployment descriptors

Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
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,
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2861
    
  11

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
Aaron Mulder
Author
Ranch Hand

Joined: Feb 25, 2003
Posts: 65
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
Gurpreet Saini
Ranch Hand

Joined: Jun 09, 2002
Posts: 295
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Please help on deployment descriptors