"Steven D. Meacham" wrote:

> It looks to me like you already have in the message all of the info
> available.  Error 500 means "Internal Servlet Error".   It is the HTTP code
> that indicates that something unexpected happened when trying to
> generate/send a response to the client.
>
> The rest of it is a stack trace which takes you to the exact point of
> failure in the servlet.  In this case, you probably have a Servlet named
> Example0402 and you're calling the method newInstance() where the error
> occurs.  I'm not sure what the IllegalAccessException that occurred means in
> your case without the source for that method.
>

Two common causes of an IllegalAccessException when you call
Class.newInstance():

* The class is not declared public.

* The class has no public no-arguments constructor.

In general, as Steven points out, stack traces are there to tell you exactly
where the problem occurred.  If you run without a JIT compiler enabled, you will
even find out the line numbers in your source code.

> Best of luck,
> Steven

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to