I found the solution to my previously-posted problem and thought
I should document it here.
The context was: Eclipse 3.6.1 with Web Tools Platform and Tomcat V7
Having created a project, installed Tomcat, and created a Tomcat instance,
the instructions were to add the project to the Tomcat instance, by right
clicking the instance in the Eclipse Servers view, and choosing the "Add
and Remove..." command.
This was supposed to bring up a dialog listing available projects to be
added to the Tomcat instance, but it just produced an Alert saying no
resources could be found.
The diagnosis was found in a post about a similar issue at
http://www.eclipse.org/forums/index.php?t=tree&th=167292&#page_top
<http://www.eclipse.org/forums/index.php?t=tree&th=167292&#page_top>
To be added to a Tomcat server the project must contain the "Dynamic Web
Module" facet (see the Project Facets page in the project's Properties
dialog) and the version of the facet (which corresponds to the version
of the Servlet spec) must be compatible with the server. For example, a
project with a "Dynamic Web Module" facet with a version of "2.5" could
not be added to a Tomcat 5.5.x server because Tomcat 5.5.x doesn't
support version 2.5 of the Servlet spec. Tomcat 5.5.x only supports up
to 2.4. You could only add that project to a Tomcat 6.0.x server, which
does support Servlet 2.5 webapps. It's not clear whether your project
is missing the facet or has an incompatible version.
In my case there were no issues with versions, I just needed to right click
the project, choose Properties, choose the Project Facets page, and check
the Dynamic Web Module checkbox. It automatically checked the other
modules prerequisite to that. Click OK.
Then the "Add and Remove,..." command worked fine.
/jim
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]