aspose file tools*
The moose likes Servlets and the fly likes Error message for JSP&Bean deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error message for JSP&Bean deployment" Watch "Error message for JSP&Bean deployment" New topic
Author

Error message for JSP&Bean deployment

Mike Han
Greenhorn

Joined: Jul 16, 2001
Posts: 11
Thanks to Raghav and Jason,I still have the problem,here is the error message when the link to JSP page is clicked in browser:
---------------
Error: 500
Location: /examples/jsp/lbm/registerJSP.jsp
Internal Servlet Error:
java.lang.IllegalStateException: Response has already been committed
at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
------------------
while on the tomcat console in command prompt the error is:
java.lang.NoClassDefFoundError

Glenn Wearen
Greenhorn

Joined: Feb 21, 2001
Posts: 4
I think you might have two problems here.
The NoClass error, seems to point that either your JSP references a bean whose class is not in the web-inf/classes folder.
The response is already committed error occurs frequently if
you have <jsp:include page in your linked JSP, you cannt set headers, redirect or forward if you have used <jsp:include becuase the flush attribute must be set to "true"
if you can replace <jsp:include with <%@ include instead it will fix that problem
Mike Han
Greenhorn

Joined: Jul 16, 2001
Posts: 11
Originally posted by Glenn Wearen:
I think you might have two problems here.
The NoClass error, seems to point that either your JSP references a bean whose class is not in the web-inf/classes folder.
The response is already committed error occurs frequently if
you have <jsp:include page in your linked JSP, you cannt set headers, redirect or forward if you have used <jsp:include becuase the flush attribute must be set to "true"
if you can replace <jsp:include with <%@ include instead it will fix that problem

Thank you, Glenn
I checked my code, I did use <%@ includ rather than <jsp:include.After I put my program on the remote tomcat server, it works well(I got the error message on local server).I can't explain it, but anyway,it works.
Thank you for your help.

Mike
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error message for JSP&Bean deployment