Article View: comp.lang.java
Article #547IllegalAccessException and Servlets
From: Philippe Girolami
Date: Wed, 20 Dec 2000 09:36
Date: Wed, 20 Dec 2000 09:36
20 lines
1993 bytes
1993 bytes
Hello, I have been trying out servlets and I have run into a problem. My servlet is a really simple one extending HttpServlet. I am running on iPlanet. I have setup my classpath correclty (ie iplanet is finding the servlet class). My servlet instantiates another class I wrote (located in the same directory and that I added to the class path). That other class uses JNDI. However, I can never get it to work and I always get the following error : [19/Dec/2000:17:15:58] warning ( 218): Internal error: newInstance failed (servlet class=LDAPServlet): java.lang.IllegalAccessException: LDAPServlet [19/Dec/2000:17:15:58] warning ( 218): Internal error: Failed to get GenericServlet. (uri=/servlet/LDAPServlet,SCRIPT_NAME=/servlet/LDAPServlet) After checking the sun docs I added a public zero-parameter constructor to my other class but that still has not helped. Any ideas ? Philippe
Technical Details
Message-ID:
<91pu14$b0a$1@newstoo.ericsson.se>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,cbf0acdb3a23d9cb,start X-Google-Attributes: gidf5d71,public X-Google-Thread: 10a146,cbf0acdb3a23d9cb,start X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,cbf0acdb3a23d9cb,start X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,cbf0acdb3a23d9cb,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2000-12-20 01:37:12 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Philippe Girolami" <philippe.girolami@esf.Ericsson.Se> Newsgroups: comp.lang.java,comp.lang.java.programmer,borland.public.jbuilder.java.language,comp.lang.java.help Subject: IllegalAccessException and Servlets Date: Wed, 20 Dec 2000 10:36:58 +0100 Organization: Ericsson France Lines: 22 Message-ID: <91pu14$b0a$1@newstoo.ericsson.se> NNTP-Posting-Host: 137.58.98.173 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3