Sounds to me like DAOFactory does not have a publicly accesible getAssignmentDAO() method, at least the version that your JSP server is finding does not have it.
Check the class path that your JSP server is using. It is likely to be different from the class path you are using when compiling. Also check the imports on your JSP page, perhaps you are unwittingly importing an old version. > -----Original Message----- > From: Maciek Zywno [SMTP:[EMAIL PROTECTED] > Sent: 06 June 2003 01:12 > To: [EMAIL PROTECTED] > Subject: java.lang.IllegalAccessError > > hello > in my jsp page I 've got the following lines: > > DAOFactory pointbaseFactory = > DAOFactory.getDAOFactory(DAOFactory.POINTBASE); //static public method to > get the concrete DAO factory( PointbaseDAOFactory class) > AssignmentDAO assignmentDAO = pointbaseFactory.getAssignmentDAO(); > //public; should return a concrete AssignmenDAO (PointbaseAssignmentDAO) > > but I get the IllegalAccessError: > tried to access method > mypackage.DAOFactories.DAOFactory.getAssignmentDAO()Lmypackage/DAOs/Assign > mentDAO; from class org.apache.jsp.addAssignment$jsp > > What sun says about this error is: > "..Thrown if an application attempts to access or modify a field, or to > call a method that it does not have access to. > Normally, this error is caught by the compiler; this error can only occur > at run time if the definition of a class has incompatibly changed." > > What about this illegal access? > I just try to use some classes in WEB-INF from my jsp page... > I do not understand why the first line is executed and the second one > gives the error. > > thanks for any help > > ========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com -- It is the strict policy of Truworths that its e-mail facility and all e-mail communications emanating therefrom, should be utilised for business purposes only and should conform to high professional and business standards. Truworths has stipulated certain regulations in terms whereof strict guidelines relating to the use and content of e-mail communications are laid down. The use of the Truworths e-mail facility is not permitted for the distribution of chain letters or offensive mail of any nature whatsoever. Truworths hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Truworths furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Truworths Limited accepts no liability for any consequences arising from or as a result of reliance on this message unless it is in respect of bona fide Truworths business for which proper authorisation has been granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to notify the Truworths e-mail administrator ([EMAIL PROTECTED]) immediately in order that appropriate action can be taken against the individual concerned. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com
