Hi,

I have many servlets made with NT4 + MySQL 3.23 +
JBuilder 3 Enterprise + Apache 1.3.9 + JServ 1.1.2.

Then, I would like to migrate from JServ 1.1.2 to
Tomcat 3.2.1. However, I have had many problems and
doubts to do this migration:

1) Apache httpd.conf
   I changed last line:
   ---------------------------------------------
   # Include JServ/conf/jserv.conf
   Include jakarta-tomcat-3.2.1/conf/tomcat.conf
   ---------------------------------------------
   I think this is ok.

1) JServ jserv.conf
   I first understood tomcat.conf would be the
   file to config.
   At this file, I put many lines like this:
   ---------------------------------------------
   ApJServMount /multilet /multis
   ---------------------------------------------
   where /multilet would be a context.
   However, I discovered the file server.xml
   that defines contexts, and I did this at
   this file:
   ---------------------------------------------
   <Context path="/multilet"
            docBase="d:/.../sistemas/"
            crossContext="false"
            debug="0"
            reloadable="true" >
   </Context>
   ---------------------------------------------
   After this, I got to point browser to:
   http://localhost/multilet/
   What's the tomcat.conf utility ?

2) JServ jserv.properties
   I first understood tomcat.properties would be
   the file to config.
   At this file, I put many lines like this:
   ---------------------------------------------
   wrapper.classpath=@JSERV_CLASSES@
   #wrapper.classpath=d:\internet\apache\JServ\ApacheJServ.jar
   wrapper.classpath=@JSDK_CLASSES@
   #wrapper.classpath=d:\lp\jbuilder3\lib\jsdk.jar
   wrapper.classpath=d:\lp\jbuilder3\lib\javamail\mail.jar
   wrapper.classpath=d:\lp\jbuilder3\lib\jaf\activation.jar
   wrapper.classpath=d:\lp\jbuilder3\lib\mysql_2_uncomp.jar
   ... # some lines below
   zones=root,multis
   root.properties=@JSERV_CONF@/zone.properties
   multis.properties=d:\...\multis\multis.properties
   ---------------------------------------------
   What about @JSERV_CLASSES@ ? Is this equal path to ApacheJServ.jar ?
   What about @JSDK_CLASSES@ ? Is this equal path to jsdk.jar ?
   Is this the right place to put wrapper.classpath ?
   Is this right to create multis.properties file like JServ ?
   What's the tomcat.properties utility ?

3) JServ specific servlet file multis.properties
   No equivalent file into Tomcat for this one... until this moment!
   ---------------------------------------------
   repositories=d:\...\sistemas\Consulta.jar
   repositories=d:\...\sistemas\Senha.jar
   ... # some lines below
   servlet.Consulta.ServletResConsulta.initArgs=DIRPS=d:/.../sistemas
   ---------------------------------------------
   Does not Tomcat support JAR files ? Only WAR ? I think JBuilder 3
   can't generate this kind of file.
   What about "initArgs" configuration ? Where to do this ?

PS: I got to run the sample servlet application like HelloWorld from
    Tomcat documentation. But I didn't for my servlets.

Suggestion: To make a step-by-step migration from
            JServ to Tomcat.


Reply via email to