Since OS400 V4R5, iSeries (AS/400) has used Apache 2.0 as their primary web server,
replacing the old IBM webserver.
It's now possible to build mod_jk on iSeries thanks to the help of the IBM
Rochester Labs which has provided information and patches
to adapt mod_jk to OS400.
You should have at least Apache 2.0.39, a C Compiler and IFS.
Apache 2.0.39 is provided with the most recent set of PTFs for the iSeries Apache
server, which can be found at
http://www.ibm.com/servers/eserver/iseries/software/http/
To configure mod_jk on iSeries use the CL source provided with the mod_jk source.
-
Get the latest mod_jk source and untar it on a Windows or Unix boxes
-
Create a directory in IFS, ie /home/apache
-
Send the whole jk source directory to iSeries directory via FTP.
-
Then go to the iSeries command line :
Create mod_jk library ===>CRTLIB MOD_JK TEXT('Apache mod_jk tomcat connector module')
Create service program source file ===>CRTSRCPF MOD_JK/QSRVSRC TEXT('Service program source file')
Create the CL build program source file ===>CRTSRCPF FILE(MOD_JK/QCLSRC) TEXT('Build program source file')
Edit the service program source file ===>STRSEU MOD_JK/QSRVSRC MOD_JK
|
In the edited file, specify that only jk_module should be exported :
Columns . . : 1 71 Edit MOD_JK/QSRVSRC SEU==> MOD_JK *************** Beginning of data ************************************* 0001.00 STRPGMEXP PGMLVL(*CURRENT) 0002.00 EXPORT SYMBOL("jk_module") 0003.00 ENDPGMEXP ****************** End of data **************************************** |
You could start to build all the modules of mod_jk :
Copy the CL build program source from IFS ===>CPYFRMSTMF FROMSTMF('/home/apache/jk/native/apache-2.0/bldjk.qclsrc') +
TOMBR('/QSYS.LIB/MOD_JK.LIB/QCLSRC.FILE/BLDJK.MBR') MBROPT(*REPLACE) Build the CL build program ===>CRTCLPGM PGM(MOD_JK/BLDJK) SRCFILE(MOD_JK/QCLSRC) TEXT('Apache mod_jk build program')
Launch the build ===>CALL MOD_JK/BLDJK
If the build if successfull, copy the new mod_jk module ===>CRTDUPOBJ OBJ(MOD_JK) FROMLIB(MOD_JK) OBJTYPE(*SRVPGM) TOLIB(QHTTPSVR) NEWOBJ(MOD_JK)
|
Next, you should restart your Apache 2.0 server and enjoy this piece of OpenSource on iSeries.