Tuesday, March 4, 2014

Advance Tomcat

Q: Core overview of  Tomcat
A:

Q : Configuration of Tomcat Jasper
A: http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html

Q : Is there a way to tell Tomcat 7 the path to the JVM that must be used?
A : A more flexible approach is to create a file named setenv.bat / setenv.sh (pick the right one for your platform) in $CATALINA_BASE/bin and set JAVA_HOME there. That way it only affects Tomcat, not anything else you are running. It also makes it easy to run multiple different Tomcat installations on different JVMs.

Q : Where are compiled java/ jsp file
The compiled JSP files are by default available in the /work folder of the Tomcat environment. There should be a subfolder Catalina which in turn has a subfolder representing the domain name which defaults to localhost. There in turn should be the project folder which in turn contains package hierarchy org.apache.jsp with therein the compiled JSP files.
Tomcat
 |-- backup
 |-- bin
 |-- conf
 |-- lib
 |-- logs
 |-- temp
 |-- webapps
 `-- work
      `-- Catalina
           `-- localhost
                `-- projectname
                     `-- org
                          `-- apache
                               `-- jsp
                                    |-- survey_jsp.class
                                    `-- survey_jsp.java    <--- here
 
 

No comments:

Post a Comment