Friday, July 18, 2008

Cannot open the web.xml in Deployment Descriptor editor

Problem(Abstract)
When using IBM® Rational® Application Developer v7 to develop web projects, sometimes the Web Deployment Descriptor file (that is, the web.xml) cannot be opened in the Deployment Descriptor editor.

Symptom
The following Redirecting Editor error occurs when you try to open the web.xml file by double-clicking on it:
IWAE0028E The selected input is not valid for this type of editor. Redirecting to the XML editor.


This issue will also cause your web application to be unable to deploy onto the integrated WebSphere® Application Server.

Cause
The deploy path for the project in question is not set up to point to the default WebContent folder.

Resolving the problem
To fix this, switch to the Resource perspective, and open the web project's .settings/org.eclipse.wst.commmon.component file and change:

to:




This is what the project setting file should look like by default (that is, when creating a new Dynamic Web Project).

http://www-1.ibm.com/support/docview.wss?rs=2042&context=SSRTLW&context=SSJM4G&context=SSSTY3&context=SSCGQ7C&q1=IWAE0028E&uid=swg21272575&loc=en_US&cs=u%20tf-8&lang=en