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
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