Hi All,

Can any one of you tell me what is this error.
Error: 500
Internal Servlet Error:

java.lang.IllegalAccessException: Example0402
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:241)
        at
com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:100)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:119)
        at com.sun.web.core.InvokerServlet.service(InvokerServlet.java:168)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at
com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)



One more important question, is there any documentation to know what the
error is by seeing the error number, just like we do in oracle.


Bye
Srikanth
-----Original Message-----
From: Choudhary Rakesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 24, 2000 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [Re: ClassFormatException]


Here is what you do if you are using JSDK2.0. Copy the servlet in
c:\jsdk2.1\webpages\web-inf\servlets\. After that start the the server from
MS-dos prompt. Open up yuor browser and enter URL:
http://localhost:8080/servlet/<servlet name u want to run>. And this should
do it.

All the best


If you have any questions or concerns let me know.

  Rakesh
513-333-3617

> -----Original Message-----
> From: abhishek shodhan [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 24, 2000 4:36 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [Re: ClassFormatException]
>
> Thanks Rajesh, but I am not using the Java Web Server. I am using the
> Servlet
> Runner utility(JSDK2.1). And I also tried the same on www.mycgiserver.com
> (great site). But I consistently get the same error.
> Could anything be wrong with my Compiler? I use jdk1.3(first Candidate, I
> think it was called). But I also tried it out by compiling it online at
> the
> above mentioned website.
>
> Thanks anyway!!
>
> Love Always,
> Abhishek Shodhan.
>
>
>
> Rajesh Kumar Singh <[EMAIL PROTECTED]> wrote:
> Hi Abhishek
>
> ....dear, just now what i did...copied ur
> code and executed ...it's working fine..how come
> u r getting ClassFormatException !?...
> do these steps properly::
> copy tem1.class to servlets directory of JavaWebServer as
> c:\> copy tem1.class c:\JavaWevServer2.0\servlets
> and then run in the browser with
> http://localhost:8080/servlet/tem1
>
> ..hope u will not hv any problem.....
> Rajesh([EMAIL PROTECTED])
>
>
> ----- Original Message -----
> From: abhishek shodhan <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 23, 2000 4:29 PM
> Subject: ClassFormatException
>
>
> > hi all.
> > I really need help on this:
> > I get an error that says java.lang.ClassFormatException
> >
> > I read through the documentation and what i get is that there is a
> problem
> in
> > my .class file(bytecode).
> > the file compiles perfectly.
> >
> > i tried it with both the doGet and doPost methods, but I still get the
> same
> > error.
> >
> > The code is below:
> >
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> > import java.io.*;
> > import java.util.*;
> >
> > public class tem1 extends HttpServlet
> > {
> > public void init(ServletConfig config) throws ServletException
> > {
> >   try{
> >         super.init(config);
> >       }
> >       catch(Exception ex){}
> > }
> >
> > public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws
> > ServletException,IOException
> > {
> >         try
> >         {
> >                 PrintWriter out= res.getWriter();
> >                 res.setContentType("text/html");
> >                 out.println("<html><body>whatever</body></html>");
> >                 out.close();
> >         }
> >         catch(Exception ex)
> >         {
> >            // System.out.println("exc :"+ ex);
> >         }
> > }
> >
> > public void destroy()
> > {
> > }
> > }
> >
> >
> -------------------------------------------------------------------------
> > Love Always,
> > Abhishek Shodhan.
> >
> > ____________________________________________________________________
> > Get free email and a permanent address at http://www.amexmail.com/?A=1
> >
> >
> __________________________________________________________________________
> _
> > 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
>
> __________________________________________________________________________
> _
> 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
>
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.amexmail.com/?A=1
>
> __________________________________________________________________________
> _
> 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

___________________________________________________________________________
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

___________________________________________________________________________
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