Jsp web hosting - JavaSercer Pages 4.2.2 Unix Platforms For Unix, the
JavaSercer Pages 4.2.2 Unix Platforms For Unix, the corresponding scripts are named startup.sh, shutdown.sh, and tomcat.sh. Start the server with this command: [hans@gefion /usr/local/jakarta-tomcat/bin] ./startup.sh If you want Tomcat to start each time you boot the system, you can add the following commands to your /etc/rc.d/rc.local (or equivalent) startup script: export JAVA_HOME=/usr/local/jdk1.2.2 export TOMCAT_HOME=/usr/local/jakarta-tomcat $TOMCAT_HOME/bin/startup.sh & Two more subdirectories under the Tomcat home directory are then created the first time you start the server: logs Server log files. If something doesn’t work as expected, look at the files in this directory for clues as to what’s wrong. work A directory for temporary files that are created by the JSP container and other files. This directory is where the servlets generated from JSP pages are stored. 4.3 Testing Tomcat To test the server - assuming you’re running Tomcat on the same machine as the browser and that you’re using the default port for Tomcat (8080) - open a browser and enter the following URL in the Location/Address field: http://localhost:8080/ The Tomcat main page is shown in the browser (see Figure 4.2), and you can now run all servlet and JSP examples bundled with Tomcat to make sure everything works. page 38
Hint: If you are looking for very good and affordable webspace to host and run your java hosting application check Virtualwebstudio java web hosting provider