Hi, Paul

Since you're using Tomcat, look for a file named uriworkermap.properties and take it
from there.  You will also get a better response if you posted Tomcat-specific
questions to [EMAIL PROTECTED] You will have to subscribe if you
currently aren't.

Regards,
Noel Lecaros

Paul Meshkovsky wrote:

> Hi
>   Thanks for your help.
>   But how/where do I define a URL mapping? In web.xml?
>  If I just type http://localhost:8080 this will take me to index.html. As far as
> I see index.html is located in TOMCAT_HOME\webapps\Root\index.html
>  but when I type http://localhost:8080/test I get into index.html which is
> different form the index.html above. I guess this is the context you where
> talking about.
>
> If this is so than what am I doing wrong?
>
> > -----Original Message-----
> > From: Robert Nicholson [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, May 03, 2001 3:49 AM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: Problems  Setting up Tomcat to run Servlets
> >
> > Firstly you shouldn't have to use servlet if you define a url mapping so
> > that's what you want to fix rather than working around the problem with a
> > quick fix. Secondly, what happens when you to
> >
> > http://localhost:port/trial
> >
> > do you get a directory listing of your trial directory or it's
> > index.html?
> >
> > Is this context working correctly before you worry about servlets?
> >
> >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun Microsystem's Java Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > Bob Scott
> > > Sent: Thursday, May 03, 2001 11:48 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Problems Setting up Tomcat to run Servlets
> > >
> > >
> > > Use <machine:port>/trial/servlet/hello
> > >
> > >
> > > ----- Original Message -----
> > > From: "Joel Boyd" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, May 02, 2001 6:05 PM
> > > Subject: Re: Problems Setting up Tomcat to run Servlets
> > >
> > >
> > > > I also am having trouble setting up Tomcat to run servlets, although I
> > > have
> > > > been running JSP for some time.
> > > >
> > > > My configuration is the following:
> > > > In server.xml, I have
> > > >         <Context path="/trial"
> > > >                 docBase="webapps/trial"
> > > >                 debug="0"
> > > >                 reloadable="true" >
> > > >         </Context>
> > > >
> > > > In web.xml, I have
> > > >         <servlet>
> > > >         <servlet-name>hello</servlet-name>
> > > >         <servlet-class>trial.control.HelloClientServlet</servlet-class>
> > > >         </servlet>
> > > >
> > > > and
> > > >
> > > >         <servlet-mapping>
> > > >         <servlet-name>hello</servlet-name>
> > > >         <url-pattern>/hello/*</url-pattern>
> > > >         </servlet-mapping>
> > > >
> > > > I have HelloClientServlet.class in
> > > > TOMCAT_HOME/webapps/trial/WEB-INF/classes/trial/control,
> > > >
> > > > I invoke the servlet from my browser using
> > > >         <machine:port>/trial/hello
> > > >
> > > > And I get a page not found error.
> > > >
> > > > Can anyone tell me what I am doing wrong?
> > > >
> > > > Joel
> > > >
> > > > -----Original Message-----
> > > > From: Pierre-Yves Saumont [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, May 02, 2001 9:35 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Problems Setting up Tomcat to run Servlets
> > > >
> > > >
> > > > > HTTP method GET is not supported by this URL
> > > >
> > > > This error message says it all : the URL is accessible but does not
> > > respond
> > > > to GET requests. If your servlet doesn't include a doGet method, you
> > > > shouldn't be using GET to access it. Try POST ! (unless your servlet
> > > doesn't
> > > > include any doPost method neither ;-)
> > > >
> > > > Pierre-Yves
> > > >
> > > >
> > > >
> > > > -----Message d'origine-----
> > > > De : A mailing list for discussion about Sun Microsystem's Java Servlet
> > > > API Technology. [mailto:[EMAIL PROTECTED]]De la part de Paul
> > > > Meshkovsky
> > > > Envoye : mercredi 2 mai 2001 18:17
> > > > A : [EMAIL PROTECTED]
> > > > Objet : Re: Problems Setting up Tomcat to run Servlets
> > > >
> > > >
> > > > Hi all I still have problems running Servlets.
> > > >  This is what I did
> > > >    The file which I am trying to run works in Jrun
> > > >  question #1
> > > >   I put my HTML file in TOMCAT_HOME/webapps/examples/my.html in
> > > html file
> > > I
> > > > say
> > > > <form action="../servlet/MyServlet" method = get>
> > > >   Is the path correct ?
> > > >
> > > >   question #2 I put my MyServlet.class file in
> > > > TOCMAT_HOME/webapps/examples/WEB-inf/classes/MyServlet.class is it
> > > correct?
> > > >
> > > > So I get The page cannot be found error in my bowser
> > > > And in TOMCAT LOG I get
> > > > 2001-05-02 11:09:54 - Ctx( /examples ): 400 R( /examples +
> > > > /servlet/PaulsLoan +
> > > > null) HTTP method GET is not supported by this URL
> > > > Any Ideas?
> > > >
> > > > Thanx
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Joy Lott [SMTP:[EMAIL PROTECTED]]
> > > > > Sent: Wednesday, May 02, 2001 8:56 AM
> > > > > To:   [EMAIL PROTECTED]
> > > > > Subject:      Re: Problems  Setting up Tomcat to run Servlets
> > > > >
> > > > > [EMAIL PROTECTED] wrote:
> > > > > >
> > > > > > Hi ,
> > > > > >  I have installed tomcat and set it up I am only able to
> > > run JSP pages
> > > > but
> > > > > not
> > > > > > the Servlet part for some reason.
> > > > > > Can anybody tell me what I need to do.
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > > > Paul
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >  I am sorry; I have alot going on this morning, but the servlet class
> > > > > files need to go in /examples/WEB-INF/classes.
> > > > >   Hope this helps!
> > > > >   Joy
> > > >
> > > >
> > > __________________________________________________________________
> > > _________
> > > > 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
> > > >
> > > >
> > > __________________________________________________________________
> > > _________
> > > > 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
> > > >
> > > >
> > > __________________________________________________________________
> > > _________
> > > > 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
> > >
> > > __________________________________________________________________
> > > _________
> > > 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
> > >
> >
> > ___________________________________________________________________________
> > 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
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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