facebook

importing a myeclipse-generated EAR project

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #271809 Reply

    kfreeman
    Member

    I created an EAR project using myeclipse (5.5.1ga), and added a couple of ejb projects (modules?) to it, and it deployed and worked fine.

    Then I copied my code tree to another machine with myeclipse (also 5.5.1ga), and imported all of my projects. The EAR project shows an error (“No project modules assigned to enterprise project.”), even though nothing was changed, and the application.xml contains all of the ejb projects which are properly imported without error in the same workspace. When I go to the MyEclipse menu for the EAR project and try “Add and Remove Modules…”, there are no modules listed(!), and if I select the add button it offers me only one of the 3 EJBs in the workspace?

    I tried creating a fresh EAR project, everything worked ok with it, until I deleted it from the workspace and tried to re-import it, which failed in the same way described above.

    Is there a workaround for this? I really need to be able to copy that project to different machines in our group.

    #271818 Reply

    Loyal Water
    Member

    When you import your EAR project, you will have to go to *Add and Remove Modules … * and add the modules once again to your EAR project. After importing the 3 EJB modules, can you see them in your Package Explorer ? If you can, then they should show up in the “Add and Remove Modules…” dialog as well.

    #271819 Reply

    kfreeman
    Member

    I beginning to think this is definitely a bug. I just noticed that when I import the project, the (hidden) .mymetadata file is modified in several ways:
    – the id number is changed
    – the j2ee-spec changes from 5.0 to 1.3
    – the list of project modules is empty (instead of listing the 3 modules that were there before it was imported)

    #271833 Reply

    Loyal Water
    Member

    You will have to import the modules separately. They will not get imported with the EAR project. Can you see the modules in your PACKAGE EXPLORER ?

    #271848 Reply

    kfreeman
    Member

    Yes, I imported the modules separately, before I imported the EAR project. They were visible in the package explorer, I built them, I even deployed one of them directly and it worked fine. As I mentioned in my first posting, I tried to use add/remove to re-add the modules, but it would only let me add one of them, and in fact all three still appeared in the application.xml file. The .mymetadata file, however, appears to be trashed during the import. Have you tried it yourself and seen different results?

    #271898 Reply

    Riyad Kalla
    Member

    kfreeman,
    You have uncovered some very edge-case bugs that we had never noticed. We are filing them all now and really appreciate your assitence in finding these.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: importing a myeclipse-generated EAR project

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