Programming with JSPs
Installing a servlet container :
Installing a servlet container :
Let's see how to install a servlet container. We will look especially at the Tomcat version 4.0, although counts as valid for most other open source containers. The payment will probably have to install a posh interface, based on little buttons, or are very expensive, there will come a man with a tie and leather case for it, so that those we do not care.
Before I ever get off the program in question, one must consider in advance the Java virtual machine that we use to execute it. All are written in Java, so this is essential. Primarily, there are two options: the Sun JVM (who are the original) or IBM, which are somewhat faster but not always updated to the latest version. A servlet container you need the full JDK, not just the runtime environment, mainly by the Java compiler contained in a file called tools.jar. In any case, we can download the Sun JVM versions for Linux , or for any other platform (version 1.4) or version 1.3 of IBM (the most advisable) . Failure to achieve a version of these, it is advisable to get one that is compatible with the version "2" of Java, ie JVMs from version 1.2. They may work with earlier versions, but most likely do not. Just Java is already installed in the system will verify that java and tools.jar are also installed, just try to run it, or ask your system administrator, who is also a creature of the breast and is entitled to direct someone the word, man.
After installing the JVM, we got the server for your site, if possible, in binary version, and compiled. If you have a Linux distro that uses RPM to install packages (like Mandrake, RedHat or SuSE), one may download the RPMs and install them directly. Depending on what you choose, will have to download only one package, or several. In any event, will include the following: Xerces-J, regexp, servletapi, tomcat-webapps and tomcat. If we lower the file. Tar.gz, is all inclusive. To install the RPM does the following:
Code: [yo@mimaquina]$ rpm -Uvh tomcat4-4.0.2-3.noarch.rpm This after having installed all the previous packages. If you have downloaded the tar:
Code: [yo@mimaquina]$ tar xvfz tomcat4-4.0.2.tar.gz Already unpacked, we will be ready to run Tomcat. Depending on how coding, we have the server in a directory or another, but there will always be directories conf, lib, bin and webapps. It is then necessary to say where is the Java virtual machine, tomcat.conf editing a file that is located in the conf directory (which will vary according to the distribution site, may be in / etc/tomcat4/conf or directory_del_tomcat / conf .) In other operating systems, or other type of installation, we must define an environment variable, like this:
Code: [yo@mimaquina]$ export JAVA_HOME=/opt/IBMJava2-13 or
Code: [yo@mimaquina]$ setenv JAVA_HOME /opt/IBMJava2-13
Programming with JSPs
By: mann logona
Acupuncture: An Age Old Cure For Modern Day Problems Preventing Mold Growth In Basements Latent Semantic Indexing: The Basics Finding Out Why Things Never Change Finding Cases can be Challenging Common Ladder FAQs The Shadow Kingdom Capture Burn Notice Episodes From a Reliable Source Best Panama City Marinas England's World Cup Squad Rundll32 Fixer - Here is a Tip ! How Do You Control Behavior Justice is Served with XP205 Semi-Microbalance