-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hello,
I am having a problem loading a class from a servlet.
I have had jserv up and running for several
weeks with no problems. However I have created a utility
class for use in several servlets, but when a servlet tries
to instantiate my utility class, an error occurs as shown
from the following excerpt from the jserv log files. Note
my utiliy class is called 'ordsUserProfile' and the constructor
takes a String as its only parameter.
----
[01/09/1999 19:54:28:497] (ERROR) ajp11: Servlet Error: java.lang.IllegalAccessError:
ordsUserProfile.<init> (Ljava/lang/String;)V:
[01/09/1999 19:54:28:498] (ERROR) an error returned handling request via protocol
"ajpv11"
[01/09/1999 20:24:19:095 CDT] Servlet-Error: java.lang.IllegalAccessError:
ordsUserProfile.<init>(Ljava/lang/String;)V:ordsUserProfile.<init>(Ljava/lang/String;)V
[01/09/1999 20:24:19:096 CDT] Content-Type: text/html
[01/09/1999 20:24:19:097 CDT]
java.lang.IllegalAccessError:ordsUserProfile.<init>(Ljava/lang/String;)V
at java.lang.Throwable.fillInStackTrace(Native Method)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:341)
at org.apache.jserv.JServConnection.run(JServConnection.java:197)
at java.lang.Thread.run(Thread.java:485)
----
My servlets in general construct and load lots of JDK classes, but this is the first
time
I've tried to load a self-created class. I have added the new class to the classpath
so the
JVM is finding it okay, but as soon as the servlet tries to construct (instantiate)
the class
it throws the exception. The JDK documentation of the IllegalAccessError exception did
not help me.
I am using Apache Jserv v1.0b5 with Apache version 1.3.6 on Solaris 2.7.
Any suggestions for how to debug this would be greatly appreciated!
Regards,
Scott
---
Scott Kuhn
Application Programmer
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]