Lets assume I want to set up an url that looks like this http://127.0.0.1/dev/plsql/hw,
where hw is the name of a stored procedure (ah familiar territory for those coming
from the oracle database world)
|
Leave httpd.conf alone there is no need to add any configuration data here. Just
needed to mention it the documentation is very extensive. (and you have the documentation
installed for both apache and jserv locally)
|
We need to modify jserv.conf (sometimes called mod_jserv.conf depending on your platform)
to mount the zones we require (the jserv.conf file contains directives to the httpd
processes (ie apache) on how to handle the requests. So when we configure jserv.conf
we are in fact configuring apache on how to process certain requests.
|
This is an extension of mapping virtual paths to actual physical directories, or
executing cgi scripts or processing files of a certain extension in a particular
way (.xml for example). For jserv apache passes the request to the servlet engine.
|
|
5.3 Configure Servlet Engine |
Edit the file c:\program files\apache group\Apache JServ 1.1\conf\jserv.properties
5.3.4 Zone configuration files |
|
5.5 Prism - finally we get there |
Copy c:\program files\apache group\prism\conf\prism.properties to
c:\program files\apache group\Apache JServ 1.1\servlets\devprism.properties, remember
in dev.properties we pointed to this file.
|
|
Its is assumed that the pl/sql toolkit is installed, if you dont have a copy go
look its all over the web, once is at Search for XML Toolkit
We need one additional package, execute
c:\program files\apache group\prism\plsql\myows.sql
If you are using synonyms create a synonym.
|
|
5.7 When things do not work |
At the time of writing 1.7.3 was the latest, unzip the file to
c:\program files\apache group\cocoon-1.7.3
|
Edit c:\program files\apache group\prism\plsql\demo_bdy.sql
At the end of the file replace package initialization part with (this should have
changed at prism version 1.0.1)
BEGIN
url_server := 'http://127.0.0.1';
END demo;
also replace /servlets/ with /dev/ - this needs to be done throughout the file.
Remember we never set up servlets as a zone dev was used as our mount point. I do
this because I frankly feel there is something confused about calling a servlet
zone servlets.
|
Log into sql (same user used to add HW procedure)
run the following scripts found in the c:\program files\apache group\prism\plsql directory
xtp.sql
or xtp_public.sql for OAS/IAS/Web DB Toolkits
demo.sql
 | You will also need to have the demo tables added s_inventory etc. These normally
come with oracle (oci directory in a file summit2.sql) if not goto
http://www.telecomrg.com/darylcollins/
get the file and run it |
|
|
|