You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hubbard, Charles (ISSAtlanta)" <CH...@iss.net> on 2000/05/01 20:38:08 UTC

Help deciphering Tomcat Exception

I keep getting this exception thrown.  I'm not sure what it means can anyone
help me understand this exception?

Error: 500
Location: /run_tvis.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
	at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
seFacade.java:157)
	at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
	at java.lang.Thread.run(Thread.java:479)

Re: Form Login and such..

Posted by Michael Lazlo <ml...@ndc-nfi.com>.
For a good example of password/login jsp check out:
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms_p.html

Chris Howard wrote:

> I'm trying to implement a form login type authentication for a certain
> "configuration" page.  This will be the only page that needs to be
> authenticated.  The way I'm trying to implement it is with redirects based
> on session values.
>
> admin.jsp -> formLogin.jsp ->adminLogin.jsp -> admin.jsp.
>
> First when the user hits the admin.jsp page it evaluates a value session
> value (UserValid) to see if it is null.  If it is null the page gets
> re-directed to the formLogin page where it is a simple POST form that has
> the username/password value.  Next is the adminLogin.jsp page that will
> verify the username/password and set the session value UserValid to the
> username and then redirect to the admin.jsp page which will then display the
> administrator page because UserValid has been defined.  All of this works
> fine but I have no idea how to implement the adminLogin.jsp page that does
> the authintication.  Is there a crypt() type call that I could use?  I'm
> probably going to have to use a file within the current directory to hold
> the username/password values as there  will be multiple instances of this
> app on the same system all confined to a single directory.  Any suggestion
> on how to implement the adminLogin.jsp?
>
> Cheers,
> Chris
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

--
\\\\\\\\\\\\\\\\\\\\\\\\\\\\
/        Mike Lazlo        /
\  Technical Manager/DBA   \
/    mlazlo@ndc-nfi.com    /
\ 1-800-922-5088 ext. 4758 \
////////////////////////////



Form Login and such..

Posted by Chris Howard <ch...@asgna.com>.
I'm trying to implement a form login type authentication for a certain
"configuration" page.  This will be the only page that needs to be
authenticated.  The way I'm trying to implement it is with redirects based
on session values.

admin.jsp -> formLogin.jsp ->adminLogin.jsp -> admin.jsp.

First when the user hits the admin.jsp page it evaluates a value session
value (UserValid) to see if it is null.  If it is null the page gets
re-directed to the formLogin page where it is a simple POST form that has
the username/password value.  Next is the adminLogin.jsp page that will
verify the username/password and set the session value UserValid to the
username and then redirect to the admin.jsp page which will then display the
administrator page because UserValid has been defined.  All of this works
fine but I have no idea how to implement the adminLogin.jsp page that does
the authintication.  Is there a crypt() type call that I could use?  I'm
probably going to have to use a file within the current directory to hold
the username/password values as there  will be multiple instances of this
app on the same system all confined to a single directory.  Any suggestion
on how to implement the adminLogin.jsp?

Cheers,
Chris


RE: Help deciphering Tomcat Exception

Posted by George McKInney <ge...@tantalus.com>.
I suspect that it means either:
You are trying to <jsp:forward to a page AFTER some of your current output
has been written

OR

you may be trying to set a header after doing some non-header output.

George McKinney, Developer
tantalus communications inc.
500-1122 Mainland Street
Vancouver, BC, Canada V6B 5L1
george@tantalus.com

Direct  604.726.6753
Main    604.609.0700
Fax     604.609.0705
www.tantalus.com
"When eBusiness experience counts."


-----Original Message-----
From: Hubbard, Charles (ISSAtlanta) [mailto:CHubbard@iss.net]
Sent: Monday, May 01, 2000 11:38 AM
To: Jakarta Project (E-mail)
Subject: Help deciphering Tomcat Exception



I keep getting this exception thrown.  I'm not sure what it means can anyone
help me understand this exception?

Error: 500
Location: /run_tvis.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
	at
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
seFacade.java:157)
	at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
	at java.lang.Thread.run(Thread.java:479)

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org