You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kenny G. Dubuisson, Jr." <kd...@kcmria.com> on 2002/09/27 20:08:29 UTC
Servlet context problem?
I'm trying to use my first servlet (named "MyFirstServlet") in a context
that I created (called "graphics"). It is my understanding that the servlet
should go in "graphics/WEB-INF/classes" and should be invoked in a browser
via "graphics/servlet/MyFirstServlet". This for me doesn't work. In my
browser I get an error stating "The requested resource
(/graphics/servlet/MyFirstServlet) is not available".
For a test, I moved my servlet to "examples/WEB-INF/classes" and accessed it
via "examples/WEB-INF/classes" and it worked fine. This tells me that
something with my "graphics" context doesn't work. But if I try to access a
static html file via the context, it works fine.
Any ideas? Thanks,
Kenny
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Servlet context problem?
Posted by Ray Madigan <ra...@madigans.org>.
Did you restart tomcat after you created the new context?
Have you looked at the logs in the logs directory?
-----Original Message-----
From: Kenny G. Dubuisson, Jr. [mailto:kdubuisson@kcmria.com]
Sent: Friday, September 27, 2002 11:10 AM
To: Tomcat Users List
Subject: Re: Servlet context problem?
Oops, typs. In the second paragraph I meant to say that I successfully
accessed my servlet in the browser via "examples/servlet/MyFirstServlet".
Thanks,
Kenny
----- Original Message -----
From: "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, September 27, 2002 1:08 PM
Subject: Servlet context problem?
> I'm trying to use my first servlet (named "MyFirstServlet") in a context
> that I created (called "graphics"). It is my understanding that the
servlet
> should go in "graphics/WEB-INF/classes" and should be invoked in a browser
> via "graphics/servlet/MyFirstServlet". This for me doesn't work. In my
> browser I get an error stating "The requested resource
> (/graphics/servlet/MyFirstServlet) is not available".
>
> For a test, I moved my servlet to "examples/WEB-INF/classes" and accessed
it
> via "examples/WEB-INF/classes" and it worked fine. This tells me that
> something with my "graphics" context doesn't work. But if I try to access
a
> static html file via the context, it works fine.
>
> Any ideas? Thanks,
> Kenny
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Servlet context problem?
Posted by "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>.
Oops, typs. In the second paragraph I meant to say that I successfully
accessed my servlet in the browser via "examples/servlet/MyFirstServlet".
Thanks,
Kenny
----- Original Message -----
From: "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, September 27, 2002 1:08 PM
Subject: Servlet context problem?
> I'm trying to use my first servlet (named "MyFirstServlet") in a context
> that I created (called "graphics"). It is my understanding that the
servlet
> should go in "graphics/WEB-INF/classes" and should be invoked in a browser
> via "graphics/servlet/MyFirstServlet". This for me doesn't work. In my
> browser I get an error stating "The requested resource
> (/graphics/servlet/MyFirstServlet) is not available".
>
> For a test, I moved my servlet to "examples/WEB-INF/classes" and accessed
it
> via "examples/WEB-INF/classes" and it worked fine. This tells me that
> something with my "graphics" context doesn't work. But if I try to access
a
> static html file via the context, it works fine.
>
> Any ideas? Thanks,
> Kenny
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>