Hi,
I think I found a possible bug in “Add and Remove Modules” function for Enterprise Application Project.
Rebuilding Enterprise Application Project or restarting Eclipse solves the problem, but it can be pretty confusing when it happens.
Steps for reproducing the problem:
1. Create an Enterprise Application Project with an existing Web Project (I used “HelloWorld” Web Project in “Working With Web Projects – Quickstart” tutorial.)
2. Open “Enterprice Application Modules” dialog box from [MyEclipse]-[Add and Remove Modules…].
3. (!Important!) Click “Add” button in “Enterprice Application Modules” then press “Cancel” in the “New Application Module” dialog.
4. Remove the Web Project (if warning dialog appears just click “Yes” button) and click “OK” to close the “Enterprise Application Modules” dialog.
5. Try re-adding the removed Web Project from [MyEclipse]-[Add and Remove Modules…].
6. (Problem) The Web Project (in my case, “HelloWorld”) does not show up in “New Application Module” dialog box.
While it looks very similar to the bug reported in the following post, this one seems to be a different kind of problem.
– workaround -> add remove modules… does not work
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-12410-highlight-add+remove+modules.html
Here’s my configuration summary. I found no error log produced.
——
*** Date: Fri May 26 14:25:42 JST 2006
*** System properties:
OS=Windows2000
OS version=5.0
Java version=1.4.2_02
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 4.1.1 GA
Build id: 20060309-4.1.1-GA
*** Eclipse details:
Eclipse Platform
Version: 3.1.1
Build id: M20050929-0840
Eclipse Platform
Version: 3.1.1
Build id: M20050929-0840
Eclipse RCP
Version: 3.1.1
Build id: M20050929-0840
Eclipse Java Development Tools
Version: 3.1.1
Build id: M20050929-0840
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
G:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
728_54
-vm
G:\j2sdk1.4.2_02\bin\javaw.exe
——
Regards,
Hideo Fukumori