File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Please help on deployment descriptors Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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
Bartender

Joined: Oct 01, 2001
Posts: 2535
    
  10

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Please help on deployment descriptors
 
Similar Threads
Please help on deployment descriptors
Using weblogic.ejbc
tools for generation deployment descriptors
CMP Bean
Data Source and JNDI problem