Suresh, It is a bug! I hear that this is fixed in Tomcat 3.3
I have received this error after I have re-compiled my servlet several times during development and I have learned that the fix is to restart Tomcat. For more information: http://nagoya.apache.org/bugzilla/long_list.cgi?buglist=330 Dave ====================================================================== Full Text Bug Listing Internal Servlet Error: Can't happen - classname is null, who added this ? BugRat Report#596 Bug#: 330 Product: Tomcat 3 Version: 3.2.1 Final Platform: All OS/Version: All Status: RESOLVED Severity: Normal Priority: High Resolution: DUPLICATE Assigned To: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Component: Servlet URL: Summary: Internal Servlet Error: Can't happen - classname is null, who added this ? BugRat Report#596 Keywords: Description: Internal Servlet Error: 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.handleStatus(ContextManager.java:1049) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:775) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) ------- Additional Comments From Ignacio J. Ortega 2001-03-11 15:11 ------- Fixed in Tomcat 3.3 *** This bug has been marked as a duplicate of 296 *** ====================================================================== suresh chaluvadi wrote: > Hi, > It's works Fine.Why it is happened like that.. > Suresh > > --- David Bustin <[EMAIL PROTECTED]> wrote: > > Answer: restart Tomcat. > > > > > > suresh chaluvadi wrote: > > > > > 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 > > > > > ___________________________________________________________________________ > > 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 > > > > __________________________________________________ > 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 ___________________________________________________________________________ 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
