De Arce How to Set Up Apache and JSERV - NYOUGnyoug.org/Presentations/2003/dearc_jserv.pdf03/28/2003...
Transcript of De Arce How to Set Up Apache and JSERV - NYOUGnyoug.org/Presentations/2003/dearc_jserv.pdf03/28/2003...
03/28/20031
How to Set Up Apache and JSERV withOracle
Joseph DeArce & Yuriy FilonenkoNew York Oracle Users GroupMarch 13, 2003
03/28/20032
Introduction
Integrated set up of Apache Web Serverwith Oracle8i (8.1.6)Oracle Web products to be integrated:
1) Oracle XSQL2) Oracle JSP3) Developer Server 6i4) WebDB 2.2
03/28/20033
Introduction (cont’d)
Process builds nearly the sameconfiguration as the Oracle 9iASRequires the downloading of componentsfrom external web sitesExtensive customization of the http.confand jserv.conf
03/28/20034
Set Up Basics
DownloadDirectories to createApache configurationJDK 1.3JSDK 2.0JServ 1.1.2Oracle XSQL 1.0
03/28/20035
Set Up Basics (cont’d)
JavaServer Web Development Kit 1.0.1Oracle JSP 1.0Remote debugging with JDeveloper 3.1 *Oracle JDBC driver 8.1.6Oracle Developer 6iOracle WebDB 2.2
03/28/20038
Apache Configuration
Choose a target directory –E:\web\usr\apacheType of installation – select TYPICALConfiguration file
1) Change DocumentRoot2) Change ServerName3) Create index.html in e:\
03/28/200310
Start Apache
E:\Web\usr\apache\Apache.exe -d“E:\web\usr\apache" –sE:\web\usr\apache\apache.exe -d“E:\web\usr\apache" -k shutdownShortcuts
03/28/200311
JDK 1.3 Installation
Choose a target directory –E:\web\usr\jdk1.3Choose packages to install – all
03/28/200313
JServe 1.1.2 Installation
Choose a target directory –E:\web\usr\apache jserv 1.1.2Choose full installationSpecify software location1) JVM – E:\web\usr\jdk1.3\bin2) JSDK 2.0 – E:\web\usr\jsdk2.03) Apache – E:\web\usr\apacheModify http.conf
03/28/200314
JServe 1.1.2 Installation(cont’d)
Start Apache1) Test Pagehttp://127.0.0.1/servlets/IsItWorking2) Status Page http://127.0.0.1/jserv/
03/28/200315
Oracle XSQL 1.0 Installation
Choose a target directory, unzip it in –E:/web/usr/xsqlModify four files1) JSERV.PROPERTIES –E:\web\usr\apache jserv 1.1.2\conf
03/28/200317
Modify four files2) JSERV.CONF –E:\web\usr\apache jserv 1.1.2\conf
Oracle XSQL 1.0 Installation(cont’d)
03/28/200318
Oracle XSQL 1.0 Installation(cont’d)
Modify four files3) HTTPD.CONF –E:\web\usr\apache\confAlias /xsql/ “E:/web/usr/xsql/”4) XSQLCONFIG.XML –E:\web\usr\xsql\lib
03/28/200321
Oracle XSQL 1.0 Installation(cont’d)
Install XSQL demos 1) Run E:\web\usr\xsql\demo\install.sql 2) Install OID before running the sql pgm. 3) Install .sql will install the XSQL demo
tables and views
03/28/200322
Oracle XSQL 1.0 Installation(cont’d)
Stop/Start Apache to test the XSQLconfigurationGo to URL http://127.0.0.1/xsql/
03/28/200323
Install Scott/tiger DB
Check DBA Studio for user Scott; if notthere, run scott.sqlCheck to see that all the tables have beencreated
03/28/200324
Java Server Web DK 1. 0.1Installation
JSWDK is a zip file – extract onlyjswdk-1.0.1\lib\servlet.jarCreate directory E:\web\usr\jswdk
03/28/200325
Oracle JSP 1.0 Installation
OJSP is a zip file – unzip toE:\web\usr\ojspExplanation of Apache installE:\web\usr\ojsp\docs\install\apach.htm
03/28/200326
Oracle JSP 1.0 Installation(cont’d)
Modify 3 files:1) JSERV.PROPERTIES –E:\web\usr\apache jserv 1.1.2\conf
03/28/200329
Oracle JSP 1.0 Installation(cont’d)
Stop/Start Apache to test configurationhttp://127.0.0.1/ojsp/
03/28/200330
Remote Debugging withJDeveloper 3.1
This product has technical issues whichcould not be resolved.
03/28/200331
Oracle JDBC Driver 8.1.6Installation
Create directory -- E:\web\usr\jdbc\Copy file classes12.zip from Oracle 8.1.6installation (JDBC/LIB)Modify jserv.properties to useclasses12.zip
03/28/200332
Oracle JDBC Driver 8.1.6Installation (cont’d)
JSERV.PROPERTIES –wrapper.path=E:\oracle\ora8\bin
03/28/200334
Oracle Developer 6I Installation(cont’d)
Stop/Start Apache to test configuration
http://127.0.0.1/dev60html/runform.htm
http://127.0.0.1/dev60html/runrep.htm
03/28/200335
Oracle WebDB 2.2 Installation
The DAD must be changed inD:\dev6i\listener\cfg\wdbsvr.appTo configure CGI file of WebDB, copy thefile D:\dev6i\bin\wdbcgi.exe intoD:\dev6i\tools\web60\cig\
03/28/200337
Overview
Web-enabled of data through ApacheIntegration of Oracle 8i with the web3-tier architecture
Forms
SQLJava
XSQL
JServe
Web
Oracle
JSPApache
03/28/200338
Closing
Apache offers ease of integration withOracle and other databases3-tier computingThin Web clientsLow-maintenance
03/28/200339
Contact Information
Joseph DeArce– [email protected]– (347) 204-0887
Yuriy Filonenko– [email protected]– (212) 941-3369