If I try to create a servlet that extends HttpServlet using the “New Class” wizard, the wizard fails to correctly identify a J2EE superclass.
Here’s what happens:
1) Create new class – use wizard
2) Give class its new name
3) Click on the Browse button for the Superclass
4) Type “HttpServ” into the Type field at the top of the dialog
5) Highlight the HttpServlet (class) Type in the list of classes offered
6) Hit OK
At this point the following error message is generated:
“Could not uniquely map the type name to a type. Path is D:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_2.5.0\data\libraryset\1.3\javax.servlet.jar”
If I try extending a regular (ie non J2EE class) class, then the New Class Wizard works fine.
I think that this was also a bug in the previous release of MyEclipse. Except there the bug was reported, but the browse dialog would place the Superclass name into the superclass field, and ultimately generate the new class correctly.
Within the new 2.5.0 GA release, the superclass fails to be selected.
I am using Eclipse 2.1.1 and MyEclipse 2.5.0 GA on Win2K.
Any ideas as to what is going on?