tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moin Anjum H." <moinan...@yahoo.com>
Subject Re: Setting up a servlet (web.xml)
Date Sun, 25 Feb 2001 05:42:19 GMT
Hi,

Have you made the servlet class as public?

I got the same error when i did the mistake of not making public.

Ex:

class MyServlet extends HttpServlet  <-- Compiles fine but gives illlegal
Access

public class MyServlet extends HttpServlet <-- work fine.

HTH
Best Regards
Moin.

Christopher Barbee wrote:

> Hello.
>
>         I am tryting to set up a servlet in the Root webapp.  I have added
> a <servlet> ... </servlet> tags and also a <servlet-mapping> tags...
>
>         When I invoke the servlet via a form submit,   I get an
> IllegalAccessException.
>
>         I have also added permissions in the tomcat.policy file :
>
>         file:{tomcat.home}/webapps/-
>         AllPermissions
>
>         Any ideas out there...
>
> --Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message