TOMCAT5 and PostgreSQL Configuration development JSP

Source: Internet
Author: User
Tags database join postgresql tomcat

As for the installation of knowledge, here is not much to say, to pay attention to the two points is:

1. Install Tomcat (Jakarta-tomcat-5.0.28.exe)

2. Installation of PostgreSQL (Postgresql-8.0-beta1-20040809.msi) (7.0 and 8.0 versions are available)

Directly installed to the C or D disk can be, at the same time to set user name and password such as: admin 123456, in the future access to the database will be used, the other PostgreSQL in the installation directory of the disk system format must be NTFS, otherwise can not fit.

Configuration database driver: (Jdk14 refers to your JDK installation directory)

Put the PostgreSQL data driver in the jdk14/jre/lib/ext/: Locate the PG74.214.JDBC3 file in the installed database (such as: D:\POSTGRESQL\JDBC), and put it into the Jdk14/jre/lib/ext /Medium

I. Establishment of virtual directories (TMP1) and database join pools (JDBC/PG1)

1, the establishment of directory D:\ TMP1 and D:\ Tmp1\web-inf

2, using TOMCAT5 Web management interface to establish a global description of the JDBC connection

Enter the administrator username and password required for the original installation and login to the admin interface. Click on the menu on the left side of the data sources, click on the right to create a new source.

Enter the Jndi name, JDBC driver class name, database URL, and PG8 username and password

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.