Hi Simon,
may guess you found the mistake!
If I place index.html into /myExample I can not see it in browser!
But when I place it into /webapps/myExamples I can see it! (when changing
server.xml of course)
Why?
I hate the docs to apache projects. I can never find what I want. All docs
looks the same...
> -----Original Message-----
> From: Kitching Simon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 09, 2001 2:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Problem with configuring Tomcat
>
>
> Hi Lubos,
>
> If you put a plain html or text file in directory
> TOMCAT_HOME/myExample, can you fetch
> this file with a browser? That will prove that at
> least the <Context> tag is defined right....
>
>
> Regarding the servlets in examples: there is
> this funky thing called the "InvokerServlet"
> which allows you to type
> http://hostname:port/webappname/servlet/pkg.class
>
> The InvokerServlet gets called (because its url-pattern
> is /servlet/*), and then passes the request off to the
> class specified in the url. If you are happy to use
> "/servlet" in all your servlet-related urls, and don't need
> startup parameters for any of your servlets, then you
> don't need to define servlets in your web.xml at all. Just
> put your servlet class in the appropriate subdirectory
> of WEB-INF/classes and it is immediately accessable.
>
> I'm not sure how the InvokerServlet gets "enabled" in
> tomcat3.2 - in tomcat3.1, it used to be defined in the
> TOMCAT_HOME/conf/web.xml file, but tomcat 3.2
> no longer uses that file. The answer should be in the
> tomcat docs somewhere..
>
> I notice you're defining <load-on-startup> for your servlet.
> Is this deliberate, or are you just copying from somewhere?
> In general, this is not necessary (in fact, it might even be
> causing your servlet to crash, hence your 404).
>
> Hope this helps,
>
> Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]