Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

missing type javax.servlet.http.HttpServletRequest

Hi

I tried to add an existing local Web Dynpro project into the NWDI. The Web Dynpro is based on WebAS 6.40 SP19 and so I added the

“JDI Build Tool 6.40”,

“SAP J2EE Engine 6.40” and

“SAP JAVA TECH SERVICES 6.40”

as the required software components for “BuildTime” in the SLD, created a track in the Landscape Configurator, made a check-in and imported these components in the Transport Studio (Scenario 2+).

But when I tried to do a rebuild of the project (after I copied the source) I got the following error:

“The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the classpath then try rebuilding this project.”

“This compilation unit indirectly references the missing type javax.servlet.http.HttpServletRequest (typically some required class file is referencing a type outside the classpath)”

Which SC do I have to add in the SLD as a required SC so that this Web Dynpro finds the javax.servlet.* ???

Some additional information:

My Developer Studio Version is 2.0.19

local WebAS 6.40 SP 19

Thanks

Rene

Former Member
Former Member replied

Instead of adding servlet.jar to your DC, you should define the 'servlet' DC of SAP-JEE as a Used DC.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question