tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Bruce" ...@chrisbruce.com>
Subject Re: I can't execute servlet
Date Sat, 18 Mar 2000 03:08:36 GMT
I found out that the class was using a package.  I took out the package
definition and it worked.  How would I use a class in a specific package?


----- Original Message -----
From: "Craig R. McClanahan" <cmcclanahan@mytownnet.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, March 17, 2000 7:04 PM
Subject: Re: I can't execute servlet


> Chris Bruce wrote:
>
> > Can anyone help?  I tried putting a servlet in the
> > example/WEB-INF/classes directory and it won't run (it is not being
> > found)  How do I set up the xml file to correctly point to servlets?
>
> What URL are you trying?  If your servlet class is named MyServlet, and
> you put the file MyServlet.class in the WEB-INF/classes directory, you
> should be able to access it with:
>
>     http://localhost:8080/servlet/MyServlet
>
> The WEB-INF/classes directory is automatically added to the class path
> for a web application -- it is not accessed directly via a URL.
>
> Craig McClanahan
>
>
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message