That's quite odd. http://forum.java.sun.com/thread.jsp?forum=427&thread=394938&message=171 3354#1713354
That thread talks about 'problems' with the Connector itself. Perhaps its worth investigating if the settings proposed there can help you.. http://www.javalobby.com/threadMode_printfriendly.jsp?forum=76&thread=63 52 That thread shows that a previous error was thrown, and then the connector threw an error. Is there anything "below" the one error? Also.. just for the heck of it... could it be a problem with finding a jdbc driver ? If you only have classes12.jar in WEB-INF/lib, would the connector be able to find it there? You'd think it would throw a ClassNotFound or other SQLException but who knows. Have you tried removing the response.encodeURL and just using j_security_check ? Finally, I think one of the reasons I used BASIC AUTH was because 2 years ago I was also having troubles with FORM Based. I seem to recall some quirky behaviour with j_security_check, and I found a link describing what I remember having trouble with. http://www.jboss.org/thread.jsp?forum=49&thread=4235 The problem description is a ways down, posted by 'svaret'. Beyond those suggestions, I'm at a loss. > -----Original Message----- > From: Rick Roberts [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 09, 2003 12:28 PM > To: Tomcat Users List > Subject: Re: Still need help with JDBCRealm > > > Mike Curwen wrote: > > Someone else on this list had a similar problem with NPE's being > > thrown by Coyote. His developers insisted it wasn't their > code, and > > that it had to be coyote causing the trouble. I sympathize > with that > > position, because on that stack trace, and on yours, there is only > > org.apache classes throwing Exceptions. > > > > Can you try running Tomcat on 8080, and not use Apache web > server as a > > front-end? If that works, and adding Apache back in causes > a problem, > > then we'll be closer to confirming the cause of the NPE. > > "http://localhost:8080/hd" brings up the /hd app. > The error message is the same. > > However; it appears to progress a bit further in the browser. > I am trying to use Form Based AUTH with my form as follows: > > <[EMAIL PROTECTED] contentType="text/html"%> > <html> > <head> > <title>Login</title> > </head> > <body bgcolor="white"> > <form method="POST" action='<%= > response.encodeURL("j_security_check") %>'> <table border="0" > cellspcacing="5"> > <tr> > <th align="right">Username:</th> > <td align="left"<input type="text" name="j_username"></td> > </tr> > <tr> > <th align="right">Password:</th> > <td align="left"><input type="password" > name="j_passsword"></td> > </tr> > <tr> > <td align="right"><input type="submit" value="Log In"></td> > <td align="left"><input type="reset"></td> > </tr> > </table> > </body> > </html> > > > The application correctly passes me to > "http://localhost:8080/hd/login.jsp" > > If I type a bogus ID and any password the application > correctly passes me to "http://localhost:8080/hd/login_error.jsp" > > However; If I type a valid ID and any password the > application passes me to > "http://localhost:8080/hd/j_security_check" and generates the > following error message: > > 2003-07-09 13:25:21 CoyoteAdapter An exception or error > occurred in the container during the request processing > java.lang.NullPointerException > at > org.apache.catalina.realm.JDBCRealm.authenticate(Unknown Source) > at > org.apache.catalina.realm.JDBCRealm.authenticate(Unknown Source) > at > org.apache.catalina.authenticator.FormAuthenticator.authentica > te(Unknown Source) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unk > nown Source) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(Unknown Source) > at > org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) > at > org.apache.catalina.core.ContainerBase.invoke(Unknown Source) > at > org.apache.catalina.core.StandardContext.invoke(Unknown Source) > at > org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(Unknown Source) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(Unknown Source) > at > org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(Unknown Source) > at > org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) > at > org.apache.catalina.core.ContainerBase.invoke(Unknown Source) > at > org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValv > eContext.invokeNext(Unknown Source) > at > org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) > at > org.apache.catalina.core.ContainerBase.invoke(Unknown Source) > at > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter. > java:223) > at > org.apache.coyote.http11.Http11Processor.process(Http11Process > or.java:594) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandle > r.processConnection(Http11Protocol.java:392) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi > nt.java:565) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > ThreadPool.java:619) > at java.lang.Thread.run(Thread.java:536) > > -- > ******************************************* > * Rick Roberts * > * Advanced Information Technologies, Inc. * > ******************************************* > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
