Exzilla.net
Contact
Home -> Articles -> How To: Developing Web Application connected to Oracle Database by using ANT and Deploying to Jakarta-Tomcat 4.1.12
 
Features
Forums
Files
Blogs
How To: Developing Web Application connected to Oracle Database by using ANT and Deploying to Jakarta-Tomcat 4.1.12
Nov 14, 2002
Spidix, Cupid
Author's Bio| E-Mail
Copyright (C) 2002 exzilla.net

Purpose:

Show how to develop web application like JSP/Servlet that is connected to Oracle database via JDBC-Thin. Then show how to complier and create WAR file and finally deploy it to Jakarta-Tomcat 4.1.12 Servlet/JSP container.

Attendees:

J2EE Beginner

Prerequisites:

1. Jakarta-Tomcat 4.1.12. Download from Jakarta-Tomcat Apache.
2. ANT 1.5.1 tool for building the WAR file. Download from ANT Jakarta Apache.
3. J2SE SDK. Download from Java Sun.
4. Oracle JDBC driver. Download from OTN.

Assumption:

Oracle database server is available and already startup.

Steps to do:

1. Install and configure software
2. Design working directory structure
3. Create developing environment
4. Develop web application
5. Deploy web application to Jakarta-Tomcat
6. Test web application

Details:

Download the document (pdf 66kb)


Note:

If you get "Can't find Servlet" message when deploying Tomcat 4.1.12, please make sure you have already added "<servlet-mapping>" entry in "web.xml".


Download sample code:

- simple_jsp_01.jsp **
- HowToOracleServlet.java **
- Build.xml
- Web.xml
- simpleWar.war

** IE users need to right-click and 'Save Target As' to download the file.

Reference:

- http://jakarta.apache.org/ant/manual/index.html
- http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html

More Information:

- http://jakarta.apache.org/

Keywords:

Catalina, CATALINA_HOME, oracle, jdbc, tomcat , tomcat 4.1.12, java, jsp, servlet, WAR, ANT, container , classes12.jar, nls_charset12.jar

 

 
 
{exzilla.net -- e-development QuickStart --}



Copyright (c) 2001-2009 - Exzilla.net -  All Rights Reserved.
Contact Us | Privacy Policy | Terms & Conditions