facebook

Missing ejb-jar.xml deployment descriptor [Closed]

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #205075 Reply

    gman22314
    Member

    I just upgraded to Eclipse 2.1.3 and MyEclipse 2.7 GA. I’m running J2EE 1.4 and JAVA 1.4.1-2. Now when I create an EJB Project it does not create the ejb-jar.xml file in the META-INF folder. This shows up in the TASK view as a warning. Can’t find anything more specific on ejb-jar.xml (other than what folder it goes into) in the help files. Do I need to reconfigure something, or can I disregard this since it is only a warning? Thanks.

    #205126 Reply

    Scott Anderson
    Participant

    I believe this is normal. We don’t generate an empty ejb-jar.xml file because it wouldn’t be valid with respect to the DTD. So, we leave you a task as a reminder that you still need to either add one manually or use XDoclet to generate one before your project can be deployed.

    #205549 Reply

    Scott Ryan
    Member

    I recently upgraded to the latest service level of MYEclipse. I am getting several warnings about missing ejb-jar.xml files in my META-INF folder withing my EJB projects even though the file is there. What am I missing?

    Scott

    #205553 Reply

    support-michael
    Keymaster

    1) Are you sure the directory is properly named and all uppercase, i.e., META-INF and not Meta-inf or meta-inf? MS frequently dorks filename capitalization.

    2) Is your META-INF folder under your src folder or else where?

    #205560 Reply

    Scott Ryan
    Member

    @support-michael wrote:

    1) Are you sure the directory is properly named and all uppercase, i.e., META-INF and not Meta-inf or meta-inf? MS frequently dorks filename capitalization.

    2) Is your META-INF folder under your src folder or else where?

    Yes the directory is properly named META-INF and is in one of my source folders. My source folders are not called src but Java Source and Generated Source. Is that the problem?

    Scott

    #205565 Reply

    support-michael
    Keymaster

    Your project has 2 source folders, 1 named “Java Source” and 1 named “Generated Source”. Is that correct? If yes in which source folder (Java Source or Generated Source) does the META-INF folder reside?

    #205592 Reply

    Scott Ryan
    Member

    The META-INF folder in in Java Source. We have to do this to make sure that our developers do not check in generated source. We check out the Java Source from PVCS into the Java Source directory. We then use XDoclet to generate the Home/Remote and descriptors into Java Source. Once the generation is complete and the code has been compiled we move the Generated source to a new folder away from the PVCS tree. This makes sure that Eclipse can see it for compilation but insures that a sleepy developer cannot accidently check the generated source into PVCS. We do run the risk of the Deployment descriptors being checked in but that is minor.

    I hope this helps. The META-INF is in the Java Source folder.

    Scott

    #205593 Reply

    support-michael
    Keymaster

    As an experiment to isolate the problem, can you temporarily copy your META-INF dir to the root of the “Generated ..” src folder? I’m speculating that ME thinks that src folder is the sole location of META-INF info.

    #209731 Reply

    pjupp
    Member

    I have a similar problem with ME 3.8b1 on Eclipse Version: 3.0.0 Build id: 200405290105. I use the wizrd to create an EJB projectbut it seems to leave out the step to generate the ejb-jar.xml file in teh META-INF. Ok, so I add an EJB using the wizard, and still no xml. What am I missingout? I have tried the Run XDoclet menu item with no apparent success.
    Using JDK 1.5.

    #209732 Reply

    pjupp
    Member

    doh! Just reread the comments in the generated EJB code, and worked out how to run the XDoclet wizard thing on my project and hey presto – a bit obtuse but got there in the end! ME is fab!

    #209735 Reply

    Scott Anderson
    Participant

    Glad you got it figured out. XDoclet can be a little tough to get started with. 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Missing ejb-jar.xml deployment descriptor [Closed]

You must be logged in to post in the forum log in