Hi,
  I'm getting the following error when I write a
servlet code.Here is the error

Sorry Boss ..ur Failed to enter into our World
2002-01-02 23:31:17 - Ctx(  ): Exception in init
Can't happen - classname is nu
ll, who added this ? -
java.lang.IllegalStateException: Can't happen -
classname
 is null, who added this ?
        at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java
:261)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
        at
org.apache.tomcat.core.Handler.service(Handler.java:254)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:812)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758
)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
        at java.lang.Thread.run(Thread.java:484)

2002-01-02 23:31:17 - Ctx(  ): IllegalStateException
in: R(  + /login.html + nul
l) Can't happen - classname is null, who added this ?
-------------------------------------------------

And Here is the code I wrote:











rs=st.executeQuery("select * from tbluserinfn where
uname='"+uname+"' and pword='"+pword+"'");

if(rs.next())
        {
                                        System.out.println("Congrates ..ur succeded");
        so.println("<html><body bgcolor=lightyellow><form>");
so.println("<br><br><br><center>Enter into World Of
SatyaSanjeevi</center>");
so.println("<center><input type=button  value=back
onClick=\"history.back()\"></center>");
        so.println("</form></body></html>");

                        }



          else
         {

System.out.println("Sorry Boss ..ur Failed to enter
into our World");
                                                rs.close();
res.sendRedirect("/login1.html");
        return;
                         }

Pls.Help me to solve the Problem
Suresh


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

___________________________________________________________________________
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