W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

Re: Access Error in Servlet

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Fri, 11 Jun 1999 10:17:11 +0200
Message-ID: <3760C607.4F15111C@sophia.inria.fr>
To: dpwhite@halcyon.com, Jigsaw Mailing List <www-jigsaw@w3.org>
Well, strange, did you try to recompile your servlet?

Regards, Benoit.

"David P. White" wrote:

> Hello,
>
> I have placed a servlet's class file in the www/servlet directory to be
> executed by jigsaw. I then start jigsaw and try to access the servlet by
> pointing my browser to
> http://localhost:8001/servlet/LicenseManagerServlet. My browser displays
> a dialog saying that the document has no data. I also get the following
> shown on jigsaw's console:
>
> -------------------------------
>
> c:\jigsaw>java.exe -cp
> .;E:\jdk1-2-1\jre\lib\rt.jar;E:\jacl1-1-1\jacl.jar;E:\jacl1-1-1\tcljava.jar;C:\ORANT\jdbc\Oracle-JDBC-Classes111.zip;E:\jsdk2-1\servlet.jar;D:\hms\java;c:\jigsaw\classes\jigsaw.zip
> org.w3c.jigsaw.Main -root C:\Jigsaw\Jigsaw
>
> loading properties from: C:\Jigsaw\Jigsaw\config\server.props
> Jigsaw[2.0.2]: serving at http://notacow:8001/
> *** Warning : no logger specified, not logging.
> JigAdmin[2.0.2]: serving at http://notacow:8009/
> Create Servlet : LicenseManagerServlet.class
>
> java.lang.IllegalAccessError: try to access class
> hmssoftware/licensing/LicenseManager from class
> hmssoftware/licensing/LicenseManagerServlet
>         at
> hmssoftware.licensing.LicenseManagerServlet.init(LicenseManagerServle
> t.java:15)
>         at
> org.w3c.jigsaw.servlet.ServletWrapper.launchServlet(ServletWrapper.ja
> va:367)
>
> (large stack trace continues...)
>
> -------------------------------
>
> The class LicenseManagerServlet is public. It instantiates an instance
> of the LicenseManager class which has package scope. Both classes are in
> the same package. The LicenseManager class is on the classpath. So why
> is this not working? I have done exactly this sort of thing with other
> servlet runners and it works just fine. Any ideas?
>
> Thanks,
>
> David

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------
Received on Friday, 11 June 1999 04:17:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT