Hello to all,

I downloaded Tomcat this morning, because JServ works with Servlet spec 2.0 and it 
seems that you can't implement
bigger web application (many .jsp + servlet that communicate with each other) with 
JServ and GNUJSP

of course after playing for a while, I wanted to run it as Apache extension, so I 
started to dig (first this list archives, then the Tomcat sources).

Here are the results (half a day spent) - you can start and stop Tomcat as Apache 
extension (Apache latest version)

I'm just posting them here so that I can gather some comments (please check my 
questions at the end of this message)
- and somebody may find this usefull (or even add this info to some FAQ)

tested platform:
win2000 (some kind of beta - pfu :(
Apache 1.3.9 (Win32)
JServ 1.1 final - ApacheModuleJServ-1.1-1.3.9.dll (122,880 bytes)
Tomcat  (Win32) - tomcat.zip (1,220,023 bytes)

my configuration files (first default installation than some
configuration changes)

==========  tomcat.conf  ==========
LoadModule jserv_module d:\app\ApacheJServ-1.1\ApacheModuleJServ-1.1-1.3.9.dll
<IfModule mod_jserv.c>

ApJServLogFile d:\app\Apache\logs\mod_jserv.log
ApJServLogLevel debug
ApJServDefaultPort 8007
ApJServDefaultProtocol ajpv12

ApJServManual Off
ApJServSecretKey DISABLED
ApJServMountCopy on

ApJServProperties d:\app\tomcat\etc\tomcat.properties
ApJServMount default /root
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
ApJServMount /examples /root
</IfModule>
==========  end of tomcat.conf  ==========


==========  tomcat.properties  ==========
# JDK directory
wrapper.bin=d:/java/jdk1.1.8/bin/java

# tomcat loads it's web-applications from System.getProperty("user.dir") subdirectoties
# so set up this variable to your tomcat directory (standard installation 
subdirectories 'examples' and 'webpages')
wrapper.bin.parameters=-Duser.dir=D:/app/tomcat/

# the main class
wrapper.class = org.apache.tomcat.shell.Startup

# main tomcat class needs some configuration :)
wrapper.class.parameters = -config D:/app/tomcat/server.xml

# the classpath
# copy of the sources, so that we can hack them
#wrapper.classpath=d:\work\tomcat\src\share
# standard classpath

wrapper.classpath=d:\app\tomcat\webserver.jar
wrapper.classpath=d:\app\tomcat\lib\servlet.jar
wrapper.classpath=d:\app\tomcat\lib\ant.jar
wrapper.classpath=d:\app\tomcat\lib\jasper.jar
wrapper.classpath=d:\app\tomcat\lib\xml.jar

# do we need this ??
wrapper.classpath=d:\java\jdk1.1.8\lib\classes.zip

#
bindaddress=localhost
port=8007

# it seems that some of these parameters are used from mod_jserv ???
security.selfservlet=false
security.maxConnections=50
security.authentication=false


# it seems that from mod_jserv does not like 'security.authentication=false' as it 
last paremeter heh :)
# if you don't trust me - delete the last three lines :)
==========  end of tomcat.properties  ==========

you need one more line inside apache httpd.conf - that is

include "D:\app\tomcat\etc\tomcat.conf"


now Apache starts and stops automaticaly Tomcat.
note that
1. you may want to disable the Tomcat webserver (hint server.xml)
2. you'd better stop Apache with '-k shutdown', not kill it directly, otherwise you 
may have some java.exe process that blocks your ServerSockets
3. I haven't tried Apache as NT service.

now my the questions (ok - I've been here only for one day, so some (Working !) FAQ 
URL will be o, if the FAQ is good enough.
the FAQ link from jakarta site wasn't working

1. is somebody going to implement the ajpv12 security handshake
(Tomcat listens for ajpv12 connections from a restricted number of (Apache) hosts + 
MD5 handshaking)
- it should be fairly easy for the guys that have written this code.
2. what are the Tomcat 'special features' - for example I've heard that it does not 
support encodeUrl()
3. has anybody succeded to implement shared sessions for http and https protocols.
4. any other good (better with sources and free :) implementations that support at 
least Servlet 2.1 and JSP 1.0 that I can use


that's it. I hope that some of you have found some usefull info, and I hope that 
somebody can answer my questions :)



--
Best regards,
 Ivan                            mailto:[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to