Quote

"Between stimulus and response there is a space. In that space is our power to choose our response.
In our response lies our growth and freedom"


“The only way to discover the limits of the possible is to go beyond them into the impossible.”


Wednesday 5 November 2014

Fixing missing HttpServlet class in Web Project

The javax.servlet.http.HttpServlet class being part of javax package so may not directly be available in the CLASSPATH. So adding jsp pages invoking the javax classes will result in an error such as: "The superclass was not found on the java build path".

To fix this the javax packages can be included from the application server being used. If you are using eclipse then you can perform the following steps to get over this error:

1) Right click the project root folder

2) Click on properties to open the properties dialogue

3) Click on Java Build Path

4) Select the Libraries tab

5) Click on Add Libraries button to open the 'Add Libraries' dialogue

6) Select 'Server Runtime' and click next

7) Select the application server and click finish

No comments:

Post a Comment