Hi Shishir:
About your JBoss problems - I had problems deploying JSPs on JBoss. The
thread is here:
https://coderanch.com/t/88832/JBoss/deploying-jsp If you scroll to the 3rd from the bottom posting, you'll see some of the erros I was getting. It turned out that the import statements weren't working (e.g. import java.sql.*, java.util.* etc.), so wherever I was using those packages, I used the absolute class reference (instead of relative references e.g. java.util.Enumeration vs. Enumeration). I also placed the jsp in a directory named 'directoryname.war' (vs. 'directoryname') at J:\jboss-3.0.7\server\default\deploy\directoryname.war. This worked for me.
As for your tomcat installation -
You should have CATALINA_HOME set to where you've installed tomcat. And you should also include %CATALINA_HOME%/bin in your classpath.
Hope one of those works for you...