Post on 28-Sep-2018
HP Secure Webserver(Apache)
for OpenVMSwith Tomcat
Powell HazzardPowellhazzardhpcomOpenVMS Engineering
HP World 2003 Solutions and Technology Conference amp Expo page 211182003
Agenda
Overview amp history of ApacheHP Secure Web ServerFutures InstallationConfiguring the ServerOptional ModulesSecurityTomcat
HP World 2003 Solutions and Technology Conference amp Expo page 311182003
The Apache web server
HTTP server based on National Center for Supercomputing Applications developed web server httpdUS Government funded NCSA httpd so the software is in the public domainUser community worked together to share modificationsndash The result was ldquoa patchy serverrdquo hence the name Apache
HP World 2003 Solutions and Technology Conference amp Expo page 411182003
The Apache web server
Those making the modifications became known as The Apache Groupndash Now known as the Apache Software Foundationndash httpwwwapacheorgndash Supported by companies such as HP IBM and Sun The Apache Software Foundation sponsors numerous other projectsndash SOAP Xerces (XML) Jakarta TOMCAT (JSP) hellipMany enhancements for the server are availablendash Perl JServ JSSI hellip
HP World 2003 Solutions and Technology Conference amp Expo page 511182003
Apache HTTP Server
HTTP11 (RFC2616) compliant web serverHighly configurable and extensibleCustomized using the Apache module APIComplete source code non-restrictive licenseRuns on OpenVMS Windows UNIX and other OS platformsActive global development communityMost popular web server on the Internet (6316 vs2685 for IIS ndash June 2003)ndash httpnewsnetcraftcomarchivesweb_server_surveyhtml
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 211182003
Agenda
Overview amp history of ApacheHP Secure Web ServerFutures InstallationConfiguring the ServerOptional ModulesSecurityTomcat
HP World 2003 Solutions and Technology Conference amp Expo page 311182003
The Apache web server
HTTP server based on National Center for Supercomputing Applications developed web server httpdUS Government funded NCSA httpd so the software is in the public domainUser community worked together to share modificationsndash The result was ldquoa patchy serverrdquo hence the name Apache
HP World 2003 Solutions and Technology Conference amp Expo page 411182003
The Apache web server
Those making the modifications became known as The Apache Groupndash Now known as the Apache Software Foundationndash httpwwwapacheorgndash Supported by companies such as HP IBM and Sun The Apache Software Foundation sponsors numerous other projectsndash SOAP Xerces (XML) Jakarta TOMCAT (JSP) hellipMany enhancements for the server are availablendash Perl JServ JSSI hellip
HP World 2003 Solutions and Technology Conference amp Expo page 511182003
Apache HTTP Server
HTTP11 (RFC2616) compliant web serverHighly configurable and extensibleCustomized using the Apache module APIComplete source code non-restrictive licenseRuns on OpenVMS Windows UNIX and other OS platformsActive global development communityMost popular web server on the Internet (6316 vs2685 for IIS ndash June 2003)ndash httpnewsnetcraftcomarchivesweb_server_surveyhtml
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 311182003
The Apache web server
HTTP server based on National Center for Supercomputing Applications developed web server httpdUS Government funded NCSA httpd so the software is in the public domainUser community worked together to share modificationsndash The result was ldquoa patchy serverrdquo hence the name Apache
HP World 2003 Solutions and Technology Conference amp Expo page 411182003
The Apache web server
Those making the modifications became known as The Apache Groupndash Now known as the Apache Software Foundationndash httpwwwapacheorgndash Supported by companies such as HP IBM and Sun The Apache Software Foundation sponsors numerous other projectsndash SOAP Xerces (XML) Jakarta TOMCAT (JSP) hellipMany enhancements for the server are availablendash Perl JServ JSSI hellip
HP World 2003 Solutions and Technology Conference amp Expo page 511182003
Apache HTTP Server
HTTP11 (RFC2616) compliant web serverHighly configurable and extensibleCustomized using the Apache module APIComplete source code non-restrictive licenseRuns on OpenVMS Windows UNIX and other OS platformsActive global development communityMost popular web server on the Internet (6316 vs2685 for IIS ndash June 2003)ndash httpnewsnetcraftcomarchivesweb_server_surveyhtml
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 411182003
The Apache web server
Those making the modifications became known as The Apache Groupndash Now known as the Apache Software Foundationndash httpwwwapacheorgndash Supported by companies such as HP IBM and Sun The Apache Software Foundation sponsors numerous other projectsndash SOAP Xerces (XML) Jakarta TOMCAT (JSP) hellipMany enhancements for the server are availablendash Perl JServ JSSI hellip
HP World 2003 Solutions and Technology Conference amp Expo page 511182003
Apache HTTP Server
HTTP11 (RFC2616) compliant web serverHighly configurable and extensibleCustomized using the Apache module APIComplete source code non-restrictive licenseRuns on OpenVMS Windows UNIX and other OS platformsActive global development communityMost popular web server on the Internet (6316 vs2685 for IIS ndash June 2003)ndash httpnewsnetcraftcomarchivesweb_server_surveyhtml
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 511182003
Apache HTTP Server
HTTP11 (RFC2616) compliant web serverHighly configurable and extensibleCustomized using the Apache module APIComplete source code non-restrictive licenseRuns on OpenVMS Windows UNIX and other OS platformsActive global development communityMost popular web server on the Internet (6316 vs2685 for IIS ndash June 2003)ndash httpnewsnetcraftcomarchivesweb_server_surveyhtml
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 611182003
HP Secure Web Server forOpenVMS (SWS)
Based on recent Apache HTTP baselevelsTailored for OpenVMS cluster and security architectureIncludes SSL (certificate-based authentication and encryption services for sockets)VeriSign supported platformhttpwwwverisigncomsupportinstall
Multiple scripting capabilities (CGI Java Perl PHP)
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 711182003
SWS (continued)
DEFCON9 (ldquoCool and Unhackablerdquo)httpwwwdefconorg
Netcraft recognizes OpenVMS platformhttpwwwnetcraftcom
OpenVMS external web site is running SWShttph71000www7hpcom
SWS source code is available on the webUser contributions (htDig SWISH-E Pythonhellip)
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 811182003
SWS (continued)
Supported modules (as of SWS 13)ndash Standard Apache modules
bull mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_define mod_dir mod_env mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_proxy mod_rewrite mod_setenvif mod_so mod_ssl (DSO) mod_status mod_unique_id mod_user_dir
ndash OpenVMS-unique modulesbull mod_auth_openvms (DSO) mod_osuscript
ndash Optional modulesbull mod_jk mod_jserv mod_perl mod_php mod_DAVbull Above modules are DSO
ndash User written modules (not supported by HP though)bull mod_put mod_python etc
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 911182003
SWS Shipping today
SWS V13 shipped October 2002 (based on Apache 1326)ndash suEXEC for running CGI scripts under a different usernamendash WebDAV
bull Distributed Authoring amp Versioning aka ldquopoor manrsquos Pathworksrdquo
ndash OpenSSL 096bndash Enhancements to MOD_AUTH_OPENVMS
bull Require group using rights identifierndash New server configuration features
bull startup shutdown amp tag
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1011182003
SWS Futures
SWS 20ndash Based on Apache 2046ndash Field test kit shipping today (based on 2044)ndash Scheduled for Q3 2003ndash Implements the pre-fork not the multi-threaded model
bull Similar to SWS V13ndash Includes IPv6 support (runs on either stack)ndash Requirements
bull ODS-5bull VMS 73-1 or laterbull TCPIP 53 (runs on Multinet and TCPWare)bull Stream-LF record formats only
ndash No PerlPHPTomcat (still experimental)
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1111182003
SWS Futures
SWS 14ndash Based on Apache 1328 (or 29)ndash Scheduled for Q3 2003Initial release on OpenVMS I64ndash SWS (based upon Apache 13)ndash SWS_JAVAndash SWS_PHPndash SWS_PERLndash Perlndash Scheduled for Q4 2003
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1211182003
SWS Installation
Download kitDecompress
$ RUN CPQ-AXPVMS-CSWS-V0103--1PCSI-DCX-AXPEXE
Install kit onto ODS-5 disk$ PROD INST CSWS DEST=device[directory-name]
Configure Apache$ SYS$STARTUPAPACHE$CONFIG
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1311182003
SWS Installation (cont)
APACHE$CONFIGCOMndash Creates APACHE$WWW accountndash Creates systemwide logical namesndash Optionally adds support for MOD_SSL amp MOD_suEXECndash Sets correct ownership on SWS filesAPACHE$STARTUPCOMAPACHE$SHUTDOWNCOM
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1411182003
SWS Installation (cont)
Test installation by telnettelnet host 80HEAD HTTP10Press ENTER twice
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1511182003
SWS Installation (cont)
HTTP11 200 OKDate Wed 21 May 2003 094406 GMTServer Apache1326 (OpenVMS) mod_jk10 OpenSSL096bContent-Location indexhtml_enVary negotiateaccept-languageTCN choiceLast-Modified Tue 20 May 2003 10592ETag 1c0574-a71-3eca0a8a3eca43d7Accept-Ranges bytesContent-Length 2673Connection closeContent-Type texthtmlContent-Language enExpires Wed 21 May 2003 094406 GMT
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1611182003
SWS Installation (cont)
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1711182003
Configuring the Server
apache$root[conf]httpdconf (text file)ndash Define server and virtual host configurationndash Define loadable module configuration ndash Define document types and handlersndash Define document directories and access controlndash Define access and error log files and formatsChanges to httpdconf require a restartSee httpltservernamegtmanual for on-line documentation or see comments in httpdconf
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1811182003
mod_auth_openvms
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 1911182003
SWS Optional Products Shipping Today
Optional productsndash SWS_JAVA 10 (mod_jk mod_jserv)
bull Tomcat 321(Java Server Page technology JSP 11 amp Servlets 22)
bull JservJSSI 111(original Java servlet technology Servlets 20)ndash SWS_JAVA 20 shipped October 2002
bull (Tomcat 404 JSP 12 Servlet 23 Ant )ndash SWS_PERL V11 (mod_perl 125)
bull Embeds Perl interpreter in server processbull Caches Perl scripts in memory for faster execution
ndash PERL 561bull Interpreter for use with CGI or mod_perlbull PERL == $PERL_ROOT[000000]PERLEXE for standalone
use
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2011182003
SWS Optional Products Shipping Today (continued)
SWS_PHP V10 (mod_php 404pl1)ndash PHP scripting language embedded within HTMLSWS_PHP V11 (mod_php 411) shipped October 2002
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2111182003
SWS Optional Products Futures
SWS_JAVA V21 ndash Based on Tomcat 4124ndash Supports JSP 12 Servlet 23 Antndash in Beta todayndash Scheduled for Q3 2003ndash Will work with SWS 13 or 20SWS_PHP V12ndash Based on PHP 432ndash Schedule for Q3 2003ndash Will work with SWS 13 or 20
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2211182003
Security
On OpenVMS servers and CGI scripts run under the APACHE$WWW user profile (unprivileged)ndash Server never runs as ldquorootrdquo like on UNIX (although the
server eventually forks as ldquonobodyrdquo certain functions execute as ldquorootrdquo see TransferLog)
Operations that require privileges are implemented as user-written system servicesndash Bind to ldquoprivilegedrdquo socket (80) auth_openvms ndash These services can be disabledSSL provides strong authentication and encryption capabilitiesSWS directories are owned by APACHE$WWW with no world-readwrite access
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2311182003
Security (continued)
Running a web server opens a window to your network -thatrsquos a web serverrsquos purpose in lifeDamage from web server security violations can simply be embarrassing or lead to large financial losses or potentially involve legal liabilitySecurity violations result from buggy software (more complex software more bugs) andor configuration mismanagementServer extensions (CGI Perl Java etc) add complexity and potential security holes
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2411182003
Tomcat
Jakarta is the overall project for many subprojects For example Tomcat is the servlet+JSP engine which is a subproject of the Jakarta project Many people confuse Jakarta and Tomcat together even though the reality is that Jakarta is essentially just this website and Tomcat is a product on this website Tomcat is the official reference implementation for the Java servlet and JavaServer pages technologies The Java Servlet and JavaServer pages specifications are developed by Sun under the Java community process Tomcat is developed in an open and participatory environment and released under the Apache software license
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2511182003
What is a Java Servlet Page (JSP)
JavaServer Pages technology uses XML-like tags and scriptlets written in the Java programming language to encapsulate the logic that generates the content for the pageSeparation of form and functionndash Function (Servlets Java Beans EBJ)
bull Java programmer can code develop a library of dynamic functions and features
ndash Formbull Web designer concentrated on the design layout of the static
HTML page and add dynamic features with the library
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2611182003
Simple JSP Example
ltDOCTYPE HTML PUBLIC -W3CDTD HTML 40 FinalENgtltHTMLgtltHEADgtltTITLEgtA simple date exampleltTITLEgtltHEADgtltBODY COLOR=ffffffgtThe time on the server is lt= new javautilDate() gtltBODYgtltHTMLgt
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2711182003
Simple Date ndash Browser Output
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2811182003
What are Java Beans and EJBs
Java Beanndash Simple terms Java Beans are runtime librariesEnterprise java beanndash In Sunrsquos terms EJB the widely-adopted server-side
component architecture for JavaTM 2 platform enterprise edition (J2EETM) enables rapid development of mission-critical application that are versatile reusable and portable across middleware while protecting IT investment and preventing vendor lock-in
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 2911182003
Why use JSPs Beans and EJBs
JSPs Beans and EJBs support the separation of form and functionDo you really want your Java programmers to design the company logondash They should be working on the companyrsquos EBJsDo you really want your web artists doing your Java programmingndash They should be working on the design layout of the web
site and use EBJs to display informationUsing JSP both parties can truly work independently of each other using JavaBeans
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3011182003
What are Servlets
Servlets are programs written in Java to extend the functionality of HTTP servers Replacement for CGI scripts and programsndash Servlets are faster and scale with multiprocessorsndash User Session Tracking built in ndash Cross platform (hardware and web server)Applet is to client as Servlet is to serverSupported by all major web serversIts Java
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3111182003
Hellojava - Servlet example
import javaioimport javaxservletimport javaxservlethttp
public class Hello extends HttpServlet
public void doGet (HttpServletRequest requestHttpServletResponse response)
throws ServletException IOException
PrintWriter outString title = Example Java Servlet
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3211182003
Hellojava (cont)
set content type and other response header fields firstresponsesetContentType(texthtml)
then write the data of the responseout = responsegetWriter()
outprintln(ltHTMLgtltHEADgtltTITLEgt)outprintln(title)outprintln (ltTITLEgtltHEADgtltBODYbgcolor=FFFFFFgt)outprintln(ltH1gt + title + ltH1gt)outprintln (ltH2gt Congratulations HelloWorld Servlet is workingltbrgt)outprintln(ltBODYgtltHTMLgt)outclose()
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3311182003
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3411182003
Web Server Adapters Mod_jk and Mod_jserv
Web server adapter to sit in Apache and redirect requests to Tomcat ndash jsp or servlet requests are redirected to Tomcat ndash html (non-Java requests) are served by ApacheTwo adapters are availablendash Mod_jservndash Mod_jk
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3511182003
Mod_jk
New adapter Supports ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk library makes it easier to support Apache 13X ndash AJP V13 is faster than AJP V12
httpjakartaapacheorgtomcattomcat-33-docmod_jk-howtohtml
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3611182003
Mod_jk2
The newest JK2 is a refactoring of JK The native part has been completely restructured and the configuration has been simplified a lot ndash AJP v12 and V13 protocolndash Supports other web servers ndash Jk2 library makes it easier to support both Apache 13X
and Apache 2xxndash AJP V13 is faster than AJP V12ndash Load Balance supportndash Workers2properties
httpjakartaapacheorgtomcattomcat-41-docjk2indexhtml
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3711182003
Worker2properties[lblb]
info=Default load balancer
Example socket channel override port and host
[channelsocketlocalhost8009]
port=8009
host=127001
group=lb
define the worker
[ajp13localhost8009]
channel=channelsocketlocalhost8009
Uri mapping
[uriexamples]
group=lb
worker=ajp13localhost8009
[status]
info=Status worker displays runtime informations
[urijkstatus]
info=Display status information and checks the config file for changes
group=status
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3811182003
Mod_webapp
Newest adapter Supports ndash Tomcat 40ndash Supports other web servers ndash Support Apache 20 ndash Better blend with Apache and Tomcat
(invisibly integrate )ndash httpjakartaapacheorgtomcattomcat-41-docconfigwebapphtml
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 3911182003
Books and SpecificationsHTML The Definitive Guide Chuck Musciano and Bill Kennedy 1998 OReilly Apache Server Bible Mohammed J Kabir 1998 IDG BooksApache Server Unleashed Rich Bowen and Ken Coar 2000 SAMS Apache The Definitive Guide Ben Laurie and Peter Laurie 1999 OReilly Writing Apache Modules with Perl and C The Apache API and mod_perl Lincoln Stein and Doug MacEachern1999 OReilly Professional Apache Peter Wainwright 1999 Wrox Press Ltd
SSL and TLS Designing and Building Secure Systems Eric Rescorla 2000 Addison-WesleyOpenVMS with Apache OSU and WASD The Nonstop Webserver Alan Winston Digital PressHTTP 11 protocol specification httpwwwietforgrfcrfc2616txtTLS 10 (SSL 30) protocol specification httpwwwietforgrfcrfc2246txtHTML 4 01 specification httpwww w3 orgTRhtml4
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 4011182003
More Information
CSWS web sitehttph71000www7hpcomopenvmsproductsipsapachecswshtmlOpenVMS eBusiness technologieshttph71000www7hpcomebusinesstechnologyhtmlApache Software Foundation httpwwwapacheorgPHP Hypertext Processor httpwwwphpnetMySQL httpwwwmysqlcomphpMyAdmin to manage MySQL httpwwwphpmyadminnetDownload MySQL amp Python for OpenVMShttpwwwpi-netdyndnsorganonymousjfp
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
HP World 2003 Solutions and Technology Conference amp Expo page 4111182003
Interex Encompass and HP bring you a powerful new HP World
Interex Encompass and HP bring you a powerful new HP World