Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help on deployment descriptors

 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gurpreet Saini
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic