IBM Support

After importing a project, the "HttpServlet cannot be resolved to a type" error appears

Troubleshooting


Problem

Attempts to import a workspace from v.8.5 to v.9.0 using IBM Rational Business Developer (RBD) results in the error "HttpServlet cannot be resolved to a type"

Symptom

The following steps reproduce the problem:

  1. Create a web app in RBD v.8.5 using Tomcat as a runtime (which will have to be installed on the machine prior to this step)

  2. Export the workspace as an archive

  3. Create a new workspace in RBD v9.0 and import the archive

Either one of the two errors will appear:


java.lang.Error: Unresolved compilation problems: javax.servlet.ServletContext cannot be resolved to a type


OR


HttpServlet cannot be resolved to a type

[{"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"SDK Build","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.5.1;8.5.1.1;9.0","Edition":"","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
Rational Business Developer

Software version:
8.5.1, 8.5.1.1, 9.0

Operating system(s):
Linux, Windows

Document number:
498095

Modified date:
02 August 2018

UID

swg21651918

Manage My Notification Subscriptions