Create JSP website under Win2000server environment

Source: Internet
Author: User
Tags include domain name tomcat
Js|server first step. Install Apache Web server (www.apache.org)
1. Installation path: C:apache (readers are free to choose)
2. Configuration file: c:apacheconf directory httpd.conf file,
List of items to be configured:
ServerName Server name (domain name, IP, local 127.0.0.1)
DocumentRoot Web resource (Web page) directory address
Directory is the same as DocumentRoot address
DirectoryIndex index.html index.htm
3. After configuration, restart Apache server.
You can view the results at this time.

Step two. Install the Servlet runtime environment
1. Install JSDK2.0 (www.javasoft.com/products/servlet/) and Apachejserv-1.1.2-2.exe (http://java.apache.org), assuming all are installed in C:.
2. Edit the httpd.conf file in the c:apacheconf directory and Nova Ga one line at the end of the file:
Include "C:/apachejserv-1.1.2/conf/jserv.conf"
Save the file.
3. Launch Apache service, execute http://IP/servlets/IsItworking
If the page "Yes,it is working" appears, the configuration succeeds.
Apache+ Apachejserv is a golden combination of Java server Programming!

Step three. Setup and setup for Tomcat
1. Suppose the installation path C:omcat.
2. Edit Tomcatinstartup.bat:
Add to:
Set Tomcat_home=c:omcat
Set java_home=c:jdk1.3
3. Control Face---system---advanced---environment variables.
User variable {classpath
c:jdk1.3in Ools.jar;c:jdk1.3libdt.jar
Path
c:jdk1.3in;c:jdk1.3}
The system variable {} is the same as the user variable setting, the path variable exists, and the c:jdk1.3in;c:jdk1.3 is added after its arguments.
4. Execute http://127.0.0.1:8080/The Tomcat Welcome page is successful!
5. Your own site settings in Tomcat:
To configure the Tomcat/conf/server.xml file and add it to the file:
<context path= "/WSL" docbase= "WSL" crosscontext= "true" debug= "0" reloadable= "true" >
</Context>
where path= "/WSL" indicates that a new site WSL will be established, docbase= "WSL indicates that the site path is in C:OMCATWSL
You can now execute the JSP page in HTTP://127.0.0.1:8080/WSL.

One last step. Configure Tomcat under Apache
1. Edit the apache/conf/http.conf file and add it at the end:
Include "C:/tomcat/conf/tomcat-apache.conf"
2. Edit the C:/apache jserv 1.1.2/conf/jserv.conf file that will precede all lines of code in APJ with # and save.
3. Complete configuration. Execute http://IP/+ path can be both!
Note: JavaBean should be placed on the Tomcat default path tomcat/web-inf/classes

End







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.