- This topic has 4 replies, 1 voice, and was last updated 17 years, 6 months ago by loester.
-
AuthorPosts
-
loesterMemberI 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>
loesterMemberShould also add that when I try to deploy “myproject” after restarting MyEclipse, only a map “myproject/META-INF” containing the files “application.xml” and “MANIFEST.MF” is copied to my JBoss deploy directory.
loesterMemberSorry, forgot to add that the problem does not occur simply by restarting Eclipse. The steps to reproduce that error:
1. Make a new enterprise application project, using J2EE 5.
2. Close the 3 projects (project, projectWeb, projectEJB) generated and delete them from eclipse.
3. Choose file -> import -> existing project from workspace. Select the map containing the three projects. Import all projects.Now you should see the problem. It’s not a very big problem, but pretty anoying anyway if like me you do your programming at work, then put the project on USB stick and import it at home.
loesterMemberCould you please comment on the two screenshots I’ve taken from the errors? Any recommendations on how to resolve this very annoying issue?
http://i19.tinypic.com/4i3kvig.jpg
http://i16.tinypic.com/491f4ab.jpg
loesterMemberBypassed the bug myself – at work I copied the whole workspace including .metadata (about 10 MB) to my USB stick, and then at home I replaced my default workspace with the workspace on the USB stick. Not optimal, but it works.
-
AuthorPosts