Hello
I too am experiencing extreme difficulty in sitting up Apache/Tomcat. Neither the
default mod_jserve or the configuration for Mod_jk/ajp12 default or ajp13
configuration works as per the various suggestions presented on the listing.
Everything works directly via Tomcat:port 8080 but not via Apache.
I have three different types of applications: Servlet, JSP, Applet.
1. The servlet applications is just one class and works in Apache and Tomcat with no
problems.
2. The JSP and Applet application works in Tomcat but not via Apache.
The JSP applications is an Oracle Jdeveloper applications with various libraries
and relevant tags files etc.
The applet application is a fully containe applet with various classes and
libraries in its application directory.
It loads via Apache but is unable to find its required assocaited files.
Apache is somehow not communicating with Tomcat about where the files are or visa
versa. I have a feeling it is about mapping of directories or something simple but
then again I am a newbie.
Judging from this list everyone is having similar problems with apache/mod_jk.
Included are my various configurations files. I would appreciate if someone can
can point out what I need to fix.
I am using Apache 1.3.14 , Tomcat 3.2.1 and JRE 1.3 and Windows 2000 with service pack
1.
I am calling mod_jk.conf.mine from appache http.conf
Many thanks
**********************************************************************
Any unauthorized use and interception of this e-mail is illegal.
If this e-mail is not intended for you, you may not copy,
distribute or disclose the contents to anyone. This e-mail
does not give rise to any binding legal obligations upon the
City of Cape Town unless the City of Cape Town subsequently
confirms the content in writing non-electronically. This e-mail
may be confidential, legally privileged or otherwise protected
by law. Unauthorised disclosure or copying of any or all of it
may be unlawful. If you receive this e-mail in error please notify
the sender and delete the message
**********************************************************************
workers.properties
###################################################################
# Auto generated configuration. Dated: Tue Feb 13 09:53:10 GMT+02:00 2001
###################################################################
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "C:/jakarta-tomcat/conf/workers.properties"
JkLogFile "C:/jakarta-tomcat/logs/mod_jk.log"
#
# Log level to be used by mod_jk
#
JkLogLevel error
###################################################################
# SSL configuration #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###################################################################
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
#########################################################
# Auto configuration for the /examples context starts.
#########################################################
#
# The following line makes apache aware of the location of the /examples context
#
Alias /examples "C:/jakarta-tomcat/webapps/examples"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /examples context ends.
#######################################################
#########################################################
# Auto configuration for the /myexamples context starts.
#########################################################
#
# The following line makes apache aware of the location of the /myexamples context
#
Alias /myexamples "C:/jakarta-tomcat/webapps/myexamples"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /myexamples/servlet/* ajp13
JkMount /myexamples/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /myexamples context ends.
#######################################################
#########################################################
# Auto configuration for the /myapp context starts.
#########################################################
#
# The following line makes apache aware of the location of the /myapp context
#
Alias /myapp "C:/jakarta-tomcat/webapps/myapp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /myapp/servlet/* ajp13
JkMount /myapp/*.jsp ajp1
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /myapp context ends.
#######################################################
#########################################################
# Auto configuration for the /newapp context starts.
#########################################################
#
# The following line makes apache aware of the location of the /newapp context
#
Alias /newapp "C:/jakarta-tomcat/webapps/newapp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /newapp/servlet/* ajp13
JkMount /newapp/*.jsp ajp1
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /newapp context ends.
#######################################################
#########################################################
# Auto configuration for the /mycapp context starts.
#########################################################
#
# The following line makes apache aware of the location of the /mycapp context
#
Alias /mycapp "C:/mycapp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /mycapp/servlet/* ajp13
JkMount /mycapp/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /mycapp context ends.
#######################################################
#########################################################
# Auto configuration for the /Sentences context starts.
#########################################################
#
# The following line makes apache aware of the location of the /Sentences context
#
Alias /Sentences "C:/Sentences/WebApplication"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /Sentences/servlet/* ajp13
JkMount /Sentences/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /Sentences context ends.
#######################################################
#########################################################
# Auto configuration for the /SentencesImages context starts.
#########################################################
#
# The following line makes apache aware of the location of the /SentencesImages context
#
Alias /SentencesImages "C:/SentencesChapters/Images"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /SentencesImages/servlet/* ajp13
JkMount /SentencesImages/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /SentencesImages context ends.
#######################################################
#########################################################
# Auto configuration for the /jspclient context starts.
#########################################################
#
# The following line makes apache aware of the location of the /jspclient context
#
Alias /jspclient "C:/jakarta-tomcat/webapps/jspclient"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /jspclient/servlet/* ajp13
JkMount /jspclient/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /jspclient context ends.
#######################################################
#########################################################
# Auto configuration for the /OnlineOrdersWeb context starts.
#########################################################
#
# The following line makes apache aware of the location of the /OnlineOrdersWeb context
#
Alias /OnlineOrdersWeb "C:/jakarta-tomcat/webapps/OnlineOrdersWeb"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /OnlineOrdersWeb/servlet/* ajp13
JkMount /OnlineOrdersWeb/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /OnlineOrdersWeb context ends.
#######################################################
#########################################################
# Auto configuration for the /UniCity context starts.
#########################################################
#
# The following line makes apache aware of the location of the /UniCity context
#
Alias /UniCity "C:/jakarta-tomcat/webapps/UniCity"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /UniCity/servlet/* ajp13
JkMount /UniCity/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /UniCity context ends.
#######################################################
#########################################################
# Auto configuration for the /admin context starts.
#########################################################
#
# The following line makes apache aware of the location of the /admin context
#
Alias /admin "C:/jakarta-tomcat/webapps/admin"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /admin context ends.
#######################################################
#########################################################
# Auto configuration for the /jspclient-temp context starts.
#########################################################
#
# The following line makes apache aware of the location of the /jspclient-temp context
#
Alias /jspclient-temp "C:/jakarta-tomcat/webapps/jspclient-temp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /jspclient-temp/servlet/* ajp13
JkMount /jspclient-temp/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /jspclient-temp context ends.
#######################################################
#########################################################
# Auto configuration for the /temp context starts.
#########################################################
#
# The following line makes apache aware of the location of the /temp context
#
Alias /temp "C:/jakarta-tomcat/webapps/temp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /temp/servlet/* ajp13
JkMount /temp/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /temp context ends.
#######################################################
#########################################################
# Auto configuration for the /test context starts.
#########################################################
#
# The following line makes apache aware of the location of the /test context
#
Alias /test "C:/jakarta-tomcat/webapps/test"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /test/servlet/* ajp13
JkMount /test/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /test context ends.
#######################################################
#########################################################
# Auto configuration for the /unicity context starts.
#########################################################
#
# The following line makes apache aware of the location of the /unicity context
#
Alias /unicity "C:/jakarta-tomcat/webapps/unicity"
Options Indexes FollowSymLinks
#add by Li Xun 16/02/2001
Alias /unicity/webapp "C:/jakarta-tomcat/webapps/unicity/webapp"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /unicity/servlet/* ajp13
JkMount /unicity/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /unicity context ends.
#######################################################
#########################################################
# Auto configuration for the /UniCityEvent1.jar context starts.
#########################################################
#
# The following line makes apache aware of the location of the /UniCityEvent1.jar context
#
Alias /UniCityEvent1.jar "C:/jakarta-tomcat/webapps/UniCityEvent1.jar"
Options Indexes FollowSymLinks
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /UniCityEvent1.jar/servlet/* ajp13
JkMount /UniCityEvent1.jar/*.jsp ajp13
#
# The following line prohibits users from directly accessing WEB-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#
# The following line prohibits users from directly accessing META-INF
#
AllowOverride None
deny from all
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
AllowOverride None
deny from all
#######################################################
# Auto configuration for the /UniCityEvent1.jar context ends.
#######################################################
<?xml version="1.0" encoding="ISO-8859-1"?>
<Server>
<!-- Debug low-level events in XmlMapper startup -->
<xmlmapper:debug level="0" />
<!--
Logging:
Logging in Tomcat is quite flexible; we can either have a log
file per module (example: ContextManager) or we can have one
for Servlets and one for Jasper, or we can just have one
tomcat.log for both Servlet and Jasper. Right now there are
three standard log streams, "tc_log", "servlet_log", and
"JASPER_LOG".
Path:
The file to which to output this log, relative to
TOMCAT_HOME. If you omit a "path" value, then stderr or
stdout will be used.
Verbosity:
Threshold for which types of messages are displayed in the
log. Levels are inclusive; that is, "WARNING" level displays
any log message marked as warning, error, or fatal. Default
level is WARNING.
verbosityLevel values can be:
FATAL
ERROR
WARNING
INFORMATION
DEBUG
Timestamps:
By default, logs print a timestamp in the form "yyyy-MM-dd
hh:mm:ss" in front of each message. To disable timestamps
completely, set 'timestamp="no"'. To use the raw
msec-since-epoch, which is more efficient, set
'timestampFormat="msec"'. If you want a custom format, you
can use 'timestampFormat="hh:mm:ss"' following the syntax of
java.text.SimpleDateFormat (see Javadoc API). For a
production environment, we recommend turning timestamps off,
or setting the format to "msec".
Custom Output:
"Custom" means "normal looking". "Non-custom" means
"surrounded with funny xml tags". In preparation for
possibly disposing of "custom" altogether, now the default is
'custom="yes"' (i.e. no tags)
Per-component Debugging:
Some components accept a "debug" attribute. This further
enhances log output. If you set the "debug" level for a
component, it may output extra debugging information.
-->
<!-- if you don't want messages on screen, add the attribute
path="logs/tomcat.log"
to the Logger element below
-->
<Logger name="tc_log"
verbosityLevel = "INFORMATION"
/>
<Logger name="servlet_log"
path="logs/servlet.log"
/>
<Logger name="JASPER_LOG"
path="logs/jasper.log"
verbosityLevel = "INFORMATION" />
<!-- You can add a "home" attribute to represent the "base" for
all relative paths. If none is set, the TOMCAT_HOME property
will be used, and if not set "." will be used.
webapps/, work/ and logs/ will be relative to this ( unless
set explicitely to absolute paths ).
You can also specify a "randomClass" attribute, which determines
a subclass of java.util.Random will be used for generating session IDs.
By default this is "java.security.SecureRandom".
Specifying "java.util.Random" will speed up Tomcat startup,
but it will cause sessions to be less secure.
You can specify the "showDebugInfo" attribute to control whether
debugging information is displayed in Tomcat's default responses.
This debugging information includes:
1. Stack traces for exceptions
2. Request URI's that cause status codes >= 400
The default is "true", so you must specify "false" to prevent
the debug information from appearing. Since the debugging
information reveals internal details about what Tomcat is serving,
set showDebugInfo="false" if you wish increased security.
-->
<ContextManager debug="0" workDir="work" showDebugInfo="true" >
<!-- ==================== Interceptors ==================== -->
<!--
ContextInterceptor className="org.apache.tomcat.context.LogEvents"
-->
<ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
<ContextInterceptor
className="org.apache.tomcat.context.WebXmlReader" />
<!-- Uncomment out if you have JDK1.2 and want to use policy
<ContextInterceptor
className="org.apache.tomcat.context.PolicyInterceptor" />
-->
<ContextInterceptor
className="org.apache.tomcat.context.LoaderInterceptor" />
<ContextInterceptor
className="org.apache.tomcat.context.DefaultCMSetter" />
<ContextInterceptor
className="org.apache.tomcat.context.WorkDirInterceptor" />
<!-- Request processing -->
<!-- Session interceptor will extract the session id from cookies and
deal with URL rewriting ( by fixing the URL ). If you wish to
suppress the use of cookies for session identifiers, change the
"noCookies" attribute to "true"
-->
<RequestInterceptor
className="org.apache.tomcat.request.SessionInterceptor"
noCookies="false" />
<!-- Find the container ( context and prefix/extension map )
for a request.
-->
<RequestInterceptor
className="org.apache.tomcat.request.SimpleMapper1"
debug="0" />
<!-- Non-standard invoker, for backward compat. ( /servlet/* )
You can modify the prefix that is matched by adjusting the
"prefix" parameter below. Be sure your modified pattern
starts and ends with a slash.
NOTE: This prefix applies to *all* web applications that
are running in this instance of Tomcat.
-->
<RequestInterceptor
className="org.apache.tomcat.request.InvokerInterceptor"
debug="0" prefix="/servlet/" />
<!-- "default" handler - static files and dirs. Set the
"suppress" property to "true" to suppress directory listings
when no welcome file is present.
NOTE: This setting applies to *all* web applications that
are running in this instance of Tomcat.
-->
<RequestInterceptor
className="org.apache.tomcat.request.StaticInterceptor"
debug="0" suppress="false" />
<!-- Plug a session manager. You can plug in more advanced session
modules.
-->
<RequestInterceptor
className="org.apache.tomcat.session.StandardSessionInterceptor" />
<!-- Check if the request requires an authenticated role.
-->
<RequestInterceptor
className="org.apache.tomcat.request.AccessInterceptor"
debug="0" />
<!-- Check permissions using the simple xml file. You can
plug more advanced authentication modules.
-->
<RequestInterceptor
className="org.apache.tomcat.request.SimpleRealm"
debug="0" />
<!-- UnComment the following and comment out the
above to get a JDBC realm.
Other options for driverName:
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott"
connectionPassword="tiger"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test"
connectionPassword="test"
"connectionName" and "connectionPassword" are optional.
-->
<!--
<RequestInterceptor
className="org.apache.tomcat.request.JDBCRealm"
debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:TOMCAT"
userTable="users"
userNameCol="user_name"
userCredCol="user_pass"
userRoleTable="user_roles"
roleNameCol="role_name" />
-->
<!-- Loaded last since JSP's that load-on-startup use request handling -->
<ContextInterceptor
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
<!-- ==================== Connectors ==================== -->
<!-- Normal HTTP -->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="8080"/>
</Connector>
<!--
Uncomment this for SSL support.
You _need_ to set up a server certificate if you want this
to work, and you need JSSE.
1. Add JSSE jars to CLASSPATH
2. Edit java.home/jre/lib/security/java.security
Add:
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
3. Do: keytool -genkey -alias tomcat -keyalg RSA
RSA is essential to work with Netscape and IIS.
Use "changeit" as password. ( or add keypass attribute )
You don't need to sign the certificate.
You can set parameter keystore and keypass if you want
to change the default ( user.home/.keystore with changeit )
-->
<!--
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port"
value="8443"/>
<Parameter name="socketFactory"
value="org.apache.tomcat.net.SSLSocketFactory" />
</Connector>
-->
<!-- Apache AJP12 support. This is also used to shut down tomcat.
-->
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
<Parameter name="port"
value="8009"/>
</Connector>
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="8007"/>
</Connector>
<!-- ==================== Special webapps ==================== -->
<!-- You don't need this if you place your app in webapps/
and use defaults.
For security you'll also need to edit tomcat.policy
Defaults are: debug=0, reloadable=true, trusted=false
(trusted allows you to access tomcat internal objects
with FacadeManager ), crossContext=true (allows you to
access other contexts via ServletContext.getContext())
If security manager is enabled, you'll have read perms.
in the webapps dir and read/write in the workdir.
-->
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/myexamples"
docBase="webapps/myexamples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/myapp"
docBase="webapps/myapp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/newapp"
docBase="webapps/newapp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/mycapp"
docBase="c:/mycapp"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/Sentences"
docBase="c:/Sentences/WebApplication"
crossContext="false"
debug="0"
defaultSessionTimeOut="30"
isWARExpanded="true"
isWARValidated="false"
isInvokerEnabled="true"
isWorkDirPersistent="false"
reloadable="false" >
</Context>
<Context path="/SentencesImages"
docBase="c:/SentencesChapters/Images"
crossContext="false"
debug="0"
defaultSessionTimeOut="30"
isWARExpanded="true"
isWARValidated="false"
isInvokerEnabled="true"
isWorkDirPersistent="false"
reloadable="false" >
</Context>
<Context path="/jspclient"
docBase="webapps/jspclient"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/OnlineOrdersWeb"
docBase="webapps/OnlineOrdersWeb"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
<Context path="/UniCity"
docBase="webapps/UniCity"
crossContext="true"
debug="0"
reloadable="true"
trusted="false">
</Context>
<!-- Admin context will use tomcat.core to add/remove/get info about
the webapplications and tomcat internals.
By default it is not trusted - i.e. it is not allowed access to
tomcat internals, only informations that are available to all
servlets are visible.
If you change this to true, make sure you set a password.
-->
<Context path="/admin"
docBase="webapps/admin"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
<!-- Virtual host example -
In "127.0.0.1" virtual host we'll reverse "/" and
"/examples"
(XXX need a better example )
(use "http://127.0.0.1/examples" )
<Host name="127.0.0.1" >
<Context path=""
docBase="webapps/examples" />
<Context path="/examples"
docBase="webapps/ROOT" />
</Host>
-->
</ContextManager>
</Server>
LazyServlet
com.sentences.main.LazyServlet
5
StatsServlet
com.sentences.main.StatsServlet
LazyServlet
/Sentences
StatsServlet
/Statistics
/webapp/DataTags.tld
/WEB-INF/DataTags.tld
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]