"Raghavendra V. Kulkarni" wrote:

> Hello,
>
>         I am new to tomcat. I have successfully
>         installed TomCat on my system. I could
>         also run "Examples".
>
>         I have my own application (.class files)
>         that I intend to host through tomcat. Can
>         anyone tell me how to do this ? I tried
>         but failed.
>
>         I would very greatful if anyone of you can
>         list steps in detail. A sample set of files
>         would be really helpful.
>
> Warm Regards,
> Raghu
> [...]

Hi :-)  I have a little experience about how to set a new
webapp with jakarta-tomcat-4.0-b1, because I just install
it and now I am glad :-)

*  setting enviroment
    - set JAVA_HPME=...
    - set TOMCAT_HPME=...

(in the following , I use  "TH" to replace "TOMCAT_HPME")

*  make several  new folder and a new file in TH/webapps:
    -  TH/webapps/myapp/WEB-INF/classes, and put your
        Servlet class and/or helper class(.class  file) in it
    -  TH/webapps/myapp/WEB-INF/lib, and(if you want),  put
        your helper class(.jar  file) in it
    -  TH/webapps/myapp/WEB-INF/web.xml. you can copy
        a sample of web.xml from "examples" webapp. in this web.xml,
        we can define:
          sevlet definition(and "servlet definition initiation
parameter")
          servlet-mapping
          ...
    -  from the direction of email,  it is better to put helper file in
       TH/webapps/myapp/WEB-INF/  .

     (in above, "myapp" is the name of our new webapp/servlet context)

*  modify TH/conf/server.xml to Add a new servlet context definition,
    we can copy from "examples" and do some modification :-)  ; we also
    can set "servlet context initiation parameter" here.

*  if nessary , add MIME type in  TH/conf/web.xml, for example, wml,
    wbmp.


Bo
Feb.28, 2001



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to