@now i placed this jsp and a folder Userpack containig ConnectionBean.class in Root of Tomcat 6.0
Wrong placement. Web project structure under Tomcat is as follows
PATH_TO_TOMCAT_FOLDER/webapps/YOUR_PROJECT_NAME/
- *.html, *.jsp
- can have folder img (for images) and css (for cascading style sheets)
- WEB-INF
- web.xml
- lib - for all additional JAR files required by your project
- classes
Therefore you place your UserPack folder in place of
beans folder and put that ConnectionBean inside that folder
More documentation can be found on
Tomcat website