Hi John, Maximiliano and list,
I tried to fix the inconsistencies in the configuration.
But then I still can't reach the servlets. I just can't reach any servlets outside the
/examples.
I have now tried to copy the HelloWorldServlet from /examples to /archief and adopt
that web.xml file as a test.
No matter how I call them I always get a 404: resource unavailable error. Also when I
call the servlets over port 8080.
How should I call the servlets, based on my config files?
How should I configure things?
What did I miss?
Again: I am using redhat 8.0, Apache 2.0.43, tomcat 4.1.18, JK2
Here are the directory structure and config files:
Directory structure
/webapps
/examples
/archief
/WEB-INF
/classes
HelloWorldServlet
/lib
Connector-mysql-3_0_6.jar
web.xml
server.xml: context
<!-- Define new context for Archief Web -->
<Context path="/archief" docBase="archief" debug="2"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_archief_log." suffix=".txt"
timestamp="true"/>
<!--
<Enviroment name="maxExceptions" value="java.lang.Integer"
value="15"/>
<Parameter name="context.param.name" value="context.param.value"
override="false"/>
-->
</Context>
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- Define servlets included in archief -->
<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/archief</url-pattern>
</servlet-mapping>
</web-app>
jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
handler.list=apr,channelSocket,channelUnix,request
channelSocket.port=8009
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
workers2.properties
#--- workers2.properties
# Shared memory handling
[shm]
file=/usr/local/apache/logs/shm.file
size=1048576
# socketchannel, host and port
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
#Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
#uri mappings
[uri:/examples/*]
worker=ajp13:localhost:8009
[uri:/archief/*]
worker=ajp13:localhost:8009
Many thanks,
Alexander
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]