I think this is a real bug:
When I create a new Enterprise Application Project using the New Project wizard, the modules “myprojectEJB” and “myprojectWeb” are automatically assigned to my enterprise project called “myproject”.
Now when I close MyEclipse and then restart it, in the “Problems” pane the error “No project modules assigned to enterprise project” shows up. This is the first bug I think.
I then right-clicked on “myproject” -> MyEclipse -> Add and Remove Modules. In the “Module Projects” dialog I then click the “add” button to add “myprojectEJB” and “myprojectWeb” once again to “myproject”. However, only “myprojectWeb” is in the list, “myprojectEJB” isn’t there and so can’t be added…
My application.xml looks like this (and didn’t change after restarting MyEclipse):
<application>
<display-name>myproject</display-name>
<module id=”myeclipse.1176882701347″>
<web>
<web-uri>myprojectWeb.war</web-uri>
<context-root>/myprojectWeb</context-root>
</web>
</module>
<module id=”myeclipse.1176882701958″>
<ejb>myprojectEJB.jar</ejb>
</module>
</application>