HP 5991-5565 Typographic Conventions, HP Encourages Your Comments, UserInput, Feedback@fc.hp.com

Page 10

Typographic Conventions

This document uses the following typographical conventions.

Command

A command name or qualified command phrase.

ComputerOut

Text displayed by the computer.

Ctrl-x

A key sequence. A sequence such as Ctrl-xindicates that

 

you must hold down the key labeled Ctrl while you press

 

another key or button.

ENVIRONVAR

The name of an environment variable, for example, PATH.

[ERRORNAME]

The name of an error, usually returned in the errno

 

variable.

Key

The name of a keyboard key. Return and Enter both refer

 

to the same key.

Term

The defined use of an important word or phrase.

UserInput

Commands and other text that you type.

VARIABLE

The name of a placeholder in a command, function, or

 

other syntax display that you replace with an actual value.

\(continuation character) A backslash (\) at the end of a line of code (such as a command) indicates that the following line of code is contiguous, and you must not insert a line break. This convention facilitates the typesetting of long lines of code examples on a printed page. If you cut and paste sample code from this publication, ensure that you remove backslash characters at line endings.

...

The preceding element can be repeated an arbitrary number

 

of times.

Separates items in a list of choices.

HP Encourages Your Comments

HP encourages your comments concerning this document. We are committed to providing documentation that meets your needs. Send any errors found, suggestions for improvement, or compliments to:

feedback@fc.hp.com

Include the document title, manufacturing part number, and any comment, error found, or suggestion for improvement you have concerning this document.

10

Image 10
Contents HP Open Source Middleware Stacks Blueprint Copyright 2007 Hewlett-Packard Development Company, L.P Table of Contents Monitor Tomcat with OpenView Tomcat SPI Webalizer Usage Report Oracle Database TestPage List of Tables Page Executive Summary HP ServicesIntroduction Intended AudienceUserInput Typographic ConventionsHP Encourages Your Comments Feedback@fc.hp.comHP Open Source Web Server Middleware Stack Web Server Stack ArchitectureWeb Server Stack Architecture Installing the Linux Distribution Installing and Verifying the Linux DistributionRequired Packages and Installation Recommendations Verifying the Linux Distribution Installation YaST Software Selection and System TasksTomcat Configuring the Basic Apache Http ServerInstalling and Configuring Sun JDK on an HP Proliant System # /etc/init.d/apache2 startFor the alljava.sh file, add the following lines # ln -s /usr/java/jdk1.5.010 /usr/local/jdkFor the alljava.csh file, add the following lines Following messages appear Installing and Configuring Tomcat# java -version # /usr/local/apache-tomcat/bin/startup.shIf necessary, stop Tomcat by entering the following command Advanced Apache Http Server FeaturesUsing the Apache Http Server Benchmarking Tool # /usr/local/apache-tomcat/bin/shutdown.shApachemodules definition should now look like the following You can correct the error by entering the followingApache Http Server Status and Information Restart the Apache Http Server for the changes take effectApache Server Status web page opens, as shown in Figure Apache Server Information web page opens, as shown in Figure# /etc/init.d/apache2 restart Apache Http Server Log# webalizer For detailed information, see the Webalizer website at Using Virtual Host SupportCreate the following file Configure virtual hosting by creating a file named Using Apache Http Server URL RedirectionOn the second server, create the following Html file Add the following line to the preceding file Using Apache Http Server Proxy FeaturesEdit the following configuration file Add the following lines to the preceding fileError Responses and Redirects Create the following Html fileUsing Per-User Web Directories Populate the preceding file with the following linesConfiguring the Apache and Tomcat Connector Integrating the Web Server Stack ComponentsInsert the following line below the DocumentRoot line Restart Apache by entering the following commandIf there are any errors, check the following log files Http//YOURHOSTNAME/jsp-examples# rpm -q php5 apache2-modphp5 Integrating the Apache Web Server and PHPIntegrating the Apache Web Server and Perl Create the following test fileIntegrating the Apache Web Server and Python Connecting Tomcat to a DatabaseWeb page displays the following text Connecting Tomcat and MySQL # tar zxf mysql-connector-java-version.tar.gz# ps -efgrep mysqld # mysqladmin -u root -p create osmsdb# $CATALINAHOME/bin/startup.sh # /etc/init.d/mysql startHttp//YOURHOSTNAME8080/mysqltest.jsp Connecting Tomcat and OracleIf needed, start Tomcat by entering the following command Test page opens as shown in FigureTesting the Oracle Database Connectivity Obtaining and Installing the Oracle Jdbc DriverConfiguring the Oracle Server Creating an Oracle Data SourceHttp//YOURHOSTNAME8080/oracleTest.jsp Oracle Database TestConfiguring a Database Driver in Tomcat Connecting Tomcat to MySQL or Oracle Using HibernateInstalling Hibernate, Tomcat, and JDK # mysql -u root -p PasswordFor a MySQL database server Creating a Simple Application in Tomcat# sqlplus osmsusr/osmspass@osmsdbora For an Oracle database serverAsm.jar asm-attrs.jar antlr-2.7.6rc1.jar File HibernateSessionFactory.class is generated Preceding command creates a class file named This directory, create a Hibernate Pojo file namedVerifying the Simple Application Operation Http//YOURHOSTNAME8080/SimpleDemo/hibernate.jspEnabling Https Support in the Apache Http Server Secure the Web Server StackRestart Apache by entering the following Verify that the certificate is displayed as in Figure Apache Http Server AuthorizationApache default document root is Create the following test Html fileProtecting Apache Http Server Authorization with Symas CDS If the login fails, the following message appearsConfiguring Apache Http Server Services Protecting Tomcat Authorization with Symas CDS Html HeadHtml Head Monitor Tomcat with OpenView Tomcat SPI # $CATALINA/bin/shutdown.sh # $CATALINA/bin/startup.shSoftware Prerequisites and Reference Guides Tomcat SPI ComponentsTools PoliciesComplete these steps Complete these steps Appendix B Frequently Asked Questions # /sbin/SuSEfirewall2 stopAppendix C Vendor Information Reference Following are the contents of the hibernate.jsp file Appendix D Hibernate Test Application Source CodePage Appendix D Hibernate Test Application Source Code