From: <id...@us...> - 2006-05-15 14:33:39
|
Revision: 10 Author: idueppe Date: 2006-05-15 07:33:18 -0700 (Mon, 15 May 2006) ViewCVS: http://svn.sourceforge.net/openuss/?rev=10&view=rev Log Message: ----------- setup openuss 3.0 trunk Added Paths: ----------- trunk/openuss/servers/tomcat/webapps/ROOT/ trunk/openuss/servers/tomcat/webapps/ROOT/RELEASE-NOTES.txt trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/ trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/lib/ trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/lib/catalina-root.jar trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/web.xml trunk/openuss/servers/tomcat/webapps/ROOT/admin/ trunk/openuss/servers/tomcat/webapps/ROOT/admin/index.html trunk/openuss/servers/tomcat/webapps/ROOT/asf-logo-wide.gif trunk/openuss/servers/tomcat/webapps/ROOT/favicon.ico trunk/openuss/servers/tomcat/webapps/ROOT/index.jsp trunk/openuss/servers/tomcat/webapps/ROOT/tomcat-power.gif trunk/openuss/servers/tomcat/webapps/ROOT/tomcat.gif trunk/openuss/servers/tomcat/webapps/balancer/ trunk/openuss/servers/tomcat/webapps/balancer/META-INF/ trunk/openuss/servers/tomcat/webapps/balancer/META-INF/context.xml trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/ trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/config/ trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/config/rules.xml trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/lib/ trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/lib/catalina-balancer.jar trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/web.xml trunk/openuss/servers/tomcat/webapps/balancer/images/ Added: trunk/openuss/servers/tomcat/webapps/ROOT/RELEASE-NOTES.txt =================================================================== --- trunk/openuss/servers/tomcat/webapps/ROOT/RELEASE-NOTES.txt (rev 0) +++ trunk/openuss/servers/tomcat/webapps/ROOT/RELEASE-NOTES.txt 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,174 @@ + + + Apache Tomcat Version 5.5.17 + Release Notes + + +$Id: RELEASE-NOTES 351503 2005-12-01 22:12:48Z keith $ + + +============================= +KNOWN ISSUES IN THIS RELEASE: +============================= + +* Dependency Changes +* JNI Based Applications +* Bundled APIs +* Web application reloading and static fields in shared libraries +* Tomcat on Linux +* Enabling SSI and CGI Support +* Security manager URLs +* Symlinking static resources +* Enabling invoker servlet +* Viewing the Tomcat Change Log +* When all else fails + + +=================== +Dependency Changes: +=================== +Tomcat 5.5 is designed to run on J2SE 5.0 and later, and requires +configuration to run on J2SE 1.4. Make sure to read the "RUNNING.txt" +file in the fulldocs downloadable file(s) if you are using J2SE 1.4. + +In addition, Tomcat 5.5 uses the Eclipse JDT Java compiler for compiling +JSP pages. This means you no longer need to have the complete +Java Development Kit (JDK) to run Tomcat, but a Java Runtime Environment +(JRE) is sufficient. The Eclipse JDT Java compiler is bundled with the +binary Tomcat distributions. Tomcat can also be configured to use the +compiler from the JDK to compile JSPs, or any other Java compiler supported +by Apache Ant. + + +======================= +JNI Based Applications: +======================= +Applications that require native libraries must ensure that the libraries have +been loaded prior to use. Typically, this is done with a call like: + + static { + System.loadLibrary("path-to-library-file"); + } + +in some class. However, the application must also ensure that the library is +not loaded more than once. If the above code were placed in a class inside +the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the +application were reloaded, the loadLibrary() call would be attempted a second +time. + +To avoid this problem, place classes that load native libraries outside of the +web application, and ensure that the loadLibrary() call is executed only once +during the lifetime of a particular JVM. + + +============= +Bundled APIs: +============= +A standard installation of Tomcat 5.5 makes all of the following APIs available +for use by web applications (by placing them in "common/lib" or "shared/lib"): +* commons-el.jar (Commons Expression Language 1.0) +* commons-logging-api.jar (Commons Logging API 1.0.x) +* jasper-compiler.jar (Jasper 2 Compiler) +* jasper-compiler-jdt.jar (Eclipse JDT Java compiler) +* jasper-runtime.jar (Jasper 2 Runtime) +* jsp-api.jar (JSP 2.0 API) +* naming-common.jar (JNDI Context implementation) +* naming-factory.jar (JNDI object factories for J2EE ENC support) +* naming-factory-dbcp.jar (DataSource implementation based on commons-dbcp) +* naming-resources.jar (JNDI DirContext implementations) +* servlet-api.jar (Servlet 2.4 API) + +Installing the compatibility package will add the following to the list, which are +needed when running on J2SE 1.4: +* jmx.jar (Java Management Extensions API 1.2 or later) +* xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later) + +You can make additional APIs available to all of your web applications by +putting unpacked classes into a "classes" directory (not created by default), +or by placing them in JAR files in the "lib" directory. + +To override the XML parser implementation or interfaces, use the endorsed +mechanism of the JVM. The default configuration defines JARs located in +"common/endorsed" as endorsed. + + +================================================================ +Web application reloading and static fields in shared libraries: +================================================================ +Some shared libraries (many are part of the JDK) keep references to objects +instantiated by the web application. To avoid class loading related problems +(ClassCastExceptions, messages indicating that the classloader +is stopped, etc.), the shared libraries state should be reinitialized. + +Something which might help is to avoid putting classes which would be +referenced by a shared static field in the web application classloader, +and putting them in the shared classloader instead (JARs should be put in the +"lib" folder, and classes should be put in the "classes" folder). + + +================ +Tomcat on Linux: +================ +GLIBC 2.2 / Linux 2.4 users should define an environment variable: +export LD_ASSUME_KERNEL=2.2.5 + +Redhat Linux 9.0 users should use the following setting to avoid +stability problems: +export LD_ASSUME_KERNEL=2.4.1 + + +============================= +Enabling SSI and CGI Support: +============================= +Because of the security risks associated with CGI and SSI available +to web applications, these features are disabled by default. + +To enable and configure CGI support, please see the cgi-howto.html page. + +To enable and configue SSI support, please see the ssi-howto.html page. + + +====================== +Security manager URLs: +====================== +In order to grant security permissions to JARs located inside the +web application repository, use URLs of of the following format +in your policy file: + +file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar + + +============================ +Symlinking static resources: +============================ +By default, Unix symlinks will not work when used in a web application to link +resources located outside the web application root directory. + +This behavior is optional, and the "allowLinking" flag may be used to disable +the check. + + +========================= +Enabling invoker servlet: +========================= +Starting with Tomcat 4.1.12, the invoker servlet is no longer available by +default in all webapps. Enabling it for all webapps is possible by editing +$CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-mapping +definition. + +Using the invoker servlet in a production environment is not recommended and +is unsupported. More details are available on the Tomcat FAQ at +http://tomcat.apache.org/faq/misc.html#invoker. + + +============================== +Viewing the Tomcat Change Log: +============================== +See changelog.html in this directory. + + +==================== +When all else fails: +==================== +See the FAQ +http://tomcat.apache.org/faq/ Added: trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/lib/catalina-root.jar =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/lib/catalina-root.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/web.xml =================================================================== --- trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/web.xml (rev 0) +++ trunk/openuss/servers/tomcat/webapps/ROOT/WEB-INF/web.xml 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + Copyright 2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + <display-name>Welcome to Tomcat</display-name> + <description> + Welcome to Tomcat + </description> + +<!-- JSPC servlet mappings start --> + + <servlet> + <servlet-name>org.apache.jsp.index_jsp</servlet-name> + <servlet-class>org.apache.jsp.index_jsp</servlet-class> + </servlet> + + <servlet-mapping> + <servlet-name>org.apache.jsp.index_jsp</servlet-name> + <url-pattern>/index.jsp</url-pattern> + </servlet-mapping> + +<!-- JSPC servlet mappings end --> + +</web-app> Added: trunk/openuss/servers/tomcat/webapps/ROOT/admin/index.html =================================================================== --- trunk/openuss/servers/tomcat/webapps/ROOT/admin/index.html (rev 0) +++ trunk/openuss/servers/tomcat/webapps/ROOT/admin/index.html 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,14 @@ +<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <title>Administration</title> +</head> + +<body> + +Tomcat's administration web application is no longer installed by default. Download and install +the "admin" package to use it. + +</body> +</html> Added: trunk/openuss/servers/tomcat/webapps/ROOT/asf-logo-wide.gif =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/ROOT/asf-logo-wide.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/ROOT/favicon.ico =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/ROOT/favicon.ico ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/ROOT/index.jsp =================================================================== --- trunk/openuss/servers/tomcat/webapps/ROOT/index.jsp (rev 0) +++ trunk/openuss/servers/tomcat/webapps/ROOT/index.jsp 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<%@ page session="false" %> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title><%= application.getServerInfo() %></title> + <style type="text/css"> + /*<![CDATA[*/ + body { + color: #000000; + background-color: #FFFFFF; + font-family: Arial, "Times New Roman", Times, serif; + margin: 10px 0px; + } + + img { + border: none; + } + + a:link, a:visited { + color: blue + } + + th { + font-family: Verdana, "Times New Roman", Times, serif; + font-size: 110%; + font-weight: normal; + font-style: italic; + background: #D2A41C; + text-align: left; + } + + td { + color: #000000; + font-family: Arial, Helvetica, sans-serif; + } + + td.menu { + background: #FFDC75; + } + + .center { + text-align: center; + } + + .code { + color: #000000; + font-family: "Courier New", Courier, monospace; + font-size: 110%; + margin-left: 2.5em; + } + + #banner { + margin-bottom: 12px; + } + + p#congrats { + margin-top: 0; + font-weight: bold; + text-align: center; + } + + p#footer { + text-align: right; + font-size: 80%; + } + /*]]>*/ + </style> +</head> + +<body> + +<!-- Header --> +<table id="banner" width="100%"> + <tr> + <td align="left" style="width:130px"> + <a href="http://tomcat.apache.org/"> + <img src="tomcat.gif" height="92" width="130" alt="The Mighty Tomcat - MEOW!"/> + </a> + </td> + <td align="left" valign="top"><b><%= application.getServerInfo() %></b></td> + <td align="right"> + <a href="http://jakarta.apache.org/"> + <img src="asf-logo-wide.gif" height="51" width="537" alt="The Apache Software Foundation"/> + </a> + </td> + </tr> +</table> + +<table> + <tr> + + <!-- Table of Contents --> + <td valign="top"> + <table width="100%" border="1" cellspacing="0" cellpadding="3"> + <tr> + <th>Administration</th> + </tr> + <tr> + <td class="menu"> + <a href="manager/status">Status</a><br/> + <a href="admin">Tomcat Administration</a><br/> + <a href="manager/html">Tomcat Manager</a><br/> + + </td> + </tr> + </table> + + <br /> + <table width="100%" border="1" cellspacing="0" cellpadding="3"> + <tr> + <th>Documentation</th> + </tr> + <tr> + <td class="menu"> + <a href="RELEASE-NOTES.txt">Release Notes</a><br/> + <a href="tomcat-docs/changelog.html">Change Log</a><br/> + <a href="tomcat-docs">Tomcat Documentation</a><br/> + + </td> + </tr> + </table> + + <br/> + <table width="100%" border="1" cellspacing="0" cellpadding="3"> + <tr> + <th>Tomcat Online</th> + </tr> + <tr> + <td class="menu"> + <a href="http://tomcat.apache.org/">Home Page</a><br/> + <a href="http://tomcat.apache.org/faq/">FAQ</a><br/> + <a href="http://tomcat.apache.org/bugreport.html">Bug Database</a><br/> + <a href="http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&resolution=LATER&resolution=REMIND&resolution=---&bugidtype=include&product=Tomcat+5&cmdtype=doit&order=Importance">Open Bugs</a><br/> + <a href="http://mail-archives.apache.org/mod_mbox/tomcat-users/">Users Mailing List</a><br/> + <a href="http://mail-archives.apache.org/mod_mbox/tomcat-dev/">Developers Mailing List</a><br/> + <a href="irc://irc.freenode.net/#tomcat">IRC</a><br/> + + </td> + </tr> + </table> + + <br/> + <table width="100%" border="1" cellspacing="0" cellpadding="3"> + <tr> + <th>Examples</th> + </tr> + <tr> + <td class="menu"> + <a href="jsp-examples/">JSP Examples</a><br/> + <a href="servlets-examples/">Servlet Examples</a><br/> + <a href="webdav/">WebDAV capabilities</a><br/> + + </td> + </tr> + </table> + + <br/> + <table width="100%" border="1" cellspacing="0" cellpadding="3"> + <tr> + <th>Miscellaneous</th> + </tr> + <tr> + <td class="menu"> + <a href="http://java.sun.com/products/jsp">Sun's Java Server Pages Site</a><br/> + <a href="http://java.sun.com/products/servlet">Sun's Servlet Site</a><br/> + + </td> + </tr> + </table> + </td> + + <td style="width:20px"> </td> + + <!-- Body --> + <td align="left" valign="top"> + <p id="congrats">If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</p> + + <p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:</p> + <p class="code">$CATALINA_HOME/webapps/ROOT/index.jsp</p> + + <p>where "$CATALINA_HOME" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the <a href="tomcat-docs">Tomcat Documentation</a> for more detailed setup and administration information than is found in the INSTALL file.</p> + + <p><b>NOTE:</b> This page is precompiled. If you change it, this page will not change since + it was compiled into a servlet at build time. + (See <tt>$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml</tt> as to how it was mapped.) + </p> + + <p><b>NOTE: For security reasons, using the administration webapp + is restricted to users with role "admin". The manager webapp + is restricted to users with role "manager".</b> + Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p> + + <p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.4 and JSP 2.0 API JavaDoc), and an introductory guide to developing web applications.</p> + + <p>Tomcat mailing lists are available at the Tomcat project web site:</p> + + <ul> + <li><b><a href="mailto:us...@to...">us...@to...</a></b> for general questions related to configuring and using Tomcat</li> + <li><b><a href="mailto:de...@to...">de...@to...</a></b> for developers working on Tomcat</li> + </ul> + + <p>Thanks for using Tomcat!</p> + + <p id="footer"><img src="tomcat-power.gif" width="77" height="80" alt="Powered by Tomcat"/><br/> + + + Copyright © 1999-2005 Apache Software Foundation<br/> + All Rights Reserved + </p> + </td> + + </tr> +</table> + +</body> +</html> Added: trunk/openuss/servers/tomcat/webapps/ROOT/tomcat-power.gif =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/ROOT/tomcat-power.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/ROOT/tomcat.gif =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/ROOT/tomcat.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/balancer/META-INF/context.xml =================================================================== --- trunk/openuss/servers/tomcat/webapps/balancer/META-INF/context.xml (rev 0) +++ trunk/openuss/servers/tomcat/webapps/balancer/META-INF/context.xml 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,12 @@ +<!-- + + Context configuration file for the Tomcat Balancer Web App + This is only needed to keep the distribution small and avoid duplicating + commons libraries + + $Id: context.xml 303123 2004-08-26 17:03:35Z remm $ + +--> + + +<Context privileged="true" antiResourceLocking="false" antiJARLocking="false" /> Added: trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/config/rules.xml =================================================================== --- trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/config/rules.xml (rev 0) +++ trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/config/rules.xml 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rules> + <!-- If the URL contains News (case-sensitive), go to CNN.com --> + <rule className="org.apache.webapp.balancer.rules.URLStringMatchRule" + targetString="News" + redirectUrl="http://www.cnn.com" /> + + <!-- If the request contains a parameter named paramName whose value + is paramValue, go to Yahoo.com. --> + <rule className="org.apache.webapp.balancer.rules.RequestParameterRule" + paramName="paramName" + paramValue="paramValue" + redirectUrl="http://www.yahoo.com" /> + + <!-- Redirect all requests to jakarta.apache.org. --> + <rule className="org.apache.webapp.balancer.rules.AcceptEverythingRule" + redirectUrl="http://jakarta.apache.org" /> +</rules> Added: trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/lib/catalina-balancer.jar =================================================================== (Binary files differ) Property changes on: trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/lib/catalina-balancer.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/web.xml =================================================================== --- trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/web.xml (rev 0) +++ trunk/openuss/servers/tomcat/webapps/balancer/WEB-INF/web.xml 2006-05-15 14:33:18 UTC (rev 10) @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + <display-name>Tomcat Simple Load Balancer Example App</display-name> + <description> + Tomcat Simple Load Balancer Example App + </description> + + <!-- BalancerFilter definition --> + <filter> + <filter-name>BalancerFilter</filter-name> + <filter-class>org.apache.webapp.balancer.BalancerFilter</filter-class> + <init-param> + <param-name>configUrl</param-name> + <param-value>/WEB-INF/config/rules.xml</param-value> + </init-param> + </filter> + + <!-- BalancerFilter mapping --> + <filter-mapping> + <filter-name>BalancerFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> +</web-app> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |