[Xitami] convert servlet configuration from Tomcat to Xitami

William D Sherlock xitami@lists.xitami.org
Fri, 21 Mar 2003 11:41:24 -0600


This message is in MIME format.  Since your mail reader does not understand
this format, some or all of this message may not be legible.

----__JNP_000_45aa.49c5.61b4
Content-Type: text/plain; charset=us-ascii  
Content-Transfer-Encoding: 7bit

Hi all,

I'm trying to run a servlet in Xitami that I've tested in Tomcat. I got
the Sokrates package, installed it in its own directory under Xitami (is
it more proper to put into addons?), and set it up and got the demo
running with no problem. My OS is Win98 (for testing) and I'm using
Xitami Version 2.4d9.

Here are the questions:

1. What is analogous to the server.xml file in Tomcat? Is it runner.ini?

2. What is analogous to the web.xml that a webapp needs? MyServlet.ini?
If that is the case then I assume the props file for the servlet contains
all the keys and values that web.xml needs. Correct?

3. Lastly, I've got some servlet mapping tags that need to be taken care
of, such as:

<!-- URL mapping for the Files servlet -->
<servlet-mapping>
        <servlet-name>
                fileServlet
        </servlet-name>
        <url-pattern>
                /static/*
        </url-pattern>
</servlet-mapping>
Into which file would info like this go?
Thanks,
Bill Sherlock
----__JNP_000_45aa.49c5.61b4
Content-Type: text/html; charset=us-ascii  
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4731.2200" name=3DGENERATOR></HEAD>
<BODY bottomMargin=3D0 leftMargin=3D3 topMargin=3D0 rightMargin=3D3>
<DIV>Hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm trying to run a servlet in Xitami&nbsp;that I've tested in Tomcat.=
 I=20
got the Sokrates package, installed it in its own directory&nbsp;under =
Xitami=20
(is it more proper to put into addons?), and set it up and got the demo =
running=20
with no problem. My OS is Win98 (for testing) and I'm using Xitami <FONT=20
size=3D2><FONT size=3D3>Version 2.4d9</FONT></FONT>.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here are the questions:</DIV>
<DIV>&nbsp;</DIV>
<DIV>1. What is analogous to the server.xml file in Tomcat? Is it=20
runner.ini?</DIV>
<DIV>&nbsp;</DIV>
<DIV>2. What is analogous to the web.xml that a webapp needs? MyServlet.ini=
? If=20
that is the case then I assume the props file for the servlet contains all =
the=20
keys and values that web.xml needs. Correct?</DIV>
<DIV>&nbsp;</DIV>
<DIV>3. Lastly, I've got some servlet mapping tags that need to be taken =
care=20
of, such as:</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>&lt;!-- URL mapping for the Files servlet --&gt;</FONT>=
</DIV>
<DIV><FONT size=3D2>&lt;servlet-mapping&gt;</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;servlet-name&gt;</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileServlet</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/servlet-name&gt;</DIV>
<DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;url-pattern&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /static/*</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/url-pattern&gt;</P>
<P>&lt;/servlet-mapping&gt;</P>
<P><FONT size=3D3>Into which file would info like this go?</FONT></P>
<P><FONT size=3D3>Thanks,</FONT></P>
<P><FONT size=3D3>Bill Sherlock</FONT></P></FONT></DIV></BODY></HTML>

----__JNP_000_45aa.49c5.61b4--