- This topic has 5 replies, 3 voices, and was last updated 17 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
kfreemanMemberI 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.
Loyal WaterMemberWhen 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.
kfreemanMemberI 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)
Loyal WaterMemberYou 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 ?
kfreemanMemberYes, 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?
Riyad KallaMemberkfreeman,
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. -
AuthorPosts